Stay organized with collections
Save and categorize content based on your preferences.
ChannelInfo
data
class
ChannelInfo
:
AbstractSafeParcelable
Information used to identify a channel.
Summary
annotation
The type of the channel, indicating whether it was opened by this device, or accepted from a
remote device.
The channel was opened remotely, and accepted locally.
The channel was opened locally.
Information used to identify a channel.
Required Parcelable Creator.
Constants
INCOMING_CHANNEL
const
val
INCOMING_CHANNEL
:
Int
The channel was opened remotely, and accepted locally.
Value: 2
OUTGOING_CHANNEL
const
val
OUTGOING_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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[],["`ChannelInfo` identifies a channel using a name and type. The `channelType` indicates if the channel was opened locally (`OUTGOING_CHANNEL`, value 1) or remotely and accepted locally (`INCOMING_CHANNEL`, value 2). It includes a constructor to create `ChannelInfo` objects, and properties to access the `channelName` and `channelType`. The `writeToParcel` function allows data to be written to a `Parcel` and it includes a required `CREATOR` for parcelable operations.\n"]]