Sensors & Physical Actuators API Reference
6-Axis IMU & Barometer, Camera capture, Torch, and Linear Resonant Actuator Haptics
This document covers physical sensors and mechanical actuation on the Pixel 11 Pro. Each entry documents its Inputs (arguments, with defaults and units), its Outputs (every returned field, with type and meaning) and its Functions (what each callable takes and returns).
Reference
Section titled “Reference”| Hook | What it reads |
|---|---|
useAltimeter |
Precision barometric altimetry, vertical climb/descent velocity, and weather trends. |
useCamera |
Lens, zoom, flash and torch, plus taking photos and recording video. |
useCameraExtensions |
Google computational photography vendor extensions (Night Sight, Ultra HDR, Portrait Bokeh). |
useHaptics |
Vibration, from simple taps to custom-shaped waveforms. |
useHealthConnect |
Platform health records, steps, and sensor vitals telemetry. |
useMicrophoneArray |
Multi-mic acoustic array topology, polar directivity, and beamforming controls. |
useSensors |
Motion, orientation, air pressure and ambient light, streaming live. |
useThermometer |
Non-contact infrared temperature measurement on Google Pixel Pro hardware. |
useTorch |
The rear flashlight, including variable brightness and an SOS strobe. |