Skip to main content

lifecycle_supported

Function lifecycle_supported 

Source
pub fn lifecycle_supported(phase: Lifecycle) -> bool
Expand description

Does the running backend deliver phase? Use this to guard registration at runtime: if day::lifecycle_supported(Lifecycle::DidEnterBackground) { on_lifecycle(...) }.

Returns the universal answer (phase.is_universal()) if called before the backend is up.

Day API ↩ Guides· daybrite.dev