Event Recognition
First Claim
1. A method, comprising:
- at an electronic device with an internal state, the electronic device configured to execute software that includes a view hierarchy with a plurality of views;
displaying one or more views of the view hierarchy;
executing one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having;
one or more event definitions based on one or more sub-events, andan event handler, wherein the event handler;
specifies an action for a target, andis configured to send the action to the target in response to the event recognizer detecting an event corresponding to a particular event definition of the one or more event definitions;
detecting a sequence of one or more sub-events;
identifying one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; and
delivering a respective sub-event to event recognizers for each actively involved view within the view hierarchy,wherein at least one event recognizer for actively involved views in the view hierarchy has a plurality of event definitions, one of which is selected in accordance with the internal state of the electronic device, and the at least one event recognizer processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events in accordance with the selected event definition.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic device executes one or more software elements. Each software element is associated with a particular view, which includes one or more event recognizers. Each event recognizer has one or more event definitions based on one or more sub-events, and an event handler. The event handler is configured to send an action to a target in response to the event recognizer detecting an event corresponding to a particular event definition. The electronic device detects a sequence of sub-events, and identifies actively involved views. The electronic device delivers a respective sub-event to event recognizers for actively involved views. At least one event recognizer for actively involved views has a plurality of event definitions, one of which is selected in accordance with an internal state of the electronic device. The at least one event recognizer processes the respective sub-event in accordance with the selected event definition.
-
Citations
20 Claims
-
1. A method, comprising:
-
at an electronic device with an internal state, the electronic device configured to execute software that includes a view hierarchy with a plurality of views; displaying one or more views of the view hierarchy; executing one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having; one or more event definitions based on one or more sub-events, and an event handler, wherein the event handler; specifies an action for a target, and is configured to send the action to the target in response to the event recognizer detecting an event corresponding to a particular event definition of the one or more event definitions; detecting a sequence of one or more sub-events; identifying one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; and delivering a respective sub-event to event recognizers for each actively involved view within the view hierarchy, wherein at least one event recognizer for actively involved views in the view hierarchy has a plurality of event definitions, one of which is selected in accordance with the internal state of the electronic device, and the at least one event recognizer processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events in accordance with the selected event definition. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An electronic device, comprising:
-
a display; one or more processors; and memory storing an internal state and one or more programs for execution by the one or more processors, the one or more programs including software that includes a view hierarchy with a plurality of views, wherein the one or more programs include instructions for; displaying one or more views of the view hierarchy; executing one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having; one or more event definitions based on one or more sub-events, and an event handler, wherein the event handler; specifies an action for a target, and is configured to send the action to the target in response to the event recognizer detecting an event corresponding to a particular event definition of the one or more event definitions; detecting a sequence of one or more sub-events; identifying one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; and delivering a respective sub-event to event recognizers for each actively involved view within the view hierarchy, wherein at least one event recognizer for actively involved views in the view hierarchy has a plurality of event definitions, one of which is selected in accordance with the internal state of the electronic device, and the at least one event recognizer processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events in accordance with the selected event definition. - View Dependent Claims (12, 13, 14, 15)
-
-
16. A non-transitory computer readable storage medium storing one or more programs for execution by one or more processors in an electronic device that has an internal state, the one or more programs including software that includes a view hierarchy with a plurality of views, wherein the one or more programs include instructions for:
-
displaying one or more views of the view hierarchy; executing one or more software elements, each software element being associated with a particular view, wherein each particular view includes one or more event recognizers, each event recognizer having; one or more event definitions based on one or more sub-events, and an event handler, wherein the event handler; specifies an action for a target, and is configured to send the action to the target in response to the event recognizer detecting an event corresponding to a particular event definition of the one or more event definitions; detecting a sequence of one or more sub-events; identifying one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; and delivering a respective sub-event to event recognizers for each actively involved view within the view hierarchy, wherein at least one event recognizer for actively involved views in the view hierarchy has a plurality of event definitions, one of which is selected in accordance with the internal state of the electronic device, and the at least one event recognizer processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events in accordance with the selected event definition. - View Dependent Claims (17, 18, 19, 20)
-
Specification