Compartir a través de


Settings.Secure.LocationMode Field

Definition

The current location mode of the device.

[Android.Runtime.Register("LOCATION_MODE")]
public const string LocationMode;
[<Android.Runtime.Register("LOCATION_MODE")>]
val mutable LocationMode : string

Field Value

Attributes

Remarks

The current location mode of the device. Do not rely on this value being present or on ContentObserver notifications on the corresponding Uri.

This member is deprecated. The preferred methods for checking location mode and listening for changes are via LocationManager#isLocationEnabled() and LocationManager#MODE_CHANGED_ACTION.

Java documentation for android.provider.Settings.Secure.LOCATION_MODE.

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