Partager via


LocationManager.RemoveTestProvider(String) Method

Definition

Removes the test location provider with the given name or does nothing if no such test location provider exists.

[Android.Runtime.Register("removeTestProvider", "(Ljava/lang/String;)V", "GetRemoveTestProvider_Ljava_lang_String_Handler")]
public virtual void RemoveTestProvider (string provider);
[<Android.Runtime.Register("removeTestProvider", "(Ljava/lang/String;)V", "GetRemoveTestProvider_Ljava_lang_String_Handler")>]
abstract member RemoveTestProvider : string -> unit
override this.RemoveTestProvider : string -> unit

Parameters

provider
String

the provider name

Attributes

Exceptions

if OpstrMockLocation is not set to ModeAllowed for your app.

if no provider with the given name exists

Remarks

Removes the test location provider with the given name or does nothing if no such test location provider exists.

Java documentation for android.location.LocationManager.removeTestProvider(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