StateRegistry

constructor(userStateFlow: StateFlow<User?>, latestUsers: StateFlow<Map<String, User>>, activeLiveLocations: StateFlow<List<Location>>, job: Job, now: () -> Long, scope: CoroutineScope, messageLimitConfig: MessageLimitConfig)

Parameters

userStateFlow

The state flow that provides the user once it is set.

latestUsers

Latest users of the SDK.

activeLiveLocations

Latest live locations of the SDK.

job

A background job cancelled after calling clear.

scope

A scope for new coroutines.

messageLimitConfig

Configuration for message limits.