Application programming interface for gesture operations
First Claim
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 two or more concurrent touches detected on the touch-sensitive surface;
in response to determining that the user input corresponds to a gesture that is based on two or more concurrent 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 rotation transform function call that represents the detected gesture;
after transferring, via the API, the rotation transform 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;
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; and
in response to transferring the rotation transform function call and transferring the gesture change function call, performing a rotation transform to rotate the respective view of the respective program.
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, from platform code configured to provide a common framework for handling gesture events, to a program, a rotation transform function call in response to an input that corresponds to a gesture based on two or more concurrent touches. The method includes transferring, via the API, a gesture change function call from the platform code to the program in response to detecting a change in the gesture that corresponds to a change in one or more touches. The method includes, in response to transferring the rotation transform function call and the gesture change function call, performing a rotation transform to rotate a view of the program.
-
Citations
21 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 two or more concurrent touches detected on the touch-sensitive surface; in response to determining that the user input corresponds to a gesture that is based on two or more concurrent 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 rotation transform function call that represents the detected gesture; after transferring, via the API, the rotation transform 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; 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; and in response to transferring the rotation transform function call and transferring the gesture change function call, performing a rotation transform to rotate the respective view of the respective program. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. 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 that, 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 two or more concurrent touches detected on the touch-sensitive surface; in response to determining that the user input corresponds to a gesture that is based on two or more concurrent 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 rotation transform function call that represents the detected gesture; after transferring, via the API, the rotation transform 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; 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; and in response to transferring the rotation transform function call and transferring the gesture change function call, perform a rotation transform to rotate the respective view of the respective program. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. 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 a 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 two or more concurrent touches detected on the touch-sensitive surface; in response to determining that the user input corresponds to a gesture that is based on two or more concurrent 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 rotation transform function call that represents the detected gesture; after transferring, via the API, the rotation transform 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; 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; and in response to transferring the rotation transform function call and transferring the gesture change function call, performing a rotation transform to rotate the respective view of the respective program. - View Dependent Claims (16, 17, 18, 19, 20, 21)
- and (ii) instructions for execution by a processing unit of an electronic device with a display and a touch-sensitive surface, wherein the stored instructions include instructions for;
Specification