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