Application programming interfaces for gesture operations
First Claim
Patent Images
1. A method, comprising:
- at an electronic device with a display and a touch-sensitive surface, wherein the electronic device includes a plurality of programs that are operating within a platform that includes platform code configured to provide the plurality of programs with a common framework for handling gesture events detected on the touch-sensitive surface;
displaying, on the display, a user interface that includes a respective view that is associated with a respective program of the plurality of programs, wherein the respective view of the plurality of views is a region of the user interface that includes content displayed on the display and the content in the respective view is responsive to inputs within a region of the touch-sensitive surface that corresponds to the respective view;
while displaying the respective view on the display, detecting, via the platform code, a user input;
in response to detecting the user input, determining whether the user input corresponds to a gesture that is based on one or more touches detected on the touch-sensitive surface;
in response to determining that the user input corresponds to a gesture that is based on one or more touches detected on the touch-sensitive surface, transferring from the platform code to the respective program associated with the respective view, via an application programming interface (API), a handle gesture event function call that represents the detected gesture;
after transferring, via the API, the handle gesture event function call, detecting a change in the gesture that corresponds to a change in one or more touches detected on the touch-sensitive surface that correspond to the gesture; and
in response to detecting the change in the gesture, transferring, via the API, a gesture change function call that represents the change in the gesture, wherein the gesture change function call is transferred from the platform code configured to provide the plurality of programs with the common framework for handling gesture events detected on the touch-sensitive surface to the respective program that is associated with the respective view.
0 Assignments
0 Petitions
Accused Products
Abstract
At least certain embodiments of the present disclosure include an environment with user interface software interacting with a software application to provide gesture operations for a display of a device. A method for operating through an application programming interface (API) in this environment includes transferring a scaling transform call. The gesture operations include performing a scaling transform such as a zoom in or zoom out in response to a user input having two or more input points. The gesture operations also include performing a rotation transform to rotate an image or view in response to a user input having two or more input points.
-
Citations
18 Claims
-
1. A method, comprising:
-
at an electronic device with a display and a touch-sensitive surface, wherein the electronic device includes a plurality of programs that are operating within a platform that includes platform code configured to provide the plurality of programs with a common framework for handling gesture events detected on the touch-sensitive surface; displaying, on the display, a user interface that includes a respective view that is associated with a respective program of the plurality of programs, wherein the respective view of the plurality of views is a region of the user interface that includes content displayed on the display and the content in the respective view is responsive to inputs within a region of the touch-sensitive surface that corresponds to the respective view; while displaying the respective view on the display, detecting, via the platform code, a user input; in response to detecting the user input, determining whether the user input corresponds to a gesture that is based on one or more touches detected on the touch-sensitive surface; in response to determining that the user input corresponds to a gesture that is based on one or more touches detected on the touch-sensitive surface, transferring from the platform code to the respective program associated with the respective view, via an application programming interface (API), a handle gesture event function call that represents the detected gesture; after transferring, via the API, the handle gesture event function call, detecting a change in the gesture that corresponds to a change in one or more touches detected on the touch-sensitive surface that correspond to the gesture; and in response to detecting the change in the gesture, transferring, via the API, a gesture change function call that represents the change in the gesture, wherein the gesture change function call is transferred from the platform code configured to provide the plurality of programs with the common framework for handling gesture events detected on the touch-sensitive surface to the respective program that is associated with the respective view. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An electronic device, comprising:
-
a display; a touch-sensitive surface; a processing unit; and memory storing a plurality of programs that are operating within a platform that includes platform code configured to provide the plurality of programs with a common framework for handling gesture events detected on the touch-sensitive surface, wherein the memory also includes instructions, which, when executed by the processing unit, cause the electronic device to; display, on the display, a user interface that includes a respective view that is associated with a respective program of the plurality of programs, wherein the respective view of the plurality of views is a region of the user interface that includes content displayed on the display and the content in the respective view is responsive to inputs within a region of the touch-sensitive surface that corresponds to the respective view; while displaying the respective view on the display, detect, via the platform code, a user input; in response to detecting the user input, determine whether the user input corresponds to a gesture that is based on one or more touches detected on the touch-sensitive surface; in response to determining that the user input corresponds to a gesture that is based on one or more touches detected on the touch-sensitive surface, transfer from the platform code to the respective program associated with the respective view, via an application programming interface (API), a handle gesture event function call that represents the detected gesture; after transferring, via the API, the handle gesture event function call, detect a change in the gesture that corresponds to a change in one or more touches detected on the touch-sensitive surface that correspond to the gesture; and in response to detecting the change in the gesture, transfer, via the API, a gesture change function call that represents the change in the gesture, wherein the gesture change function call is transferred from the platform code configured to provide the plurality of programs with the common framework for handling gesture events detected on the touch-sensitive surface to the respective program that is associated with the respective view. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer readable storage medium storing (i) a plurality of programs that are operating within a platform that includes platform code configured to provide the plurality of programs with a common framework for handling gesture events detected on a touch-sensitive surface;
- and (ii) instructions for execution by a processing unit of an electronic device with a display and the touch-sensitive surface, wherein the stored instructions include instructions for;
displaying, on the display, a user interface that includes a respective view that is associated with a respective program of the plurality of programs, wherein the respective view of the plurality of views is a region of the user interface that includes content displayed on the display and the content in the respective view is responsive to inputs within a region of the touch-sensitive surface that corresponds to the respective view; while displaying the respective view on the display detecting, via the platform code, a user input; in response to detecting the user input, determining whether the user input corresponds to a gesture that is based on one or more touches detected on the touch-sensitive surface; in response to determining that the user input corresponds to a gesture that is based on one or more touches detected on the touch-sensitive surface, transferring from the platform code to the respective program associated with the respective view, via an application programming interface (API), a handle gesture event function call that represents the detected gesture; after transferring, via the API, the handle gesture event function call, detecting a change in the gesture that corresponds to a change in one or more touches detected on the touch-sensitive surface that correspond to the gesture; and in response to detecting the change in the gesture, transferring, via the API, a gesture change function call that represents the change in the gesture, wherein the gesture change function call is transferred from the platform code configured to provide the plurality of programs with the common framework for handling gesture events detected on the touch-sensitive surface to the respective program that is associated with the respective view. - View Dependent Claims (14, 15, 16, 17, 18)
- and (ii) instructions for execution by a processing unit of an electronic device with a display and the touch-sensitive surface, wherein the stored instructions include instructions for;
Specification