StateRegistry
class StateRegistry(userStateFlow: StateFlow<User?>, latestUsers: StateFlow<Map<String, User>>, job: Job, now: () -> Long, scope: CoroutineScope)
Registry of all state objects exposed in the offline plugin. This class should have only one instance for the SDK.
Parameters
userStateFlow
The state flow that provides the user once it is set.
latestUsers
Latest users of the SDK.
job
A background job cancelled after calling clear.
scope
A scope for new coroutines.
Constructors
Functions
Link copied to clipboard
Returns ChannelState that represents a state of particular channel.
Link copied to clipboard
Returns QueryChannelsState associated with particular filter and sort.
Link copied to clipboard
Returns a QueryThreadsState holding the current state of the threads data.
Link copied to clipboard
Returns ThreadState of thread replies with parent message that has id equal to messageId.