Expand description
View process implementations.
This module provides the default view-process implementation and a prebuilt version of it.
use zng::prelude::*;
use zng::view_process::default as view_process;
// use zng::view_process::prebuilt as view_process;
fn main() {
zng::env::init!();
// single_process();
// multi_process();
}
fn multi_process() {
app();
}
fn single_process() {
view_process::run_same_process(app);
}
fn app() {
APP.defaults().run_window(async {
Window! {}
})
}See the app module documentation for more details about view-processes.
See zng::env::init! for more details about running Android apps.
See zng_view_api::Controller::start for details on how to relax connection timeouts in very slow test runner machines.