java.lang.Object | |
↳ | android.support.v4.media.session.MediaSessionCompat.Token |
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.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Creates a compat Token from a framework
MediaSession.Token object.
| |||||||||||
Gets the underlying framework
MediaSession.Token object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Creates a compat Token from a framework
MediaSession.Token
object.
This method is only supported on
LOLLIPOP
and later.
token | The framework token object. |
---|
MediaControllerCompat
.
Gets the underlying framework MediaSession.Token
object.
This method is only supported on API 21+.
MediaSession.Token
object,
or null if none.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|