다음을 통해 공유


MediaController2.ConnectedToken Property

Definition

Returns Session2Token of the connected session.

public virtual Android.Media.Session2Token? ConnectedToken { [Android.Runtime.Register("getConnectedToken", "()Landroid/media/Session2Token;", "GetGetConnectedTokenHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getConnectedToken", "()Landroid/media/Session2Token;", "GetGetConnectedTokenHandler", ApiSince=29)>]
member this.ConnectedToken : Android.Media.Session2Token

Property Value

Session2Token of the connected session, or null if not connected

Attributes

Remarks

Returns Session2Token of the connected session. If it is not connected yet, it returns null.

This may differ with the Session2Token from the constructor. For example, if the controller is created with the token for MediaSession2Service, this would return token for the MediaSession2 in the service.

Java documentation for android.media.MediaController2.getConnectedToken().

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