Nova Patents
EP3258366A1

Event recognition

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.

EP3258366A1, drawing sheet 1
Sheet 1 of 47

Term

5.2 yearsto projected expiry

Projected expiry 19 December 2031, counted from filing; an application has no term until it is granted.

  1. Priority
  2. Filed
  3. Published
  4. Today
  5. Projected expiry

15 claims: 6 independent, 9 dependent

  1. 1
    A method, comprising:at an electronic device with an internal state, the electronic device configured to execute software that includes a plurality of views: displaying one or more views of the plurality of views;while displaying the one or more views: detecting a sequence of touch inputs on a touch-sensitive display at a location that corresponds to a respective view of the one or more views;and processing the sequence of touch inputs with an event recognizer for the respective view, wherein the event recognizer has a plurality of event definitions for a respective event, one of which is selected in accordance with the internal state of the electronic device, and the respective event recognizer processes the sequence of touch inputs in accordance with the selected event definition, including: sending an action to a respective target, specified for the event recognizer, in response to the event recognizer detecting an event corresponding to a first event definition of the plurality of event definitions when the first event definition has been selected in accordance with the internal state of the electronic device, and sending an action to the same respective target, specified for the event recognizer, in response to the event recognizer detecting an event corresponding to a second event definition, distinct from the first event definition, of the plurality of event definitions when the second event definition has been selected in accordance with the internal state of the electronic device.
  2. 4
    The method of any of claims 1-3, wherein the internal state includes one or more settings for an accessibility operating mode.
  3. 5
    The method of any of claims 1-4, wherein the internal state of the electronic device is identified prior to detecting a touch input of the sequence of touch inputs.
  4. 6
    The method of any of claims 1-5, wherein two or more event recognizers each have a respective plurality of event definitions, and a respective event definition of the respective plurality of event definitions is selected for a respective event recognizer in accordance with the internal state of the electronic device and a determination that the respective event definition does not correspond to any event definition selected for any event recognizer other than the respective event recognizer.
  5. 7
    The method of any of claims 1-6, wherein processing the sequence of touch inputs with the event recognizer includes displaying one or more views of a first software application distinct from the software that includes the plurality of views.
  6. 8
    An electronic device, comprising:a touch-sensitive display;one or more processors;and memory storing an internal state and one or more programs for execution by the one or more processors, the one or more programs including software that includes a plurality of views, wherein the one or more programs include instructions for: displaying one or more views of the plurality of views;while displaying the one or more views: detecting a sequence of touch inputs on the touch-sensitive display at a location that corresponds to a respective view of the one or more views;and processing the sequence of touch inputs with an event recognizer for the respective view, wherein the event recognizer has a plurality of event definitions for a respective event, one of which is selected in accordance with the internal state of the electronic device, and the respective event recognizer processes the sequence of touch inputs in accordance with the selected event definition, including: sending an action to a respective target, specified for the event recognizer, in response to the event recognizer detecting an event corresponding to a first event definition of the plurality of event definitions when the first event definition has been selected in accordance with the internal state of the electronic device, and sending an action to the same respective target, specified for the event recognizer, in response to the event recognizer detecting an event corresponding to a second event definition, distinct from the first event definition, of the plurality of event definitions when the second event definition has been selected in accordance with the internal state of the electronic device.
  7. 11
    The device of any of claims 8-10, wherein the internal state of the electronic device is identified prior to detecting a touch input of the sequence of touch inputs.
  8. 12
    The device of any of claims 8-11, wherein two or more event recognizers each have a respective plurality of event definitions, and a respective event definition of the respective plurality of event definitions is selected for a respective event recognizer in accordance with the internal state of the electronic device and a determination that the respective event definition does not correspond to any event definition selected for any event recognizer other than the respective event recognizer.
  9. 13
    The device of any of claims 8-12, wherein processing the sequence of touch inputs with the event recognizer includes displaying one or more views of a first software application distinct from the software that includes the plurality of views.
  10. 14
    A computer readable storage medium storing one or more programs for execution by one or more processors in an electronic device that has an internal state, the one or more programs including software that includes a view hierarchy with a plurality of views, wherein the one or more programs include instructions for:displaying one or more views of the plurality of views;while displaying the one or more views: detecting a sequence of touch inputs on a touch-sensitive display at a location that corresponds to a respective view of the one or more views;and processing the sequence of touch inputs with an event recognizer for the respective view, wherein the event recognizer has a plurality of event definitions for a respective event, one of which is selected in accordance with the internal state of the electronic device, and the respective event recognizer processes the sequence of touch inputs in accordance with the selected event definition, including: sending an action to a respective target, specified for the event recognizer, in response to the event recognizer detecting an event corresponding to a first event definition of the plurality of event definitions when the first event definition has been selected in accordance with the internal state of the electronic device;and sending an action to the same respective target, specified for the event recognizer, in response to the event recognizer detecting an event corresponding to a second event definition, distinct from the first event definition, of the plurality of event definitions when the second event definition has been selected in accordance with the internal state of the electronic device.