public static final class MediaSessionCompat.Token
extends Object implements Parcelable


Represents an ongoing session. This may be passed to apps by the session owner to allow them to create a MediaControllerCompat to communicate with the session.


Inherited constants


public static final Creator<MediaSessionCompat.Token> CREATOR

Public methods

int describeContents()
boolean equals(Object obj)
static MediaSessionCompat.Token fromToken(Object token)

Creates a compat Token from a framework MediaSession.Token object.

Object getToken()

Gets the underlying framework MediaSession.Token object.

int hashCode()
void writeToParcel(Parcel dest, int flags)

Inherited methods