Share via


MediaSessionManager.NotifySession2Created(Session2Token) Method

Definition

This API is not generally intended for third party application developers.

[Android.Runtime.Register("notifySession2Created", "(Landroid/media/Session2Token;)V", "", ApiSince=29)]
public void NotifySession2Created (Android.Media.Session2Token token);
[<Android.Runtime.Register("notifySession2Created", "(Landroid/media/Session2Token;)V", "", ApiSince=29)>]
member this.NotifySession2Created : Android.Media.Session2Token -> unit

Parameters

token
Session2Token

newly created session2 token

Attributes

Remarks

This API is not generally intended for third party application developers. Use the AndroidXMedia2 session Library for consistent behavior across all devices.

Notifies that a new MediaSession2 with type Session2Token#TYPE_SESSION is created.

Do not use this API directly, but create a new instance through the MediaSession2.Builder instead.

This member is deprecated. Don't use this method. A new media session is notified automatically.

Java documentation for android.media.session.MediaSessionManager.notifySession2Created(android.media.Session2Token).

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