Java android.location Criteria fields, constructors, methods, implement or subclass

Example usage for Java android.location Criteria fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.location Criteria.

The text is from its open source code.

Field

intNO_REQUIREMENT
A constant indicating that the application does not choose to place requirement on a particular feature.
intPOWER_LOW
A constant indicating a low power requirement.
intPOWER_MEDIUM
A constant indicating a medium power requirement.
intPOWER_HIGH
A constant indicating a high power requirement.
intACCURACY_FINE
A constant indicating a finer location accuracy requirement
intACCURACY_COARSE
A constant indicating an approximate accuracy requirement
intACCURACY_LOW
A constant indicating a low location accuracy requirement - may be used for horizontal, altitude, speed or bearing accuracy.
intACCURACY_MEDIUM
A constant indicating a medium accuracy requirement - currently used only for horizontal accuracy.
intACCURACY_HIGH
a constant indicating a high accuracy requirement - may be used for horizontal, altitude, speed or bearing accuracy.

Constructor

Criteria()
Constructs a new Criteria object.

Method

voidsetAccuracy(int accuracy)
Indicates the desired accuracy for latitude and longitude.
voidsetAltitudeRequired(boolean altitudeRequired)
Indicates whether the provider must provide altitude information.
voidsetBearingAccuracy(int accuracy)
Indicates the desired bearing accuracy.
voidsetBearingRequired(boolean bearingRequired)
Indicates whether the provider must provide bearing information.
voidsetCostAllowed(boolean costAllowed)
Indicates whether the provider is allowed to incur monetary cost.
voidsetHorizontalAccuracy(int accuracy)
Indicates the desired horizontal accuracy (latitude and longitude).
voidsetPowerRequirement(int level)
Indicates the desired maximum power level.
voidsetSpeedAccuracy(int accuracy)
Indicates the desired speed accuracy.
voidsetSpeedRequired(boolean speedRequired)
Indicates whether the provider must provide speed information.
voidsetVerticalAccuracy(int accuracy)
Indicates the desired vertical accuracy (altitude).