as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Core interface for querying system information.

Methods

getUptime()

getUptime(): Promise<MonotonicDuration>
Returns the duration since the system was last booted.

Returns

Promise<MonotonicDuration>

isEmulator()

isEmulator(): Promise<boolean>
Returns true if the system is running in a virtualized environment rather than on real hardware. The term “Emulator” is used as a general term to include both emulators and simulators, so this property returns true for any non-physical device, regardless of the platform.

Returns

Promise<boolean>

getOperatingSystemInfo()

getOperatingSystemInfo(): IOperatingSystemInfo
Returns the instance of IOperatingSystemInfo for querying operating system information.

Returns

IOperatingSystemInfo
最后修改于 2026年8月25日