MediaController2.SendSessionCommand(Session2Command, Bundle) 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.
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
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.