NavigationSettingsRepository
Single source of truth for all navigation settings.
Provides typed access to settings via SettingsKey constants from Keys, persists values through SettingsStorage, and exposes reactive observation via StateFlow.
Create an instance using default:
val settingsRepository = NavigationSettingsRepository.default(context)Content copied to clipboard
Functions
Link copied to clipboard
Reads the current value for key from storage. Returns SettingsKey.defaultValue if no value has been stored.