Skip to main content

install_nav_store

Function install_nav_store 

Source
pub fn install_nav_store()
Expand description

Install this prefs store as the app’s navigation-persistence store (docs/navigation.md), so a selector or stack marked .restore(key) remembers its state across launches (and across an Android process death, since the store is disk-backed). Call once at startup, before the UI mounts. Nav keys are namespaced under a day.nav. prefix, so .restore("mail") never collides with the app’s own set/get keys.

day_part_prefs::install_nav_store();
// … day::launch(app) …
Day API ↩ Guides· daybrite.dev