MediaSession2.SessionCallback.OnCommandResult 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.
Called when the command sent to the controller is finished.
[Android.Runtime.Register("onCommandResult", "(Landroid/media/MediaSession2;Landroid/media/MediaSession2$ControllerInfo;Ljava/lang/Object;Landroid/media/Session2Command;Landroid/media/Session2Command$Result;)V", "GetOnCommandResult_Landroid_media_MediaSession2_Landroid_media_MediaSession2_ControllerInfo_Ljava_lang_Object_Landroid_media_Session2Command_Landroid_media_Session2Command_Result_Handler", ApiSince=29)]
public virtual void OnCommandResult(Android.Media.MediaSession2 session, Android.Media.MediaSession2.ControllerInfo controller, Java.Lang.Object token, Android.Media.Session2Command command, Android.Media.Session2Command.Result result);
[<Android.Runtime.Register("onCommandResult", "(Landroid/media/MediaSession2;Landroid/media/MediaSession2$ControllerInfo;Ljava/lang/Object;Landroid/media/Session2Command;Landroid/media/Session2Command$Result;)V", "GetOnCommandResult_Landroid_media_MediaSession2_Landroid_media_MediaSession2_ControllerInfo_Ljava_lang_Object_Landroid_media_Session2Command_Landroid_media_Session2Command_Result_Handler", ApiSince=29)>]
abstract member OnCommandResult : Android.Media.MediaSession2 * Android.Media.MediaSession2.ControllerInfo * Java.Lang.Object * Android.Media.Session2Command * Android.Media.Session2Command.Result -> unit
override this.OnCommandResult : Android.Media.MediaSession2 * Android.Media.MediaSession2.ControllerInfo * Java.Lang.Object * Android.Media.Session2Command * Android.Media.Session2Command.Result -> unit
Parameters
- session
- MediaSession2
the session for this event. This value cannot be null.
- controller
- MediaSession2.ControllerInfo
controller information. This value cannot be null.
- token
- Object
the token got from MediaSession2.sendSessionCommand This value cannot be null.
- command
- Session2Command
the session command. This value cannot be null.
- result
- Session2Command.Result
the result of the session command. This value cannot be null.
- Attributes
Remarks
Called when the command sent to the controller is finished.
Android reference for android.media.MediaSession2.SessionCallback.onCommandResult.
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.