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;
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;
detecting one or more touches, on the touch-sensitive surface, 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;
executing the delegate corresponding to the respective gesture recognizer to obtain a receive touch value in accordance with the application state;
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; and
executing the software application in accordance with information, received from the respective gesture recognizer, corresponding to the respective touch.
2 Assignments
0 Petitions
Accused Products
Abstract
A software application includes a plurality of views and an application state. The method includes displaying one or more views, where a respective view includes a respective gesture recognizer having a corresponding delegate to the respective gesture recognizer. The method includes detecting one or more events and processing a respective event of the one or more events using the respective gesture recognizer. The processing of the respective event includes processing the respective event at the respective gesture recognizer in accordance with a respective gesture definition corresponding to the respective gesture recognizer, executing the corresponding delegate to determine one or more values, and conditionally sending information corresponding to the respective event to the software application in accordance with the one or more values determined by the delegate. The method includes executing the software application in accordance with information, received from the respective gesture recognizer.
-
Citations
20 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; 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; detecting one or more touches, on the touch-sensitive surface, 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; executing the delegate corresponding to the respective gesture recognizer to obtain a receive touch value in accordance with the application state; 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; and executing the software application in accordance with information, received from the respective gesture recognizer, corresponding to the respective touch. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
8. 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, the software application including instructions for; 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 gesture recognizers, a respective gesture recognizer having a corresponding delegate; detecting one or more touches, on the touch-sensitive surface, 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; executing the delegate corresponding to the respective gesture recognizer to obtain a receive touch value in accordance with the application state; 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; and executing the software application in accordance with information, received from the respective gesture recognizer, corresponding to the respective touch.
-
-
9. A computer readable storage medium storing one or more programs for execution by one of more processors of an electronic device having 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, the software application including instructions for:
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 gesture recognizers, a respective gesture recognizer having a corresponding delegate; processing a respective touch of one or more touches on by the touch-sensitive surface, including; executing the delegate corresponding to the respective gesture recognizer to obtain a receive touch value in accordance with the application state; 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; and executing the software application in accordance with information, received from the respective gesture recognizer, corresponding to the respective touch.
-
10. A method, comprising:
at an electronic device having a touch-sensitive surface and configured to execute a software application; displaying one or more views of the software application, wherein the one or more displayed views include a plurality of gesture recognizers, the plurality of gesture recognizers including; at least one discrete gesture recognizer, the discrete gesture recognizer configured to send a single action message in response to a respective gesture; and at least one continuous gesture recognizer, the continuous gesture recognizer configured to send action messages at successive recognized sub-events of a respective recognized gesture; detecting one or more touches; processing each of the touches using one or more of the gesture recognizers, the processing of a respective touch including; processing the respective touch at a respective gesture recognizer in accordance with a respective gesture definition corresponding to the respective gesture recognizer, and conditionally sending one or more respective action messages to the software application in accordance with an outcome of the processing of the respective touch at the respective gesture recognizer; and executing the software application in accordance with one or more action messages received from one or more of the gesture recognizers corresponding to one or more of the touches. - 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, the software application including instructions for; displaying one or more views of the software application, wherein the one or more displayed views include a plurality of gesture recognizers, the plurality of gesture recognizers including; at least one discrete gesture recognizer, the discrete gesture recognizer configured to send a single action message in response to a respective gesture; and at least one continuous gesture recognizer, the continuous gesture recognizer configured to send action messages at successive recognized sub-events of a respective recognized gesture; detecting one or more touches; processing each of the touches using one or more of the gesture recognizers, the processing of a respective touch including; processing the respective touch at a respective gesture recognizer in accordance with a respective gesture definition corresponding to the respective gesture recognizer, and conditionally sending one or more respective action messages to the software application in accordance with an outcome of the processing of the respective touch at the respective gesture recognizer; and executing the software application in accordance with one or more action messages received from one or more of the gesture recognizers corresponding to one or more of the touches.
-
-
20. A computer readable storage medium storing one or more programs for execution by one of more processors of an electronic device having a touch-sensitive surface, the one or more programs including a software application, the software application including instructions for:
-
displaying one or more views of the software application, wherein the one or more displayed views include a plurality of gesture recognizers, the plurality of gesture recognizers including; at least one discrete gesture recognizer, the discrete gesture recognizer configured to send a single action message in response to a respective gesture; and at least one continuous gesture recognizer, the continuous gesture recognizer configured to send action messages at successive recognized sub-events of a respective recognized gesture; detecting one or more touches; processing each of the touches using one or more of the gesture recognizers, the processing of a respective touch including; processing the respective touch at a respective gesture recognizer in accordance with a respective gesture definition corresponding to the respective gesture recognizer, and conditionally sending one or more respective action messages to the software application in accordance with an outcome of the processing of the respective touch at the respective gesture recognizer; and executing the software application in accordance with one or more action messages received from one or more of the gesture recognizers corresponding to one or more of the touches.
-
Specification