OS
Device OS
| Type | Name | Interface Description |
|---|---|---|
| Enum | Android = 0 | |
| Enum | HarmonyOS = 5 | |
| Enum | IOS = 1 | |
| Enum | Linux = 4 | |
| Enum | MacOS = 3 | |
| Enum | Windows = 2 |
Examples
Android = 0
let value = APJS.OS.Android;
HarmonyOS = 5
let value = APJS.OS.HarmonyOS;
IOS = 1
let value = APJS.OS.IOS;
Linux = 4
let value = APJS.OS.Linux;
MacOS = 3
let value = APJS.OS.MacOS;
Windows = 2
let value = APJS.OS.Windows;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use OS here
}
onUpdate(deltaTime: number) {
}
}