Interface ClientState

  • All Implemented Interfaces:

    
    public interface ClientState
    
                        

    The current state of the SDK. With this class you can get the current user, the connection state, initialization state...

    • 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
    • Method Summary

      Modifier and Type Method Description
      abstract StateFlow<InitializationState> getInitializationState() The state of the initialization process of the SDK.
      abstract StateFlow<User> getUser() The current user if connected.
      abstract StateFlow<ConnectionState> getConnectionState() StateFlow<ConnectionState> that indicates if we are currently online, connecting of offline.
      abstract Boolean isOnline() If the WebSocket is connected.
      abstract Boolean isOffline() If the WebSocket is disconnected.
      abstract Boolean isConnecting() If connection is in connecting state.
      abstract Boolean isNetworkAvailable() If internet is available or not.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getInitializationState

         abstract StateFlow<InitializationState> getInitializationState()

        The state of the initialization process of the SDK.

      • getUser

         abstract StateFlow<User> getUser()

        The current user if connected.

      • getConnectionState

         abstract StateFlow<ConnectionState> getConnectionState()

        StateFlow<ConnectionState> that indicates if we are currently online, connecting of offline.

      • isNetworkAvailable

         abstract Boolean isNetworkAvailable()

        If internet is available or not. This is not related to the connection of the SDK, it returns if internet is available in the device.