AirPods Gestures

Hello together,

is there an API or a way to react to AirPods Gestures for an Recording that got started from an Intent or even when the App is open?

Scenario: I am walking, riding the bike or do some other mainly hands free activities or can't reach my phone but have my AirPods in my ears.

Goal:

  1. Via Siri, I am able to start an AudioRecordingIntent and it runs smoothly.
  2. I'd like Pause / Resume the recording by Single Tapping the AirPods or to end the Recording by simply double-tapping.

Pretty much like if I would mute/unmute or hang up on a call.

MPRemoteCommandCenter doesn't seem to be the solution for this. Not sure if this is because the Recording is started through an AudioRecordingIntent.

AirPods Gestures
 
 
Q