Function initiative_core::app
source ยท pub fn app<F: Fn(Event)>(
data_store: impl DataStore + 'static,
event_dispatcher: &'static F,
) -> App
Expand description
Creates a new instance of the application wrapper. The data_store
is used to save and load
data from storage, and the event_dispatcher
is a callback function invoked whenever an
event occurs in-app that may require special handling by the UI. See Event
for details.