Detect volume and button presses on Siri Remote

It is relatively simple to detect some button presses on the tvOS Siri Remote: the pause / play button, the area of ​​the touch panel and with little effort, the button MENU. But there seems to be no way to detect or override the function of the buttons +and -, or the Siri or home buttons.

Or is there?

+4
source share
1 answer

Currently, the +and -(volume) buttons on Siri are available through private functions. They cannot be overwritten or detected because they have a reserved function. The same goes for the home button.

There are several points that support this claim. Firstly, as the OP noted, there are no events that detect any actions related to the volume buttons. They also do not fire events pressesBeganor similar.

- GCGameController. , , , , . Apple TV Remote Game Controller . , CGGameController.

, , . Apple API, .

0

Source: https://habr.com/ru/post/1623705/


All Articles