CreateChannelListener
interface CreateChannelListener
Listener for io.getstream.chat.android.client.ChatClient.createChannel calls.
Inheritors
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, params: CreateChannelParams, currentUser: User)
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