pub trait AppLifecycle {
// Provided methods
fn on_start(&mut self, ctx: &mut dyn AppContext) { ... }
fn on_exit(&mut self) { ... }
}Expand description
Optional lifecycle hooks — implement on the same type as App
to hook startup / shutdown without inflating the main trait.
Provided Methods§
Sourcefn on_start(&mut self, ctx: &mut dyn AppContext)
fn on_start(&mut self, ctx: &mut dyn AppContext)
Called once after the backend is up but before the first
update. Apps install their theme / fonts here.