Interface ISystemInfo
interface ISystemInfo
Extends com.amazon.apmf.IStandard
Core interface for querying system information.
All methods on this interface are thread-safe and may be called from any
thread.
Methods
getUptime()
com.amazon.apmf.MonotonicDuration getUptime()
Returns the duration since the system was last booted.
Returns
com.amazon.apmf.MonotonicDuration
The system uptime.
Throws
com.amazon.apmf.IoError— if the system service is unavailable.com.amazon.apmf.BaseError— for all the other Errors.
isEmulator()
bool isEmulator()
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
bool
true if running in an emulator, false otherwise.
Throws
com.amazon.apmf.IoError— if the system service is unavailable.com.amazon.apmf.BaseError— for all the other Errors.
getOperatingSystemInfo()
Returns the instance ofIOperatingSystemInfo*getOperatingSystemInfo()
IOperatingSystemInfo for querying operating system
information.
This method returns a cached instance that remains valid for the lifetime
of the process. Multiple calls return the same instance.
Returns
IOperatingSystemInfo*
instance of IOperatingSystemInfo for querying OS-specific information.
Throws
com.amazon.apmf.IoError— if the system service is unavailable.com.amazon.apmf.BaseError— for all the other Errors.

