SelectedDevice

data class SelectedDevice : AbstractSafeParcelable, ReflectedParcelable
com.google.android.gms.dtdi.core.SelectedDevice

A component of GetDevicesResult (the output from DTDI's device picker activity) encapsulating the token and associated data (such as the device name).

Summary

Public constructors

<init>(token: IBinder, displayName: String)

A component of GetDevicesResult (the output from DTDI's device picker activity) encapsulating the token and associated data (such as the device name).

Public methods

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties

String

The user-facing name associated with this device.

IBinder

The token used to identify this device.

Companion properties

Creator<SelectedDevice>

Public constructors

<init>

SelectedDevice(
    token: IBinder,
    displayName: String)

A component of GetDevicesResult (the output from DTDI's device picker activity) encapsulating the token and associated data (such as the device name).

Public methods

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Properties

displayName

val displayName: String

The user-facing name associated with this device.

token

val token: IBinder

The token used to identify this device. Some APIs in DtdiClient like sendPayload and registerPayloadReceiver requires this token to be passed back identify the target device.

Companion properties

CREATOR

val CREATOR: Creator<SelectedDevice>