Class

UIPressesEvent

An event that describes the state of a set of physical buttons that are available to the device, such as those on an associated remote or game controller.

Declaration

class UIPressesEvent : UIEvent

Topics

Reading the Event Button Presses

var allPresses: Set<UIPress>

Returns the state of all physical buttons in the event.

func presses(for: UIGestureRecognizer) -> Set<UIPress>

Returns the state of all physical buttons in the event that are associated with a particular gesture recognizer.

Relationships

Inherits From

Conforms To

See Also

Button Presses

class UIPress

An object that represents the presence or movement of a button press on the screen for a particular event.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software