0

Is there a way to recognize when the Apple Earphone Remote Control button is held, instead of initiating Voice Control? I mean, disable Voice Control and do something else instead when the button is long pressed?

I know it has already been asked in How to receive single tap and hold Remote-Control Event with iOS?, but this answer does not solve my problem.

1 Answers1

0

According to UIEventType under UIEventSubtype you will get these 4 events from Earbuds

UIEventSubtypeRemoteControlTogglePlayPause
UIEventSubtypeRemoteControlPlay
UIEventSubtypeRemoteControlPause
UIEventSubtypeRemoteControlStop

There is not any subevent defined related to Long press of the button.

Rajat
  • 10,977
  • 3
  • 38
  • 55