Share via


MediaSession2.CancelSessionCommand Method

Definition

Cancels the session command previously sent.

[Android.Runtime.Register("cancelSessionCommand", "(Landroid/media/MediaSession2$ControllerInfo;Ljava/lang/Object;)V", "GetCancelSessionCommand_Landroid_media_MediaSession2_ControllerInfo_Ljava_lang_Object_Handler", ApiSince=29)]
public virtual void CancelSessionCommand (Android.Media.MediaSession2.ControllerInfo controller, Java.Lang.Object token);
[<Android.Runtime.Register("cancelSessionCommand", "(Landroid/media/MediaSession2$ControllerInfo;Ljava/lang/Object;)V", "GetCancelSessionCommand_Landroid_media_MediaSession2_ControllerInfo_Ljava_lang_Object_Handler", ApiSince=29)>]
abstract member CancelSessionCommand : Android.Media.MediaSession2.ControllerInfo * Java.Lang.Object -> unit
override this.CancelSessionCommand : Android.Media.MediaSession2.ControllerInfo * Java.Lang.Object -> unit

Parameters

controller
MediaSession2.ControllerInfo

the controller to get the session command

token
Object

the token which is returned from #sendSessionCommand.

Attributes

Remarks

Java documentation for android.media.MediaSession2.cancelSessionCommand(android.media.ControllerInfo, java.lang.Object).

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