CA2909730C

Event recognition by device with touch-sensitive display using multiple gesture recognizers

Abstract

A method executes software including a view hierarchy with a plurality of views which displays one or more views of the view hierarchy. The method executes software elements associated with a particular view, wherein each particular view includes event recognizers. Each event recognizer has an event definition based on sub-events, and an event handler that specifies an action for a target, and is configured to send the action to the target in response to an event recognition. The method detects a sequence of sub-events, and identifies one of the views of the view hierarchy as a hit view that establishes which views in the hierarchy are actively involved views. The method delivers a respective sub-event to event recognizers for each actively involved view, wherein each event recognizer for actively involved views in the view hierarchy processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events.

CA2909730C, drawing sheet 1
Sheet 1 of 13

Term

3.5 yearsleft in the term

Expires 12 March 2030.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Expires

30 claims: 6 independent, 24 dependent

  1. 1
    CA 2909730 2017-05-01 The embodiments of the invention in which an exclusive property or privilege is claimed are defined as follows:1. A method, comprising, at a device with a touch-sensitive display: detecting one or more touches on the touch-sensitive display within a view that corresponds to a region of a user interface displayed on the touch-sensitive display;obtaining a sequence of touch sub-events that correspond to one or more touches within the view;providing the sequence of touch sub-events to a plurality of gesture recognizers that are associated with the view, including a first gesture recognizer and a second gesture recognizer;and detecting that the sequence of touch sub-events corresponds to a gesture recognized by the first gesture recognizer, and in response to detecting that the sequence of touch sub-events corresponds to a gesture recognized by the first gesture recognizer, preventing the second gesture recognizer from recognizing a gesture that corresponds to the sequence of touch subevents.
  2. 6
    A method, comprising, at a device with a touch-sensitive display:detecting one or more touches on the touch-sensitive display within a view that corresponds to a region of a user interface displayed on the touch-sensitive display;obtaining a sequence of touch sub-events that correspond to one or more touches within the view;providing the sequence of touch sub-events to a plurality of gesture recognizers that are associated with the view, including a first gesture recognizer and a second gesture recognizer;and detecting a transition in state of the first gesture recognizer with respect to recognizing a gesture based on the sequence of touch sub-events;and in response to detecting the transition in state of the first gesture recognizer: in accordance with a determination that the first gesture recognizer has transitioned to a state in which a gesture that corresponds to the sequence of touch sub-events has been recognized, transitioning the second gesture recognizer into a state in which the second gesture recognizer is prevented from recognizing a gesture that corresponds to the sequence of touch sub-events. CA 2909730 2017-05-01
  3. 11
    An electronic device, comprising:a touch-sensitive display;one or more processors;and CA 2909730 2017-05-01 memory storing one or more programs for execution by the one or more processors, the one or more programs including instructions for: detecting one or more touches on the touch-sensitive display within a view that corresponds to a region of a user interface displayed on the touch-sensitive display;obtaining a sequence of touch sub-events that correspond to one or more touches within the view;providing the sequence of touch sub-events to a plurality of gesture recognizers that are associated with the view, including a first gesture recognizer and a second gesture recognizer;and detecting that the sequence of touch sub-events corresponds to a gesture recognized by the first gesture recognizer, and in response to detecting that the sequence of touch sub-events corresponds to a gesture recognized by the first gesture recognizer, preventing the second gesture recognizer from recognizing a gesture that corresponds to the sequence of touch subevents.
  4. 16
    A computer readable storage medium, storing one or more programs for execution by one or more processors of an electronic device with a touch-sensitive display, the one or more programs including instructions for:detecting one or more touches on the touch-sensitive display within a view that corresponds to a region of a user interface displayed on the touch-sensitive display;obtaining a sequence of touch sub-events that correspond to one or more touches within the view;providing the sequence of touch sub-events to a plurality of gesture recognizers that are associated with the view, including a first gesture recognizer and a second gesture recognizer;and detecting that the sequence of touch sub-events corresponds to a gesture recognized by the first gesture recognizer;and in response to detecting that the sequence of touch sub-events corresponds to a gesture recognized by the first gesture recognizer, preventing the second gesture recognizer from recognizing a gesture that corresponds to the sequence of touch sub-events. CA 2909730 2017-05-01
  5. 21
    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 instructions for: detecting one or more touches on the touch-sensitive display within a view that corresponds to a region of a user interface displayed on the touch-sensitive display;obtaining a sequence of touch sub-events that correspond to one or more touches within the view;providing the sequence of touch sub-events to a plurality of gesture recognizers that are associated with the view, including a first gesture recognizer and a second gesture recognizer;and detecting a transition in state of the first gesture recognizer with respect to recognizing a gesture based on the sequence of touch sub-events;and in response to detecting the transition in state of the first gesture recognizer: in accordance with a determination that the first gesture recognizer has transitioned to a state in which a gesture that corresponds to the sequence of touch subevents has been recognized, transitioning the second gesture recognizer into a state in which the second gesture recognizer is prevented from recognizing a gesture that corresponds to the sequence of touch sub-events.
  6. 26
    A computer readable storage medium, storing one or more programs for execution by one or more processors of an electronic device with a touch-sensitive display, the one or more programs including instructions for:detecting one or more touches on the touch-sensitive display within a view that corresponds to a region of a user interface displayed on the touch-sensitive display;obtaining a sequence of touch sub-events that correspond to one or more touches within the view;providing the sequence of touch sub-events to a plurality of gesture recognizers that are associated with the view, including a first gesture recognizer and a second gesture recognizer;and CA 2909730 2017-05-01 detecting a transition in state of the first gesture recognizer with respect to recognizing a gesture based on the sequence of touch sub-events;and in response to detecting the transition in state of the first gesture recognizer: in accordance with a determination that the first gesture recognizer has transitioned to a state in which a gesture that corresponds to the sequence of touch subevents has been recognized, transitioning the second gesture recognizer into a state in which the second gesture recognizer is prevented from recognizing a gesture that corresponds to the sequence of touch sub-events.