MediaSession2.SessionCallback.OnSessionCommand 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.
[Android.Runtime.Register("onSessionCommand", "(Landroid/media/MediaSession2;Landroid/media/MediaSession2$ControllerInfo;Landroid/media/Session2Command;Landroid/os/Bundle;)Landroid/media/Session2Command$Result;", "GetOnSessionCommand_Landroid_media_MediaSession2_Landroid_media_MediaSession2_ControllerInfo_Landroid_media_Session2Command_Landroid_os_Bundle_Handler", ApiSince=29)]
public virtual Android.Media.Session2Command.Result? OnSessionCommand (Android.Media.MediaSession2 session, Android.Media.MediaSession2.ControllerInfo controller, Android.Media.Session2Command command, Android.OS.Bundle? args);
[<Android.Runtime.Register("onSessionCommand", "(Landroid/media/MediaSession2;Landroid/media/MediaSession2$ControllerInfo;Landroid/media/Session2Command;Landroid/os/Bundle;)Landroid/media/Session2Command$Result;", "GetOnSessionCommand_Landroid_media_MediaSession2_Landroid_media_MediaSession2_ControllerInfo_Landroid_media_Session2Command_Landroid_os_Bundle_Handler", ApiSince=29)>]
abstract member OnSessionCommand : Android.Media.MediaSession2 * Android.Media.MediaSession2.ControllerInfo * Android.Media.Session2Command * Android.OS.Bundle -> Android.Media.Session2Command.Result
override this.OnSessionCommand : Android.Media.MediaSession2 * Android.Media.MediaSession2.ControllerInfo * Android.Media.Session2Command * Android.OS.Bundle -> Android.Media.Session2Command.Result
Parameters
- session
- MediaSession2
- controller
- MediaSession2.ControllerInfo
- command
- Session2Command
- args
- Bundle
Returns
- Attributes