SelectedDevice

public final class SelectedDevice implements Parcelable


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 fields

static final @NonNull Parcelable.Creator<@NonNull SelectedDevice>

Public constructors

SelectedDevice(
    @NonNull IBinder token,
    @NonNull String displayName,
    RemoteAppScope remoteAppScope
)

Public methods

final @NonNull String

The user-facing name associated with this device.

final RemoteAppScope

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

final @NonNull IBinder

The token used to identify this device.

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

CREATOR

public static final @NonNull Parcelable.Creator<@NonNull SelectedDevice> CREATOR

Public constructors

SelectedDevice

public SelectedDevice(
    @NonNull IBinder token,
    @NonNull String displayName,
    RemoteAppScope remoteAppScope
)

Public methods

getDisplayName

public final @NonNull String getDisplayName()

The user-facing name associated with this device.

getRemoteAppScope

public final RemoteAppScope getRemoteAppScope()

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.

getToken

public final @NonNull IBinder getToken()

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.

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)