MediaSessionManager.Session2Tokens Property
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.
Gets a list of Session2Token
with type Session2Token#TYPE_SESSION
for the
current user.
public System.Collections.Generic.IList<Android.Media.Session2Token> Session2Tokens { [Android.Runtime.Register("getSession2Tokens", "()Ljava/util/List;", "", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getSession2Tokens", "()Ljava/util/List;", "", ApiSince=29)>]
member this.Session2Tokens : System.Collections.Generic.IList<Android.Media.Session2Token>
Property Value
A list of Session2Token
.
- Attributes
Remarks
Gets a list of Session2Token
with type Session2Token#TYPE_SESSION
for the current user.
Although this API can be used without any restriction, each session owners can accept or reject your uses of MediaSession2
.
This API is not generally intended for third party application developers. Apps wanting media session functionality should use the AndroidX Media3 Session Library.
Java documentation for android.media.session.MediaSessionManager.getSession2Tokens()
.
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.