Contents

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:

    true when head tracking is enabled and the extension should stream IMU samples via Session.sendDataToAudioExtension(_:); false when 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.