zng

Module view_process

source
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.

Modulesยง

  • Default view-process implementation.
  • Default view-process implementation as an embedded precompiled binary.