Settings.Secure.IsLocationProviderEnabled(ContentResolver, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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)
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.