See what premium Google Developer Program benefits can do for you. Learn more
Stay organized with collections
Save and categorize content based on your preferences.
ChannelInfo
data class ChannelInfo : AbstractSafeParcelable
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
|
Information used to identify a channel.
|
Properties
|
String |
Name of the channel
|
Int |
Type of the channel
|
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
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` is a data class used to identify a channel, containing information about the channel's name and type."],["Channels can be either `INCOMING_CHANNEL` (opened remotely and accepted locally) or `OUTGOING_CHANNEL` (opened locally)."],["The class implements `Parcelable` for serialization and includes properties for the channel name (`channelName`) and type (`channelType`)."],["A `CREATOR` is provided for creating instances of `ChannelInfo` from a `Parcel`."]]],["`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"]]