AndroidLocaleChangeNotifier

Listens for ACTION_LOCALE_CHANGED, which the platform also broadcasts when the user edits the Android 14+ regional preferences (Settings > System > Languages & input > Regional preferences) — the documented way to notice a temperature-unit change.

Registered not-exported. Android documents that a receiver for system-only broadcasts need not pass a flag at all, but a protected system broadcast is still delivered to a not-exported receiver, and passing the flag keeps the platform's own lint check satisfied.

Constructors

Link copied to clipboard
constructor(context: Application)

Properties

Link copied to clipboard
open override val localeChanges: Flow<Unit>