| CPC G06F 9/451 (2018.02) [G06F 3/0485 (2013.01); G06F 9/541 (2013.01)] | 20 Claims |

|
1. A method comprising:
obtaining, by a unified interaction framework in an electronic device, at least one interaction event triggered by operation(s) of a user on the electronic device, wherein the unified interaction framework is comprised in a user interface (UI) framework layer and interacts between a widget and an operation system (OS) layer;
determining, by the unified interaction framework in the electronic device, an interaction behavior corresponding to the at least one interaction event, wherein the unified interaction framework comprises a correspondence between interaction behaviors and interaction operations of different interaction devices, wherein different interaction operations of the different interaction devices correspond to a same interaction behavior in the correspondence, and wherein the interaction behavior corresponding to the at least one interaction event indicates a task executable by the electronic device;
receiving, by the unified interaction framework in the electronic device, registration information from the widget, wherein the registration information indicates a correspondence between the interaction behavior corresponding to the at least one interaction event and the widget; and
invoking, by the unified interaction framework in the electronic device, and based on the determined interaction behavior matching the interaction behavior from the registration information of the widget, the widget to execute the interaction behavior.
|