The API provides the following key features:
- System Uptime Monitoring: Gets precise system uptime with nanosecond accuracy
- Operating System Information: Provides access to the OS display name, version, and codename
- Build Information: Retrieves detailed build metadata and fingerprints
- Emulator Detection: Identifies whether the app is running on the Vega Virtual Device (VVD)
- TypeScript Support: The API fully supports TypeScript definition
- Error Handling: Supports comprehensive error handling with try-catch patterns
Remarks
The core interfaces for the API are as follows.Getting Started
Setup
Add the following library dependencies to yourpackage.json file.
Usage Examples
Basic usage pattern
The following code example shows the minimal usage of the API.ISystemInfo Interface
System Uptime
The following code example shows how to get the system uptime with nanosecond accuracy.Emulator detection
The following example code shows how check whether the app is running on the VVD.Access operating system information
The following example code shows how to use theIOperatingSystemInfo interface to access detailed operating system information.
Retrieve build information
The following example code shows how to use theIBuildInfo interface to retrieve comprehensive build information.
Example
The following example code demonstrates all major features of the API.Error Handling
The API uses standard JavaScript error handling. Always wrap API calls in try-catch blocks.Modules
- index
- SystemInfoModule
- turbo-modules/interfaces
- turbo-modules/interfaces
- turbo-modules/interfaces
- turbo-modules/interfaces/IBuildInfo
- turbo-modules/interfaces/IBuildInfo
- turbo-modules/interfaces/IBuildInfo
- turbo-modules/interfaces/IOperatingSystemInfo
- turbo-modules/interfaces/IOperatingSystemInfo
- turbo-modules/interfaces/IOperatingSystemInfo
- turbo-modules/interfaces/ISystemInfo
- turbo-modules/interfaces/ISystemInfo
- turbo-modules/interfaces/ISystemInfo
- turbo-modules/NativeSystemInfo
- turbo-modules/NativeSystemInfo
- turbo-modules/types
- turbo-modules/types
- turbo-modules/types
- turbo-modules/types/BuildInfo
- turbo-modules/types/BuildInfo
- turbo-modules/types/BuildInfo
- turbo-modules/types/MonotonicDuration
- turbo-modules/types/MonotonicDuration
- turbo-modules/types/MonotonicDuration
- turbo-modules/types/OperatingSystemInfo
- turbo-modules/types/OperatingSystemInfo
- turbo-modules/types/OperatingSystemInfo
- turbo-modules/types/RawTimeValue
- turbo-modules/types/RawTimeValue
- turbo-modules/types/RawTimeValue
- turbo-modules/types/RealTimeInstant
- turbo-modules/types/RealTimeInstant
- turbo-modules/types/RealTimeInstant
- turbo-modules/types/SystemInfo
- turbo-modules/types/SystemInfo
- turbo-modules/types/SystemInfo

