Sdílet prostřednictvím


LocationManager.SendExtraCommand(String, String, Bundle) Method

Definition

Sends additional commands to a location provider.

[Android.Runtime.Register("sendExtraCommand", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Z", "GetSendExtraCommand_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual bool SendExtraCommand (string provider, string command, Android.OS.Bundle? extras);
[<Android.Runtime.Register("sendExtraCommand", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Z", "GetSendExtraCommand_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Handler")>]
abstract member SendExtraCommand : string * string * Android.OS.Bundle -> bool
override this.SendExtraCommand : string * string * Android.OS.Bundle -> bool

Parameters

provider
String

a provider listed by #getAllProviders()

command
String

name of the command to send to the provider

extras
Bundle

optional arguments for the command, or null

Returns

true always, the return value may be ignored

Attributes

Remarks

Sends additional commands to a location provider. Can be used to support provider specific extensions to the Location Manager API.

Java documentation for android.location.LocationManager.sendExtraCommand(java.lang.String, java.lang.String, android.os.Bundle).

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