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