LocationManager.SetTestProviderStatus Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.