LocationManager.HasProvider(String) Method

Definition

Returns true if the given ___location provider exists on this device, irrespective of whether it is currently enabled or not.

[Android.Runtime.Register("hasProvider", "(Ljava/lang/String;)Z", "GetHasProvider_Ljava_lang_String_Handler", ApiSince=31)]
public virtual bool HasProvider(string provider);
[<Android.Runtime.Register("hasProvider", "(Ljava/lang/String;)Z", "GetHasProvider_Ljava_lang_String_Handler", ApiSince=31)>]
abstract member HasProvider : string -> bool
override this.HasProvider : string -> bool

Parameters

provider
String

a potential ___location provider

Returns

true if the ___location provider exists, false otherwise

Attributes

Remarks

Returns true if the given ___location provider exists on this device, irrespective of whether it is currently enabled or not.

Java documentation for android.___location.LocationManager.hasProvider(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