Share via


MediaController2.SendSessionCommand(Session2Command, Bundle) Method

Definition

Sends a session command to the session

[Android.Runtime.Register("sendSessionCommand", "(Landroid/media/Session2Command;Landroid/os/Bundle;)Ljava/lang/Object;", "GetSendSessionCommand_Landroid_media_Session2Command_Landroid_os_Bundle_Handler", ApiSince=29)]
public virtual Java.Lang.Object SendSessionCommand (Android.Media.Session2Command command, Android.OS.Bundle? args);
[<Android.Runtime.Register("sendSessionCommand", "(Landroid/media/Session2Command;Landroid/os/Bundle;)Ljava/lang/Object;", "GetSendSessionCommand_Landroid_media_Session2Command_Landroid_os_Bundle_Handler", ApiSince=29)>]
abstract member SendSessionCommand : Android.Media.Session2Command * Android.OS.Bundle -> Java.Lang.Object
override this.SendSessionCommand : Android.Media.Session2Command * Android.OS.Bundle -> Java.Lang.Object

Parameters

command
Session2Command

the session command

args
Bundle

optional arguments

Returns

a token which will be sent together in ControllerCallback#onCommandResult when its result is received.

Attributes

Remarks

Java documentation for android.media.MediaController2.sendSessionCommand(android.media.Session2Command, 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