createChannel

fun createChannel(channelType: String, channelId: String, memberIds: List<String>, extraData: Map<String, Any>): Call<Channel>

Creates the channel. You can either create an id-based channel by passing not blank channelId or member-based (distinct) channel by leaving channelId empty. Use memberIds list to create a channel together with members. Make sure the list is not empty in case of creating member-based channel! Extra channel's information, for example name, can be passed in the extraData map.

The call will be retried accordingly to retryPolicy.

Return

Executable async Call responsible for creating the channel.

Parameters

channelType

The channel type. ie messaging.

channelId

The channel id. ie 123.

memberIds

The list of members' ids.

extraData

Map of key-value pairs that let you store extra data.

See also

RetryPolicy