dioxus_mobile/
lib.rs

1#![doc = include_str!("../README.md")]
2#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
3#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
4
5pub use dioxus_desktop::*;
6use dioxus_lib::prelude::*;
7use std::any::Any;
8
9/// Launch via the binding API
10pub fn launch(root: fn() -> Element) {
11    launch_cfg(root, vec![], vec![]);
12}
13
14pub fn launch_cfg(
15    root: fn() -> Element,
16    contexts: Vec<Box<dyn Fn() -> Box<dyn Any> + Send + Sync>>,
17    platform_config: Vec<Box<dyn Any>>,
18) {
19    dioxus_desktop::launch::launch_cfg(root, contexts, platform_config);
20}