Share via


MediaController.SendCommand(String, Bundle, ResultReceiver) Method

Definition

Sends a generic command to the session.

[Android.Runtime.Register("sendCommand", "(Ljava/lang/String;Landroid/os/Bundle;Landroid/os/ResultReceiver;)V", "")]
public void SendCommand (string command, Android.OS.Bundle? args, Android.OS.ResultReceiver? cb);
[<Android.Runtime.Register("sendCommand", "(Ljava/lang/String;Landroid/os/Bundle;Landroid/os/ResultReceiver;)V", "")>]
member this.SendCommand : string * Android.OS.Bundle * Android.OS.ResultReceiver -> unit

Parameters

command
String

The command to send

args
Bundle

Any parameters to include with the command

cb
ResultReceiver

The callback to receive the result on

Attributes

Remarks

Sends a generic command to the session. It is up to the session creator to decide what commands and parameters they will support. As such, commands should only be sent to sessions that the controller owns.

Java documentation for android.media.session.MediaController.sendCommand(java.lang.String, android.os.Bundle, android.os.ResultReceiver).

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