Skip to main content

launch_auto

Function launch_auto 

Source
pub fn launch_auto<F, E>(
    root_fn: F,
    config: WindowConfig,
    event_handler: E,
) -> Result<(), String>
where F: FnMut() -> View + 'static, E: FnMut(&PlatformEvent, &mut AppRuntime) -> bool + 'static,
Expand description

Auto-detects the host platform display server and launches an interactive desktop window.