airpods_motion_flutter library

Classes

AirPodsMotion
High-level client API for calibrated 6-DoF AirPods & Beats head-motion telemetry, live route detection, and deterministic simulation.
AirPodsMotionConfig
Configuration for headphone motion sampling, filtering, and simulator fallback.
AirPodsMotionError
Structured error event emitted when CoreMotion reports a runtime failure.
AirpodsMotionPlatform
Platform interface that platform-specific implementations of airpods_motion_flutter must implement.
AirPodsMotionSimulator
Deterministic simulator and trace replay harness for testing and development without physical AirPods hardware (e.g., iOS Simulator, Linux, or unit tests).
HeadphoneDevice
Snapshot of the connected headphone device, motion capability, and tracking state.
HeadphoneMotionSample
A full 6-DoF head-motion telemetry frame from CMHeadphoneMotionManager or AirPodsMotionSimulator.
HeadphoneQuaternion
A unit quaternion (x, y, z, w) representing 3D headphone orientation.
HeadphoneVector3
A 3D vector representing angular velocity, linear acceleration, gravity, or magnetic field telemetry from headphone motion sensors.
MethodChannelAirpodsMotion
MethodChannel / EventChannel implementation of AirpodsMotionPlatform.
OneEuroFilter
Pure-Dart implementation of the adaptive 1-Euro low-pass filter (Casiez, Roussel, & Vogel, CHI 2012).
OneEuroPoseFilter
Multi-channel 1-Euro filter for 3-axis head pose (pitch, roll, yaw) and optional scalar acceleration magnitude.

Enums

AirPodsFilterMode
Native signal-conditioning mode applied before emitting samples to Dart.
HeadphoneAuthorizationStatus
CoreMotion motion & fitness authorization status for headphone motion updates.
HeadphoneHardwareModel
Inferred Apple/Beats headphone hardware family from audio route naming.
HeadphoneSensorLocation
Active IMU earbud/headphone location reported by CMDeviceMotion.SensorLocation.
SimulatorFallbackMode
Simulator behavior when native headphone motion hardware is unavailable.