LocaleUnitsProviderImpl

class LocaleUnitsProviderImpl(localeChangeNotifier: LocaleChangeNotifier, overrideSource: UnitsOverrideSource, applicationCoroutineScope: ApplicationCoroutineScope) : LocaleUnitsProvider(source)

Constructors

Link copied to clipboard
constructor(localeChangeNotifier: LocaleChangeNotifier, overrideSource: UnitsOverrideSource, applicationCoroutineScope: ApplicationCoroutineScope)

Properties

Link copied to clipboard
open override val measurementSystem: StateFlow<MeasurementSystem>
Link copied to clipboard
open override val temperatureUnit: StateFlow<TemperatureUnit>

A forced system carries its temperature with it (metric → °C, imperial → °F), overriding even an explicit OS regional temperature preference — a user who forces one system wants one system, not a blend. SYSTEM keeps the OS resolution, where distance and temperature are deliberately decoupled (see TemperatureUnit).