UserPresenceStore

class UserPresenceStore(repository: UserPresenceRepository, tm: RepositoryTransactionManager, statisticCollector: ObservableCacheStatisticCollector, config: MatrixClientConfiguration, storeScope: CoroutineScope, clock: Clock) : Store

Constructors

Link copied to clipboard
constructor(repository: UserPresenceRepository, tm: RepositoryTransactionManager, statisticCollector: ObservableCacheStatisticCollector, config: MatrixClientConfiguration, storeScope: CoroutineScope, clock: Clock)

Functions

Link copied to clipboard
open suspend override fun clearCache()

Only deletes everything, that can be fetched from server.

Link copied to clipboard
open suspend override fun deleteAll()

Deletes everything.

Link copied to clipboard
fun getPresence(userId: UserId): Flow<UserPresence?>
Link copied to clipboard
open suspend fun init(coroutineScope: CoroutineScope)
Link copied to clipboard
suspend fun setPresence(userId: UserId, userPresence: UserPresence)