UiPrefsUnitsOverrideSource

Adapts the stored units preference to the UnitsOverrideSource that core:common's unit provider consumes.

The indirection exists for the dependency direction: the provider lives in core:common, which the preferences modules depend on, so the provider cannot see UiPrefs itself. The eager collector runs in the application scope, whose owner cancels it with the application — this class owns no scope of its own.

Constructors

Link copied to clipboard
constructor(uiPrefs: UiPrefs, applicationCoroutineScope: ApplicationCoroutineScope)

Properties

Link copied to clipboard
open override val override: StateFlow<UnitsOverride>