US 12,436,781 B2
Method and apparatus for processing interaction event
Kaitong Wang, Shanghai (CN); Duoxian Li, Shanghai (CN); Shaofei Ma, Wuhan (CN); Zhang Gao, Shanghai (CN); Xiaoxiao Chen, Nanjing (CN); and Qichao Yang, Shanghai (CN)
Assigned to Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
Filed on Mar. 8, 2023, as Appl. No. 18/180,653.
Application 18/180,653 is a continuation of application No. PCT/CN2021/111733, filed on Aug. 10, 2021.
Claims priority of application No. 202010945205.2 (CN), filed on Sep. 9, 2020.
Prior Publication US 2023/0244507 A1, Aug. 3, 2023
Int. Cl. G06F 9/451 (2018.01); G06F 3/0485 (2022.01); G06F 9/54 (2006.01)
CPC G06F 9/451 (2018.02) [G06F 3/0485 (2013.01); G06F 9/541 (2013.01)] 20 Claims
OG exemplary drawing
 
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.