pub fn dispatch_lifecycle_state(to: LifecycleState)Expand description
Publishes a platform lifecycle state and derives the transition source from the framework’s previous state.
Leaving the foreground runs every registered durable save first, inside the budget the host allows, so an application never has to hook the transition itself to persist its data.