SuggestedDeviceInfo
class SuggestedDeviceInfo : Parcelable
kotlin.Any | |
↳ | android.media.SuggestedDeviceInfo |
Allows applications to suggest routes to the system UI (for example, in the System UI Output Switcher).
Suggested devices are used to transfer the current media session from one device to another.
Summary
Nested classes | |
---|---|
Builder for |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Boolean | |
String |
Returns the name to be displayed to the user. |
Bundle |
Returns the extras associated with the suggestion. |
String |
Returns the route ID associated with the suggestion. |
Int |
getType() Returns the device type associated with the suggestion. |
Int |
hashCode() |
String |
toString() |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<SuggestedDeviceInfo!> |
Public methods
describeContents
fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
equals
fun equals(other: Any?): Boolean
Parameters | |
---|---|
obj |
the reference object with which to compare. |
Return | |
---|---|
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getDeviceDisplayName
fun getDeviceDisplayName(): String
Returns the name to be displayed to the user.
Return | |
---|---|
String |
The device display name. This value cannot be null . |
getExtras
fun getExtras(): Bundle
Returns the extras associated with the suggestion.
Return | |
---|---|
Bundle |
The extras. This value cannot be null . |
getRouteId
fun getRouteId(): String
Returns the route ID associated with the suggestion.
Return | |
---|---|
String |
The route ID. This value cannot be null . |
getType
fun getType(): Int
Returns the device type associated with the suggestion.
toString
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel: This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |