Skip to content

System & Media API Reference

Microphone capture and metering, display, power, media library, and the modem

This document covers system telemetry, media capture and playback, power and the wireless modem. Each entry documents its Inputs (arguments, with defaults and units), its Outputs (every returned field) and its Functions (what each callable takes and returns).

Hook What it reads
useAudio Microphone recording with levels and input choice, plus playback.
useCapabilities What this particular phone actually has.
useCellular Carrier, radio generation and network codes from the modem.
useDevice Device identity, battery level, thermistor temperature, voltage, current, and wattage.
useDisplay Refresh rate, HDR capability, brightness and the screen wake lock.
useMediaLibrary Saving captures to the gallery, and reading what is there.
useNetwork Connection type, address and whether traffic actually goes anywhere.
useSpatialAudio Android Spatializer status, binaural rendering, and dynamic head tracking telemetry.
useVideo Playing video back, with position, seeking and thumbnails.