ChannelInfo

data class ChannelInfo : AbstractSafeParcelable
com.google.android.gms.dtdi.core.ChannelInfo

Information used to identify a channel.

Summary

Nested classes

annotation

The type of the channel, indicating whether it was opened by this device, or accepted from a remote device.

Constants

const Int

The channel was opened remotely, and accepted locally.

const Int

The channel was opened locally.

Public constructors

<init>(channelName: String, channelType: Int)

Information used to identify a channel.

Public methods

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties

String

Name of the channel

Int

Type of the channel

Companion properties

Creator<ChannelInfo>

Required Parcelable Creator.

Constants

ACCEPTED_CHANNEL

const val ACCEPTED_CHANNEL: Int

The channel was opened remotely, and accepted locally.

Value: 2

OPENED_CHANNEL

const val OPENED_CHANNEL: Int

The channel was opened locally.

Value: 1

Public constructors

<init>

ChannelInfo(
    channelName: String,
    channelType: Int)

Information used to identify a channel.

Public methods

writeToParcel

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

Properties

channelName

val channelName: String

Name of the channel

channelType

val channelType: Int

Type of the channel

Companion properties

CREATOR

val CREATOR: Creator<ChannelInfo>

Required Parcelable Creator.