What problem does it solve?
AudioAccessoryKit solves the problem of getting the right audio output device when users connect and wear iOS-supported audio accessories, without manual switching.
Core Features & Use Cases
- Accessory registration for audio routing: Register paired accessories and declare capabilities so the system can route audio output intelligently.
- Automatic audio switching with placement awareness: Enable audio switching and optionally report accessory placement (in-ear/on-head/over-the-ear/off-head) for more accurate routing.
- Multi-device source coordination: Provide connected audio source identifiers (e.g., Bluetooth device addresses) so routing can follow the active source.
- Robust update lifecycle: Retrieve current accessory configuration, update configuration changes asynchronously, and handle capability-related errors safely.
Quick Start
Register a paired accessory with AudioAccessoryKit by declaring the audioSwitching capability (and add placement capability if you will update devicePlacement as the accessory is worn or removed).