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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/// Canonical name string for Web platform.
pub const PLATFORM_NAME_WEB: &str = "web";
/// Canonical name string for Android native platform.
pub const PLATFORM_NAME_ANDROID: &str = "android";
/// Canonical name string for iOS native platform.
pub const PLATFORM_NAME_IOS: &str = "ios";
/// Canonical name string for iPadOS native platform.
pub const PLATFORM_NAME_IPADOS: &str = "ipados";
/// Canonical name string for macOS native platform.
pub const PLATFORM_NAME_MACOS: &str = "macos";
/// Canonical name string for Windows native platform.
pub const PLATFORM_NAME_WINDOWS: &str = "windows";
/// Canonical name string for Linux native platform.
pub const PLATFORM_NAME_LINUX: &str = "linux";
/// Canonical name string for Headless offscreen platform.
pub const PLATFORM_NAME_HEADLESS: &str = "headless";
/// Canonical name string for interactive PTY Terminal TUI platform.
pub const PLATFORM_NAME_TERMINAL: &str = "terminal";
/// Canonical name string for non-interactive static/pipe CLI platform.
pub const PLATFORM_NAME_TERMINAL_CLI: &str = "terminal-cli";
/// Canonical name string for Smartwatch / Wearable platforms.
pub const PLATFORM_NAME_WEARABLE: &str = "wearable";
/// Canonical name string for HarmonyOS / OpenHarmony platforms.
pub const PLATFORM_NAME_HARMONY_OS: &str = "harmonyos";
/// Canonical name string for Mini-Program host platforms.
pub const PLATFORM_NAME_MINIAPP: &str = "miniapp";
/// Canonical name string for QuickApp host platforms.
pub const PLATFORM_NAME_QUICKAPP: &str = "quickapp";
/// Minimum supported display refresh rate in Hertz.
pub const MIN_REFRESH_RATE_HZ: f32 = 24.0;
/// Maximum supported display refresh rate in Hertz (supports 240Hz / 360Hz / 480Hz / 540Hz+ hardware displays).
pub const MAX_REFRESH_RATE_HZ: f32 = 1000.0;
/// Fallback display refresh rate in Hertz when the OS reports unknown.
pub const FALLBACK_REFRESH_RATE_HZ: f32 = 60.0;
/// Default high-refresh initialization rate in Hertz for GPU-capable platforms prior to live display query.
pub const HIGH_REFRESH_DEFAULT_HZ: f32 = 120.0;
/// Minimum preferred ProMotion active refresh floor in Hertz on 120Hz+ displays.
pub const PRO_MOTION_MIN_ACTIVE_HZ: f32 = 80.0;
/// Android `MotionEvent.ACTION_DOWN` masked action constant.
pub const ANDROID_ACTION_DOWN: i32 = 0;
/// Android `MotionEvent.ACTION_UP` masked action constant.
pub const ANDROID_ACTION_UP: i32 = 1;
/// Android `MotionEvent.ACTION_MOVE` masked action constant.
pub const ANDROID_ACTION_MOVE: i32 = 2;
/// Android `MotionEvent.ACTION_CANCEL` masked action constant.
pub const ANDROID_ACTION_CANCEL: i32 = 3;
/// Android `MotionEvent.ACTION_POINTER_DOWN` masked action constant.
pub const ANDROID_ACTION_POINTER_DOWN: i32 = 5;
/// Android `MotionEvent.ACTION_POINTER_UP` masked action constant.
pub const ANDROID_ACTION_POINTER_UP: i32 = 6;
/// Native action argument enabling OS immersive fullscreen mode.
pub const FULLSCREEN_ACTION_ON: &str = "on";
/// Native action argument exiting OS immersive fullscreen mode.
pub const FULLSCREEN_ACTION_OFF: &str = "off";
/// Short alias accepted by `PlatformKind::from_str_id` for HarmonyOS / OpenHarmony.
pub const PLATFORM_ALIAS_OHOS: &str = "ohos";
/// Short alias accepted by `PlatformKind::from_str_id` for OpenHarmony.
pub const PLATFORM_ALIAS_OPENHARMONY: &str = "openharmony";
/// Short alias accepted by `PlatformKind::from_str_id` for Wearables / Smartwatches.
pub const PLATFORM_ALIAS_WATCH: &str = "watch";
/// Short alias accepted by `PlatformKind::from_str_id` for interactive Terminal TUI.
pub const PLATFORM_ALIAS_TUI: &str = "tui";
/// Short alias accepted by `PlatformKind::from_str_id` for static/pipe Terminal CLI.
pub const PLATFORM_ALIAS_CLI: &str = "cli";