Access runtime system/device info and trigger system-level actions from script.
Syntax
System()Returns
Example
sys = System()
print("sdk=", sys.sdk())
battery = System.battery()
print("battery=", battery.percent, battery.charging)
System.toast("Macro started")
System.play_noti()
System.home()Fields
| Name | Description |
|---|---|
devdict | Device capability info (`isEmulator`, `sdk`, `language`, `darkmode`, `touch`, `capture`). |
batterydict | Battery info (`percent`, `charging`, `temperature`, `health`). |
screendict | Screen info (`width`, `height`, `orientation`, `density`, `dpi`); `orientation` is display rotation in degrees: `0`, `90`, `180`, or `270`. |
memorydict | Memory info (`avail`, `total`, `threshold`, `low`). |