Token
class Token : Parcelable
kotlin.Any | |
↳ | 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.
Summary
Public methods |
|
---|---|
Int | |
Boolean | |
static MediaSessionCompat.Token! |
Creates a compat Token from a framework |
Any! |
getToken() Gets the underlying framework |
Int |
hashCode() |
Unit |
writeToParcel(dest: Parcel!, flags: Int) |
Properties |
|
---|---|
static Creator<MediaSessionCompat.Token!>! |
Public methods
describeContents
fun describeContents(): Int
fromToken
static fun fromToken(token: Any!): MediaSessionCompat.Token!
Creates a compat Token from a framework android.media.session.MediaSession.Token
object.
This method is only supported on android.os.Build.VERSION_CODES#LOLLIPOP
and later.
Parameters | |
---|---|
token |
Any!: The framework token object. |
Return | |
---|---|
MediaSessionCompat.Token!: A compat Token for use with MediaControllerCompat . |
getToken
fun getToken(): Any!
Gets the underlying framework android.media.session.MediaSession.Token
object.
This method is only supported on API 21+.
Return | |
---|---|
Any!: The underlying android.media.session.MediaSession.Token object, or null if none. |
hashCode
fun hashCode(): Int
Properties
CREATOR
static val CREATOR: Creator<MediaSessionCompat.Token!>!