observeEntities

abstract fun <T : Any> observeEntities(clazz: KClass<T>): Flow<List<T>>

Observes all entities of type T, emitting the full list on each change.

Return

A Flow emitting the list of all stored entities.

Parameters

clazz

The KClass of the entity type.

Type Parameters

T

The entity type (must be annotated with @Entity).