Android.Locations.LocationManager.ClearTestProviderLocation Method
Removes any mock location associated with the given provider.

Syntax

[Android.Runtime.Register("clearTestProviderLocation", "(Ljava/lang/String;)V", "GetClearTestProviderLocation_Ljava_lang_String_Handler")]
public virtual void ClearTestProviderLocation (string provider)

Parameters

provider
the provider name

Exceptions

TypeReason
Java.Lang.SecurityExceptionif the ACCESS_MOCK_LOCATION permission is not present or the NoType:android/provider/Settings$Secure;Href=../../../reference/android/provider/Settings.Secure.html#ALLOW_MOCK_LOCATION} system setting is not enabled
Java.Lang.IllegalArgumentExceptionif no provider with the given name exists

Remarks

Removes any mock location associated with the given provider.

[Android Documentation]

Requirements

Namespace: Android.Locations
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3