LocationManager.SetTestProviderStatus Method

Definition

This method has no effect as provider status has been deprecated and is no longer supported.

[Android.Runtime.Register("setTestProviderStatus", "(Ljava/lang/String;ILandroid/os/Bundle;J)V", "GetSetTestProviderStatus_Ljava_lang_String_ILandroid_os_Bundle_JHandler")]
public virtual void SetTestProviderStatus (string provider, Android.Locations.Availability status, Android.OS.Bundle? extras, long updateTime);
[<Android.Runtime.Register("setTestProviderStatus", "(Ljava/lang/String;ILandroid/os/Bundle;J)V", "GetSetTestProviderStatus_Ljava_lang_String_ILandroid_os_Bundle_JHandler")>]
abstract member SetTestProviderStatus : string * Android.Locations.Availability * Android.OS.Bundle * int64 -> unit
override this.SetTestProviderStatus : string * Android.Locations.Availability * Android.OS.Bundle * int64 -> unit

Parameters

provider
String

the provider name

status
Availability

the mock status

extras
Bundle

a Bundle containing mock extras

updateTime
Int64

the mock update time

Attributes

Exceptions

if OpstrMockLocation is not set to ModeAllowed for your app.

if no provider with the given name exists

Remarks

This method has no effect as provider status has been deprecated and is no longer supported.

This member is deprecated. This method has no effect.

Java documentation for android.location.LocationManager.setTestProviderStatus(java.lang.String, int, android.os.Bundle, long).

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