-
public interface ClientStateThe 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 public classClientState.Companion
-
Method Summary
Modifier and Type Method Description abstract UnitclearState()Clears the state of ClientState. abstract StateFlow<User>getUser()The current user in the OfflinePlugin state. abstract StateFlow<Boolean>getInitialized()If the client connection has been initialized. abstract StateFlow<ConnectionState>getConnectionState()StateFlow<ConnectionState> that indicates if we are currently online, connecting of offline. abstract BooleangetIsOnline()If the user is online or not. abstract BooleangetIsOffline()If the user is offline or not. abstract BooleangetIsConnecting()If connection is in connecting state. abstract BooleangetIsInitialized()If domain state is initialized or not. -
-
Method Detail
-
clearState
abstract Unit clearState()
Clears the state of ClientState.
-
getInitialized
abstract StateFlow<Boolean> getInitialized()
If the client connection has been initialized.
-
getConnectionState
abstract StateFlow<ConnectionState> getConnectionState()
StateFlow<ConnectionState> that indicates if we are currently online, connecting of offline.
-
getIsOnline
abstract Boolean getIsOnline()
If the user is online or not.
-
getIsOffline
abstract Boolean getIsOffline()
If the user is offline or not.
-
getIsConnecting
abstract Boolean getIsConnecting()
If connection is in connecting state.
-
getIsInitialized
abstract Boolean getIsInitialized()
If domain state is initialized or not.
-
-
-
-