Skip to main content

euv_core/platform/quickapp/
const.rs

1/// Canonical vendor identifier for QuickApp Alliance (`@system.*` standard).
2pub const QUICKAPP_VENDOR_ALLIANCE: &str = "quickapp-alliance";
3
4/// Canonical vendor identifier for Huawei QuickApp (`@system.*` + `@service.*`).
5pub const QUICKAPP_VENDOR_HUAWEI: &str = "quickapp-huawei";
6
7/// Standard QuickApp Alliance design width in virtual pixels (`750px`).
8pub const QUICKAPP_DESIGN_WIDTH_PX: f32 = 750.0;
9
10/// QuickApp `@system.router` feature module identifier.
11pub const QUICKAPP_FEATURE_ROUTER: &str = "system.router";
12
13/// QuickApp `@system.storage` feature module identifier.
14pub const QUICKAPP_FEATURE_STORAGE: &str = "system.storage";
15
16/// QuickApp `@system.clipboard` feature module identifier.
17pub const QUICKAPP_FEATURE_CLIPBOARD: &str = "system.clipboard";
18
19/// QuickApp `@system.device` feature module identifier.
20pub const QUICKAPP_FEATURE_DEVICE: &str = "system.device";
21
22/// QuickApp `@system.network` feature module identifier.
23pub const QUICKAPP_FEATURE_NETWORK: &str = "system.network";
24
25/// QuickApp `@system.vibrator` feature module identifier.
26pub const QUICKAPP_FEATURE_VIBRATOR: &str = "system.vibrator";
27
28/// QuickApp `@system.prompt` feature module identifier.
29pub const QUICKAPP_FEATURE_PROMPT: &str = "system.prompt";
30
31/// QuickApp `@system.share` feature module identifier.
32pub const QUICKAPP_FEATURE_SHARE: &str = "system.share";
33
34/// Default QuickApp physical screen width in pixels.
35pub(crate) const QUICKAPP_DEFAULT_SCREEN_W_PX: u32 = 1080;
36
37/// Default QuickApp physical screen height in pixels.
38pub(crate) const QUICKAPP_DEFAULT_SCREEN_H_PX: u32 = 2400;
39
40/// Default QuickApp display density scale factor.
41pub(crate) const QUICKAPP_DEFAULT_DENSITY: f32 = 3.0;
42
43/// Default QuickApp status bar height in physical pixels.
44pub(crate) const QUICKAPP_DEFAULT_STATUS_BAR_PX: u32 = 108;
45
46/// Default QuickApp bottom navigation indicator height in physical pixels.
47pub(crate) const QUICKAPP_DEFAULT_NAV_BAR_PX: u32 = 72;
48
49/// Default QuickApp initial page route path.
50pub(crate) const QUICKAPP_DEFAULT_ROUTE: &str = "/Index";