ChannelInfo

dataclassChannelInfo: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

constInt

The channel was opened remotely, and accepted locally.

constInt

The channel was opened locally.

Public constructors

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

Information used to identify a channel.

Public methods

Unit

Properties

String

Name of the channel

Int

Type of the channel

Companion properties

Creator<ChannelInfo>

Required Parcelable Creator.

Constants

ACCEPTED_CHANNEL

constvalACCEPTED_CHANNEL:Int

The channel was opened remotely, and accepted locally.

Value:2

OPENED_CHANNEL

constvalOPENED_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

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

Properties

channelName

valchannelName:String

Name of the channel

channelType

valchannelType:Int

Type of the channel

Companion properties

CREATOR

valCREATOR:Creator<ChannelInfo>

Required Parcelable Creator.