从 Airpods 获取自动检测信息 pro/max

Getting automatic detection information from Airpods pro/max

是否可以获取自动检测的信息(当ear/head-phones为put/removed时)?

如果可以,怎么办?

注意通知AVAudioSession.routeChangeNotification. For full details (including how to properly respond to this notification), see Responding to Audio Session Route Changes