Retrieve individual channels or query multiple channels by ID with real-time updates and live object support
channelId
parameter. This function returns a Live Object of the AmityChannel
class, which contains information such as the channel’s display name, tags, avatar, and other metadata.
This function is useful for a variety of purposes, such as displaying information about a channel to users or retrieving channel details before joining the channel.
Parameter | Type | Required | Description |
---|---|---|---|
channelId | String | ✅ | Unique identifier of the channel to retrieve |
ChannelRepository
class includes a getChannels
method that takes an array of channel IDs as input and returns a live collection of channels. This live collection will contain all the channels that are being queried in the first page. This live collection will not support pagination.
Any update to the channels present in this live collection will be automatically notified to the user. Furthermore:
Parameter | Type | Required | Description |
---|---|---|---|
channelIds | Array<String> | ✅ | Array of channel IDs to retrieve (max 100) |