Hi, what you're looking for is the CMSHeadphoneMotionManager API in CoreMotion.
You can find the Apple documentation here.
https://developer.apple.com/documentation/coremotion/cmheadphonemotionmanager
I also found a sample on Github.
https://github.com/tukuyo/AirPodsPro-Motion-Sampler
Topic:
App & System Services
SubTopic:
Hardware
Tags: