Package 

Interface HideChannelListener

    • Method Detail

      • onHideChannelPrecondition

         abstract Result<Unit> onHideChannelPrecondition(String channelType, String channelId, Boolean clearHistory)

        Run precondition for the request. If it returns Result.isSuccess then the request is run otherwise it returns Result.error and no request is made.

        Parameters:
        channelType - Type of the requested channel.
        channelId - Id of the requested channel.
        clearHistory - Boolean, if you want to clear the history of this channel or not.
      • onHideChannelRequest

         abstract Unit onHideChannelRequest(String channelType, String channelId, Boolean clearHistory)

        Runs side effect before the request is launched.

        Parameters:
        channelType - Type of the requested channel.
        channelId - Id of the requested channel.
        clearHistory - Boolean, if you want to clear the history of this channel or not.
      • onHideChannelResult

         abstract Unit onHideChannelResult(Result<Unit> result, String channelType, String channelId, Boolean clearHistory)

        Runs this function on the result of the request.

        Parameters:
        result - Result of this request.
        channelType - Type of the requested channel.
        channelId - Id of the requested channel.
        clearHistory - Boolean, if you want to clear the history of this channel or not.