Package 

Interface ClientState


  • 
    public interface ClientState
    
                        

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

    • 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 getIsOnline() If the WebSocket is connected.
      abstract Boolean getIsOffline() If the WebSocket is disconnected.
      abstract Boolean getIsConnecting() If connection is in connecting state.
      abstract Boolean getIsNetworkAvailable() If internet is available or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.

      • getIsNetworkAvailable

         abstract Boolean getIsNetworkAvailable()

        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.