events

val events: StateFlow<List<Event>?>

A reactive stream of the currently stored events.

  • The initial value is null while the first database read is in progress.

  • It automatically re-queries SimpleEventLogger.getEvents whenever the logger emits a change notification.

  • Uses SharingStarted.WhileSubscribed to pause database observations if the UI is completely hidden, saving resources.