Udostępnij za pośrednictwem


Settings.Secure.LocationProvidersAllowed Field

Definition

Caution

deprecated

Comma-separated list of location providers that are enabled.

[Android.Runtime.Register("LOCATION_PROVIDERS_ALLOWED")]
[System.Obsolete("deprecated")]
public const string LocationProvidersAllowed;
[<Android.Runtime.Register("LOCATION_PROVIDERS_ALLOWED")>]
[<System.Obsolete("deprecated")>]
val mutable LocationProvidersAllowed : string

Field Value

Attributes

Remarks

Comma-separated list of location providers that are enabled. Do not rely on this value being present or correct, or on ContentObserver notifications on the corresponding Uri.

This member is deprecated. This setting no longer exists from Android S onwards as it no longer is capable of realistically reflecting location settings. Use LocationManager#isProviderEnabled(String) or LocationManager#isLocationEnabled() instead.

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

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