← ClaudeAtlas

audioaccessorykitlisted

Support automatic audio switching for paired third-party Bluetooth headphones or earbuds with AudioAccessoryKit. Use when a companion app registers an audio accessory, an app extension reports worn/removed placement or connected source-device changes, or AccessoryControlDevice capabilities and errors need handling. Do not use for general AVAudioSession routing, Bluetooth transport, or initial accessory pairing.
thiennc-tesoglobal/ios-skills · ★ 3 · AI & Automation · score 66
Install: claude install-skill thiennc-tesoglobal/ios-skills
# AudioAccessoryKit Automatic audio switching support and intelligent audio routing inputs for third-party audio accessories. Enables companion apps to register audio accessory configuration with the system, and app extensions to report placement and connected source changes that help the system switch audio output. Available iOS 26.4+ / iPadOS 26.4+. > **Beta-sensitive.** AudioAccessoryKit is new in iOS 26.4. Re-check current > Apple documentation before relying on specific API details. AudioAccessoryKit builds on top of AccessorySetupKit. The accessory must first be paired via AccessorySetupKit before it can be registered for audio features. The central type is `AccessoryControlDevice`, which registers a `Configuration` from the container app and applies ongoing configuration updates from the app extension. ## Contents - [Setup](#setup) - [Session Management](#session-management) - [Audio Switching](#audio-switching) - [Device Placement](#device-placement) - [Connected Audio Sources](#connected-audio-sources) - [Feature Discovery](#feature-discovery) - [Error Handling](#error-handling) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Setup ### Prerequisites 1. Pair the accessory over Bluetooth using AccessorySetupKit. This yields an `ASAccessory` object. 2. Import the frameworks where needed in the container app and extension: ```swift import AccessorySetupKit import AudioAccessoryKit ``` ### Framework