SelectedDevice

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

A data class encapsulating the unique identifier (token) of a device and its related information (such as the device name). It's used in GetDevicesResult, the output from DTDI's device picker activity, to represent the device associated with a specific telecom call ID.

Summary

Public constructors

<init>(token: IBinder, displayName: String, remoteAppScope: RemoteAppScope? = null)

A data class encapsulating the unique identifier (token) of a device and its related information (such as the device name).

Public methods

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties

String

The user-facing name associated with this device.

RemoteAppScope?

When nonnull, represents the remote app on the other side of the cross app channel.

IBinder

The token used to identify this device.

Companion properties

Creator<SelectedDevice>

Public constructors

<init>

SelectedDevice(
    token: IBinder,
    displayName: String,
    remoteAppScope: RemoteAppScope? = null)

A data class encapsulating the unique identifier (token) of a device and its related information (such as the device name). It's used in GetDevicesResult, the output from DTDI's device picker activity, to represent the device associated with a specific telecom call ID.

Public methods

writeToParcel

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

Properties

displayName

val displayName: String

The user-facing name associated with this device.

remoteAppScope

val remoteAppScope: RemoteAppScope?

When nonnull, represents the remote app on the other side of the cross app channel. On the originating device, this is the alternate package that is allowed and launched. On the receiving device, this is the origin package.

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>