Interface HideChannelListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • onHideChannelPrecondition

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

        Run precondition for the request. If it returns Result.Success then the request is run otherwise it returns Result.Failure 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.