MediaSession2.CancelSessionCommand 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.
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
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.