MediaBrowserService.SessionToken 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 the session token, or null if it has not yet been created or if it has been destroyed. -or- Call to set the media session.
public virtual Android.Media.Session.MediaSession.Token? SessionToken { [Android.Runtime.Register("getSessionToken", "()Landroid/media/session/MediaSession$Token;", "GetGetSessionTokenHandler")] get; [Android.Runtime.Register("setSessionToken", "(Landroid/media/session/MediaSession$Token;)V", "GetSetSessionToken_Landroid_media_session_MediaSession_Token_Handler")] set; }
[<get: Android.Runtime.Register("getSessionToken", "()Landroid/media/session/MediaSession$Token;", "GetGetSessionTokenHandler")>]
[<set: Android.Runtime.Register("setSessionToken", "(Landroid/media/session/MediaSession$Token;)V", "GetSetSessionToken_Landroid_media_session_MediaSession_Token_Handler")>]
member this.SessionToken : Android.Media.Session.MediaSession.Token with get, set
Property Value
The media session token, or null if no media session is associated with the service. Set this property as soon as possible during service startup. A non-null token may be assigned only once; assigning null removes the current media session association and disconnects all existing media browsers.
- Attributes
Remarks
Property getter documentation:
Java documentation for android.service.media.MediaBrowserService.getSessionToken().
Property setter documentation:
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.