Package 

Interface CreateChannelListener

    • Method Detail

      • onCreateChannelRequest

        @Deprecated(message = Use CreateChannelListener.onCreateChannelRequest(channelType, channelId, request, currentUser) instead, replaceWith = @ReplaceWith(imports = {io.getstream.chat.android.client.plugin.listeners.CreateChannelListener}, expression = onCreateChannelRequest(String, String, CreateChannelParams, User)), level = DeprecationLevel.WARNING) abstract Unit onCreateChannelRequest(String channelType, String channelId, List<String> memberIds, Map<String, Object> extraData, User currentUser)

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

        Parameters:
        channelType - The channel type.
        channelId - The channel id.
        memberIds - The list of members' ids.
        extraData - Map of key-value pairs that let you store extra data
        currentUser - The currently logged in user.
      • onCreateChannelRequest

         abstract Unit onCreateChannelRequest(String channelType, String channelId, CreateChannelParams params, User currentUser)

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

        Parameters:
        channelType - The channel type.
        channelId - The channel id.
        params - The request holding the required data for creating a channel.
        currentUser - The currently logged in user.
      • onCreateChannelResult

         abstract Unit onCreateChannelResult(String channelType, String channelId, List<String> memberIds, Result<Channel> result)

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

        Parameters:
        channelType - The channel type.
        channelId - The channel id.
        memberIds - The list of members' ids.
        result - The API call result.
      • onCreateChannelPrecondition

         abstract Result<Unit> onCreateChannelPrecondition(User currentUser, String channelId, List<String> memberIds)

        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.

        Parameters:
        currentUser - The currently logged in user.
        channelId - The channel id.
        memberIds - The list of members' ids.