Gesture recognizers with delegates for controlling and modifying gesture recognition
First Claim
1. A method, comprising:
- at an electronic device having a touch-sensitive surface and configured to execute a software application that includes a plurality of views and an application state of the software application, wherein the plurality of views include a first plurality of gesture recognizers;
assigning distinct delegates to distinct gesture recognizers in at least a subset of the first plurality of gesture recognizers;
displaying one or more views of the plurality of views, wherein a respective view of the one or more displayed views includes one or more respective gesture recognizers, a respective gesture recognizer having a corresponding delegate, wherein the corresponding delegate is configured to determine one or more of;
whether the respective gesture recognizer is allowed to transition from an initial state to another state;
whether the respective gesture recognizer is allowed to simultaneously recognize information corresponding to the respective touch as a corresponding gesture without blocking one or more other gesture recognizers from recognizing the information corresponding to the respective touch or being blocked by one or more other gesture recognizers recognizing the information corresponding to the respective touch; and
whether the respective gesture recognizer is allowed to simultaneously recognize the information corresponding to the respective touch as a corresponding gesture without being blocked by the one or more other gesture recognizers recognizing the information corresponding to the respective touch;
detecting one or more touches, on the touch-sensitive surface, each having a touch position that falls within one or more of the displayed views;
processing a respective touch of the one or more touches, including;
obtaining a receive touch value based on the application state by executing, after detecting the one or more touches, the delegate corresponding to the respective gesture recognizer;
in response to determining that the receive touch value meets predefined criteria;
processing the respective touch at the respective gesture recognizer;
conditionally sending the information corresponding to the respective touch to the software application in accordance with an outcome of the processing of the respective touch by the respective gesture recognizer and in accordance with the receive touch value determined by the delegate corresponding to the respective gesture recognizer; and
executing the software application in accordance with the outcome of the processing of the respective touch by the respective gesture recognizer; and
in response to determining that the receive touch value does not meet the predefined criteria;
forgoing processing the respective touch at the respective gesture recognizer.
0 Assignments
0 Petitions
Accused Products
Abstract
A software application includes a plurality of views and an application state. The application includes instructions for displaying one or more views, where a respective view includes a respective gesture recognizer having a corresponding delegate, detecting one or more touches on a touch-sensitive surface, and processing a respective touch. The processing includes obtaining a receive touch value based on the application state by executing the delegate; when the receive touch value meets predefined criteria, processing the respective touch at the respective gesture recognizer; and conditionally sending information corresponding to the respective touch to the software application in accordance with an outcome of the processing by the respective gesture recognizer and in accordance with the receive touch value determined by the delegate. The software application is executed in accordance with the outcome of the processing of the respective touch by the respective gesture recognizer.
-
Citations
27 Claims
-
1. A method, comprising:
at an electronic device having a touch-sensitive surface and configured to execute a software application that includes a plurality of views and an application state of the software application, wherein the plurality of views include a first plurality of gesture recognizers; assigning distinct delegates to distinct gesture recognizers in at least a subset of the first plurality of gesture recognizers; displaying one or more views of the plurality of views, wherein a respective view of the one or more displayed views includes one or more respective gesture recognizers, a respective gesture recognizer having a corresponding delegate, wherein the corresponding delegate is configured to determine one or more of;
whether the respective gesture recognizer is allowed to transition from an initial state to another state;
whether the respective gesture recognizer is allowed to simultaneously recognize information corresponding to the respective touch as a corresponding gesture without blocking one or more other gesture recognizers from recognizing the information corresponding to the respective touch or being blocked by one or more other gesture recognizers recognizing the information corresponding to the respective touch; and
whether the respective gesture recognizer is allowed to simultaneously recognize the information corresponding to the respective touch as a corresponding gesture without being blocked by the one or more other gesture recognizers recognizing the information corresponding to the respective touch;detecting one or more touches, on the touch-sensitive surface, each having a touch position that falls within one or more of the displayed views; processing a respective touch of the one or more touches, including; obtaining a receive touch value based on the application state by executing, after detecting the one or more touches, the delegate corresponding to the respective gesture recognizer; in response to determining that the receive touch value meets predefined criteria; processing the respective touch at the respective gesture recognizer; conditionally sending the information corresponding to the respective touch to the software application in accordance with an outcome of the processing of the respective touch by the respective gesture recognizer and in accordance with the receive touch value determined by the delegate corresponding to the respective gesture recognizer; and executing the software application in accordance with the outcome of the processing of the respective touch by the respective gesture recognizer; and in response to determining that the receive touch value does not meet the predefined criteria; forgoing processing the respective touch at the respective gesture recognizer. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
10. A non-transitory computer readable storage medium storing one or more programs for execution by an electronic device with a touch-sensitive surface, the one or more programs including a software application that includes a plurality of views and an application state of the software application, wherein the plurality of views include a first plurality of gesture recognizers, the software application including instructions for:
-
assigning distinct delegates to distinct gesture recognizers in at least a subset of the first plurality of gesture recognizers; displaying one or more views of the plurality of views, wherein a respective view of the one or more displayed views includes one or more respective gesture recognizers, a respective gesture recognizer having a corresponding delegate, wherein the corresponding delegate is configured to determine one or more of;
whether the respective gesture recognizer is allowed to transition from an initial state to another state;
whether the respective gesture recognizer is allowed to simultaneously recognize information corresponding to the respective touch as a corresponding gesture without blocking one or more other gesture recognizers from recognizing the information corresponding to the respective touch or being blocked by one or more other gesture recognizers recognizing the information corresponding to the respective touch; and
whether the respective gesture recognizer is allowed to simultaneously recognize the information corresponding to the respective touch as a corresponding gesture without being blocked by the one or more other gesture recognizers recognizing information corresponding to the respective touch;detecting one or more touches, on the touch-sensitive surface, each having a touch position that falls within one or more of the displayed views; processing a respective touch of the one or more touches, including; obtaining a receive touch value based on the application state by executing, after detecting the one or more touches, the delegate corresponding to the respective gesture recognizer; in response to determining that the receive touch value meets predefined criteria; processing the respective touch at the respective gesture recognizer; conditionally sending the information corresponding to the respective touch to the software application in accordance with an outcome of the processing of the respective touch by the respective gesture recognizer and in accordance with the receive touch value determined by the delegate corresponding to the respective gesture recognizer; and executing the software application in accordance with the outcome of the processing of the respective touch by the respective gesture recognizer; and in response to determining that the receive touch value does not meet the predefined criteria; forgoing processing the respective touch at the respective gesture recognizer. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. An electronic device, comprising:
-
a touch-sensitive surface; one or more processors; memory; one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including a software application that includes a plurality of views and an application state of the software application, wherein the plurality of views include a first plurality of gesture recognizers, the software application including instructions for; assigning distinct delegates to distinct gesture recognizers in at least a subset of the first plurality of gesture recognizers; displaying one or more views of the plurality of views, wherein a respective view of the one or more displayed views includes one or more respective gesture recognizers, a respective gesture recognizer having a corresponding delegate, wherein the corresponding delegate is configured to determine one or more of;
whether the respective gesture recognizer is allowed to transition from an initial state to another state;
whether the respective gesture recognizer is allowed to simultaneously recognize information corresponding to the respective touch as a corresponding gesture without blocking one or more other gesture recognizers from recognizing the information corresponding to the respective touch or being blocked by one or more other gesture recognizers recognizing the information corresponding to the respective touch; and
whether the respective gesture recognizer is allowed to simultaneously recognize the information corresponding to the respective touch as a corresponding gesture without being blocked by the one or more other gesture recognizers recognizing the information corresponding to the respective touch;detecting one or more touches, on the touch-sensitive surface, each having a touch position that falls within one or more of the displayed views; processing a respective touch of the one or more touches, including; obtaining a receive touch value based on the application state by executing, after detecting the one or more touches, the delegate corresponding to the respective gesture recognizer; in response to determining that the receive touch value meets predefined criteria; processing the respective touch at the respective gesture recognizer; conditionally sending the information corresponding to the respective touch to the software application in accordance with an outcome of the processing of the respective touch by the respective gesture recognizer and in accordance with the receive touch value determined by the delegate corresponding to the respective gesture recognizer; and executing the software application in accordance with the outcome of the processing of the respective touch by the respective gesture recognizer; and in response to determining that the receive touch value does not meet the predefined criteria; forgoing processing the respective touch at the respective gesture recognizer. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27)
-
Specification