Udostępnij za pośrednictwem


Notification.MediaStyle.SetMediaSession(MediaSession+Token) Method

Definition

Attach a MediaSession.Token to this Notification.

[Android.Runtime.Register("setMediaSession", "(Landroid/media/session/MediaSession$Token;)Landroid/app/Notification$MediaStyle;", "GetSetMediaSession_Landroid_media_session_MediaSession_Token_Handler")]
public virtual Android.App.Notification.MediaStyle? SetMediaSession (Android.Media.Session.MediaSession.Token? token);
[<Android.Runtime.Register("setMediaSession", "(Landroid/media/session/MediaSession$Token;)Landroid/app/Notification$MediaStyle;", "GetSetMediaSession_Landroid_media_session_MediaSession_Token_Handler")>]
abstract member SetMediaSession : Android.Media.Session.MediaSession.Token -> Android.App.Notification.MediaStyle
override this.SetMediaSession : Android.Media.Session.MediaSession.Token -> Android.App.Notification.MediaStyle

Parameters

token
MediaSession.Token

The MediaSession.Token to attach.

Returns

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.

Applies to