headTrackingStateDidChange(isActive:)
Called when the user-facing Head Tracking state for this accessory changes (e.g. via Settings or Control Center).
Declaration
func headTrackingStateDidChange(isActive: Bool)Parameters
- isActive:
truewhen head tracking is enabled and the extension should stream IMU samples viaSession.sendDataToAudioExtension(_:);falsewhen head tracking is disabled and the extension should stop sampling.
Discussion
Implementations should start or stop sampling the accessory’s IMU based on the new state.