ReloadableSource

A source whose values can change while the app runs, such as a remote config service. ReloadableConfig.watch reloads the config each time changes emits.

Inheritors

Properties

Link copied to clipboard
abstract val changes: Flow<Unit>

Emits after the source's values changed. It should also emit once when collection starts (a StateFlow does), so a change made before ReloadableConfig.watch subscribes is not lost; an extra emission only costs a reload that finds nothing new.

Link copied to clipboard
Link copied to clipboard
abstract val keyFormat: KeyFormat
Link copied to clipboard
open val name: String

Functions

Link copied to clipboard
open fun children(key: String): Map<String, String>?
Link copied to clipboard
abstract fun get(key: String): String?