clicks vs. taps

What's the difference? I even looked at the video clips in the tv HIG ("Remote and Interactions::Gestures") and can't tell what distinction they're trying to make.

Accepted Reply

The new remote has a touch surface with a physical button under it. Touches are exactly what you'd expect - fingers on the touch surface. For tvOS, these are represented by an "indirect" touch type - as opposed to a phone or pad where the touches are directly on the screen. UIGestureRecognizer and its subclasses recognize these touches when you set the allowedTouchType to recognize these indirect touches.


Physical button clicks are represented by the UIPress classes and recognized by gesture recongizers when you set the allowedPressTypes. Beyond the select button under the touch surface, you can also recognize the Play/Pause button, and the Menu button using UIPress.


The combination of these two things allow you to set up recognition for either type of gesture - a tap on the touch surface, or a click of the physical button.

Replies

A tap is a UITapGesture, whereas a click is when the user physically clicks down the trackpad causing a select event.


You have to be careful with taps because of the tendency for users to rest their finger on the trackpad... you might end up interpreting inadvertent events if not applied in the right context.

The new remote has a touch surface with a physical button under it. Touches are exactly what you'd expect - fingers on the touch surface. For tvOS, these are represented by an "indirect" touch type - as opposed to a phone or pad where the touches are directly on the screen. UIGestureRecognizer and its subclasses recognize these touches when you set the allowedTouchType to recognize these indirect touches.


Physical button clicks are represented by the UIPress classes and recognized by gesture recongizers when you set the allowedPressTypes. Beyond the select button under the touch surface, you can also recognize the Play/Pause button, and the Menu button using UIPress.


The combination of these two things allow you to set up recognition for either type of gesture - a tap on the touch surface, or a click of the physical button.

"The new remote has a touch surface with a physical button under it."


The whole surface is a button (essentially) and takes a click?? Wow, the things you learn! :-) I hadn't picked that up from the docs. Fabulous, dahling, fabulous.

Is there any information on the coordinate space of the touch surface?

Touches are always centered on the currently focused view and move from there. There is not currently any API that allows you to see where on the touch surface the finger is. If you'd like to see that added, please file a bug at bugreporter.apple.com and let us know what kind of features you'd use that information for.