NavigationSettingsApplier
object NavigationSettingsApplier
Applies persisted navigation settings to a NavigationManager.
Two modes of operation:
apply — one-time restore at startup (reads all keys, writes to NavigationManager)
observe — reactive: collects NavigationSettingsRepository StateFlows and applies changes to NavigationManager as they happen
val repo = NavigationSettingsRepository.default(context)
// In a LaunchedEffect:
NavigationSettingsApplier.apply(repo, navigationManager)
NavigationSettingsApplier.observe(repo, navigationManager)Content copied to clipboard
Functions
Link copied to clipboard
One-time restore of all runtime settings from repository into navigationManager.
Link copied to clipboard
Reactively observes repository changes and applies them to navigationManager. This is a suspend function that never returns — call it from a coroutine scope that is tied to the NavigationManager lifecycle.