×

Gesture recognizers with delegates for controlling and modifying gesture recognition

  • US 10,732,997 B2
  • Filed: 06/14/2017
  • Issued: 08/04/2020
  • Est. Priority Date: 01/26/2010
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×