Partager via


LocationManager.ProvidersChangedAction Field

Definition

Broadcast intent action when the set of enabled location providers changes.

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

Field Value

Attributes

Remarks

Broadcast intent action when the set of enabled location providers changes. To check the status of a provider, use #isProviderEnabled(String). From Android Q and above, will include a string intent extra, #EXTRA_PROVIDER_NAME, with the name of the provider whose state has changed. From Android R and above, will include a boolean intent extra, #EXTRA_PROVIDER_ENABLED, with the enabled state of the provider.

Java documentation for android.location.LocationManager.PROVIDERS_CHANGED_ACTION.

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