channelId, which is any string that uniquely identifies the channel and is immutable through its lifetime. When creating channels, you can specify your own
channelId, or leave it to Amity's Chat SDK to automatically generate one for you.
There can be only one and one only channel with a given
channelId. An error will be thrown when trying to generate two channels with the same
createChannel:guarantees that the requested channel is a new channel, whereas
joinChannel:will attempt to join an existing channel. If there is a requirement to create a new channel, use
joinChannel:. Lastly, calling
getChannel:only gives you back the channel data, but it won't make you join the said channel.
createChannelmethod to create a new channel. It supports creating of 3 types of channels
Conversation. Each channel type has specific builder classes which helps you create that particular channel. Build your channel information first and then create the particular channel.
3 channel types can be created through SDK i.e
Conversation. Creation of
Standardtype has been removed. Creation of
Broadcastchannel type is not supported through the SDK. But for query,
channelCollection:method supports all channel types including
joinChannel:is an idempotent method. This means that it can be called multiple times throughout the lifecycle of the application, and you can expect this method to always return the same channel. Because of this, you can also use
joinChannel:any time you need to fetch a channel, even if you know the user may already be in the channel.
getChannel:method can be used:
queryChannelsmethod. It returns a list of all the matching channels available.
metadataproperty on the channel model.
displayNameproperty. This property is mainly used to identify the channel in push notifications.
displayNamewith the following method: