SelectedDevice

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

A component ofGetDevicesResult(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 ofGetDevicesResult(the output from DTDI's device picker activity) encapsulating the token and associated data (such as the device name).

Public methods

Unit

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 ofGetDevicesResult(the output from DTDI's device picker activity) encapsulating the token and associated data (such as the device name).

Public methods

writeToParcel

funwriteToParcel(
dest:Parcel,
flags:Int
):Unit

Properties

displayName

valdisplayName:String

The user-facing name associated with this device.

token

valtoken:IBinder

The token used to identify this device. Some APIs inDtdiClientlikesendPayloadandregisterPayloadReceiver requires this token to be passed back identify the target device.

Companion properties

CREATOR

valCREATOR:Creator<SelectedDevice>