CreateChannelListener

Functions

Link copied to clipboard
abstract fun onCreateChannelPrecondition(currentUser: User?, channelId: String, memberIds: List<String>): Result<Unit>

Runs precondition check for ChatClient.createChannel. The request will be run if the method returns Result.Success and won't be made if it returns Result.Failure.

Link copied to clipboard
abstract suspend fun onCreateChannelRequest(channelType: String, channelId: String, memberIds: List<String>, extraData: Map<String, Any>, currentUser: User)

A method called before making an API call to create a channel.

Link copied to clipboard
abstract suspend fun onCreateChannelResult(channelType: String, channelId: String, memberIds: List<String>, result: Result<Channel>)

A method called after receiving the response from the create channel call.