Sdílet prostřednictvím


Settings.Secure.IsLocationProviderEnabled(ContentResolver, String) Method

Definition

Caution

deprecated

Helper method for determining if a location provider is enabled.

[Android.Runtime.Register("isLocationProviderEnabled", "(Landroid/content/ContentResolver;Ljava/lang/String;)Z", "")]
[System.Obsolete("deprecated")]
public static bool IsLocationProviderEnabled (Android.Content.ContentResolver? cr, string? provider);
[<Android.Runtime.Register("isLocationProviderEnabled", "(Landroid/content/ContentResolver;Ljava/lang/String;)Z", "")>]
[<System.Obsolete("deprecated")>]
static member IsLocationProviderEnabled : Android.Content.ContentResolver * string -> bool

Parameters

cr
ContentResolver

the content resolver to use

provider
String

the location provider to query

Returns

true if the provider is enabled

Attributes

Remarks

Helper method for determining if a location provider is enabled.

This member is deprecated. use LocationManager#isProviderEnabled(String)

Java documentation for android.provider.Settings.Secure.isLocationProviderEnabled(android.content.ContentResolver, java.lang.String).

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