-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.setup.state.ClientState
public interface ClientMutableState implements ClientState
Mutable version of ClientState. The class makes possible to change state of the SDK. Should only be used internally by the SDK.
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetUser(User user)Sets the User abstract UnitsetConnectionState(ConnectionState connectionState)Sets the ConnectionState abstract UnitsetInitialized(Boolean initialized)Sets initialized 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
-
setConnectionState
abstract Unit setConnectionState(ConnectionState connectionState)
Sets the ConnectionState
- Parameters:
connectionState- ConnectionState
-
setInitialized
abstract Unit setInitialized(Boolean initialized)
Sets initialized
- Parameters:
initialized- Boolean
-
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.
-
-
-
-