Event recognition
First Claim
1. A method, comprising:
- at an electronic device configured to execute software that includes a view hierarchy with a plurality of views;
displaying at least a first view of the plurality of views;
detecting one or more sub-events at the first view, wherein;
the plurality of views includes two or more gesture recognizers including a first gesture recognizer in the first view;
each of the two or more gesture recognizers is configured to transition among a plurality of predefined states; and
the first gesture recognizer is associated with a wait-for list that identifies a set of gesture recognizers, wherein the first gesture recognizer is configured to recognize the one or more sub-events only after each gesture recognizer in the set of gesture recognizers enters into a respective state, of the plurality of predefined states, indicating that the gesture recognizer has not recognized the one or more sub-events;
determining whether the gesture recognizers in the set of gesture recognizers have entered into respective states, of the plurality of predefined states, indicating that the gesture recognizers have not recognized the one or more sub-events; and
,in accordance with a determination that the gesture recognizers in the set of gesture recognizers have entered into the respective states of the plurality of predefined states, recognizing the one or more sub-events with the first gesture recognizer.
0 Assignments
0 Petitions
Accused Products
Abstract
A method executes software including a view hierarchy with a plurality of views which displays one or more views of the view hierarchy. The method executes software elements associated with a particular view, wherein each particular view includes event recognizers. Each event recognizer has an event definition based on sub-events, and an event handler that specifies an action for a target, and is configured to send the action to the target in response to an event recognition. The method detects a sequence of sub-events, and identifies one of the views of the view hierarchy as a hit view that establishes which views in the hierarchy are actively involved views. The method delivers a respective sub-event to event recognizers for each actively involved view, wherein each event recognizer for actively involved views in the view hierarchy processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events.
-
Citations
15 Claims
-
1. A method, comprising:
at an electronic device configured to execute software that includes a view hierarchy with a plurality of views; displaying at least a first view of the plurality of views; detecting one or more sub-events at the first view, wherein; the plurality of views includes two or more gesture recognizers including a first gesture recognizer in the first view; each of the two or more gesture recognizers is configured to transition among a plurality of predefined states; and the first gesture recognizer is associated with a wait-for list that identifies a set of gesture recognizers, wherein the first gesture recognizer is configured to recognize the one or more sub-events only after each gesture recognizer in the set of gesture recognizers enters into a respective state, of the plurality of predefined states, indicating that the gesture recognizer has not recognized the one or more sub-events; determining whether the gesture recognizers in the set of gesture recognizers have entered into respective states, of the plurality of predefined states, indicating that the gesture recognizers have not recognized the one or more sub-events; and
,in accordance with a determination that the gesture recognizers in the set of gesture recognizers have entered into the respective states of the plurality of predefined states, recognizing the one or more sub-events with the first gesture recognizer. - View Dependent Claims (2, 3, 4, 5)
-
6. An electronic device, comprising:
-
a display; one or more processors; and memory storing software that includes a view hierarchy with a plurality of views and instructions, which, when executed by the one or more processors, cause the electronic device to perform a method including; displaying at least a first view of the plurality of views; detecting one or more sub-events at the first view, wherein; the plurality of views includes two or more gesture recognizers including a first gesture recognizer in the first view; each of the two or more gesture recognizers is configured to transition among a plurality of predefined states; and the first gesture recognizer is associated with a wait-for list that identifies a set of gesture recognizers, wherein the first gesture recognizer is configured to recognize the one or more sub-events only after each gesture recognizer in the set of gesture recognizers enters into a respective state, of the plurality of predefined states, indicating that the gesture recognizer has not recognized the one or more sub-events; determining whether the gesture recognizers in the set of gesture recognizers have entered into respective states, of the plurality of predefined states, indicating that the gesture recognizers have not recognized the one or more sub-events; and
,in accordance with a determination that the gesture recognizers in the set of gesture recognizers have entered into the respective states of the plurality of predefined states, recognizing the one or more sub-events with the first gesture recognizer. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A non-transitory computer readable storage medium storing software that includes a view hierarchy with a plurality of views and instructions for execution by one of more processors of an electronic device, the instructions for:
-
displaying at least a first view of the plurality of views; detecting one or more sub-events at the first view, wherein; the plurality of views includes two or more gesture recognizers including a first gesture recognizer in the first view; each of the two or more gesture recognizers is configured to transition among a plurality of predefined states; and the first gesture recognizer is associated with a wait-for list that identifies a set of gesture recognizers, wherein the first gesture recognizer is configured to recognize the one or more sub-events only after each gesture recognizer in the set of gesture recognizers enters into a respective state, of the plurality of predefined states, indicating that the gesture recognizer has not recognized the one or more sub-events; determining whether the gesture recognizers in the set of gesture recognizers have entered into respective states, of the plurality of predefined states, indicating that the gesture recognizers have not recognized the one or more sub-events; and
,in accordance with a determination that the gesture recognizers in the set of gesture recognizers have entered into the respective states of the plurality of predefined states, recognizing the one or more sub-events with the first gesture recognizer. - View Dependent Claims (12, 13, 14, 15)
-
Specification