GlobalAccountDataStore

class GlobalAccountDataStore(globalAccountDataRepository: GlobalAccountDataRepository, tm: RepositoryTransactionManager, contentMappings: EventContentSerializerMappings, config: MatrixClientConfiguration, statisticCollector: ObservableCacheStatisticCollector, storeScope: CoroutineScope, clock: Clock) : Store

Constructors

Link copied to clipboard
constructor(globalAccountDataRepository: GlobalAccountDataRepository, tm: RepositoryTransactionManager, contentMappings: EventContentSerializerMappings, config: MatrixClientConfiguration, statisticCollector: ObservableCacheStatisticCollector, 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 <C : GlobalAccountDataEventContent> get(eventContentClass: KClass<C>, key: String = ""): Flow<ClientEvent.GlobalAccountDataEvent<C>?>
Link copied to clipboard
Link copied to clipboard
open suspend fun init(coroutineScope: CoroutineScope)
Link copied to clipboard