Skip to main content

Module types

Module types 

Source
Expand description

Data models and enums representing native device telemetry and hardware states.

Structs§

AmbientLightReading
Ambient light sensor (ALS) reading.
AmbientSplReading
Ambient Sound Pressure Level (SPL) reading bridged from live microphone audio metering.
BarometerReading
Barometric pressure and ISA pressure-altitude sensor reading.
BatteryInfo
Comprehensive battery telemetry.
CompassReading
Magnetometer / compass telemetry.
DisplayRefreshInfo
Display refresh rate characteristics and capabilities.
GeolocationInfo
Complete geolocation telemetry fix for reactive UI and map centering.
GpuInfo
GPU hardware introspection information.
HeartRateReading
Biometric heart-rate monitor reading (bridged from BLE HRS 0x180D or wearable sensors).
HingeAngleReading
Foldable display / laptop lid hinge angle reading in degrees (0..=360).
ImuReading
6-DoF Inertial Measurement Unit (accelerometer + gyroscope + fused attitude) reading.
NetworkStatus
Network connectivity and bandwidth telemetry.
PedometerReading
Hardware step counter / pedometer reading.
ProximityReading
Optical / infrared proximity sensor reading (phone ear-detection / obstacle proximity).
RadioSignalReading
Wireless radio RSSI and link-quality telemetry (Wi-Fi + Cellular).
SafeAreaInsets
Screen safe area insets for notches, Dynamic Island, and curved display bezels.
ScreenGeometry
Geometry, scale factor, and color capabilities of the active display.

Enums§

BatteryState
Battery charging state.
CellularGen
Cellular radio generation.
ColorGamut
Supported display color gamut standard.
ConnectionType
Active network interface connection type.
FoldablePosture
Physical posture inferred from a foldable or laptop lid hinge angle.
GeolocationSource
Origin source of a geolocation fix.
GpuBackend
Underlying GPU rendering backend.
MemoryPressure
System-wide memory pressure level.
ThermalState
Thermal throttling state of the device.

Functions§

isa_pressure_altitude_m
Computes International Standard Atmosphere (ISA) pressure altitude in meters from barometric pressure in hectopascals (hPa / mbar): h = 44330.0 * (1.0 - (P / 1013.25)^0.190295).
lux_to_daylight_factor
Maps illuminance in lux to a smooth perceptual daylight factor in [0.0, 1.0] (0.0 = dark room, 1.0 = bright outdoor daylight >= 10,000 lux).