Class MessagesState

  • All Implemented Interfaces:

    
    public class MessagesState
    
                        

    Represents of possible state of messages for ChannelState.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class MessagesState.NoQueryActive

      The ChannelState is initialized but no query is currently running. If you know that a query will be started you typically want to display a loading icon.

      public class MessagesState.Loading

      Indicates we are loading the first page of results. We are in this state if ChannelState.loading is true For seeing if we're loading more results have a look at loadingNewerMessages and loadingOlderMessages

      public class MessagesState.OfflineNoResults

      If we are offline and don't have channels stored in offline storage, typically displayed as an error condition.

      public final class MessagesState.Result

      The list of messages, loaded either from offline storage or an API call. Observe chatDomain.online to know if results are currently up to date

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail