Język

LocationRequestQuality Enum

Definition

public enum LocationRequestQuality
type LocationRequestQuality = 
Inheritance
LocationRequestQuality

Fields

Name Value Description
HighAccuracy 100

A quality constant indicating a location provider may choose to satisfy this request by providing very accurate locations at the expense of potentially increased power usage. Each location provider may interpret this field differently, but as an example, the network provider may choose to return only wifi based locations rather than cell based locations in order to have greater accuracy when this flag is present.

Android reference for android.location.LocationRequest.QUALITY_HIGH_ACCURACY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

BalancedPowerAccuracy 102

A quality constant indicating a location provider may choose to satisfy this request by equally balancing power and accuracy constraints. Each location provider may interpret this field differently, but location providers will generally use their default behavior when this flag is present.

Android reference for android.location.LocationRequest.QUALITY_BALANCED_POWER_ACCURACY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

LowPower 104

A quality constant indicating a location provider may choose to satisfy this request by providing less accurate locations in order to save power. Each location provider may interpret this field differently, but as an example, the network provider may choose to return cell based locations rather than wifi based locations in order to save power when this flag is present.

Android reference for android.location.LocationRequest.QUALITY_LOW_POWER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to