次の方法で共有


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