Package 

Interface DeleteChannelListener

    • Method Detail

      • onDeleteChannelRequest

         abstract Unit onDeleteChannelRequest(User currentUser, String channelType, String channelId)

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

        Parameters:
        currentUser - The currently logged in user.
        channelType - The channel type.
        channelId - The channel id.
      • onDeleteChannelResult

         abstract Unit onDeleteChannelResult(String channelType, String channelId, Result<Channel> result)

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

        Parameters:
        channelType - The channel type.
        channelId - The channel id.
        result - The API call result.
      • onDeleteChannelPrecondition

         abstract Result<Unit> onDeleteChannelPrecondition(User currentUser, String channelType, String channelId)

        Runs precondition check for ChatClient.deleteChannel. 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.
        channelType - The channel type.
        channelId - The channel id.