DeviceInfo
| Class | Type | Name | Interface Description |
|---|---|---|---|
| DeviceInfo | Static Functions | getOS():OS | Get the operating system type of the current device |
| getCameraFacingType(): number | Get the camera orientation of the current device | ||
| OS | Enum | Android, | Operating System Type |
| iOS, | |||
| Windows, | |||
| MacOS, | |||
| Linux, | |||
| HarmonyOS |
Examples
getOS():OS
const os = APJS.DeviceInfo.getOS();
getCameraFacingType(): number
const cameraFacing = APJS.DeviceInfo.getCameraFacingType();