US 11,698,823 B2
Application interface implementation method in a host platform layer, device, and medium
Rui Dong, Beijing (CN); Wei Sun, Beijing (CN); Zhixing Lei, Beijing (CN); Jia Li, Beijing (CN); and Du Chen, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD., Beijing (CN)
Appl. No. 17/280,113
Filed by BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD., Beijing (CN)
PCT Filed Jul. 15, 2020, PCT No. PCT/CN2020/101984
§ 371(c)(1), (2) Date Mar. 25, 2021,
PCT Pub. No. WO2021/169150, PCT Pub. Date Sep. 2, 2021.
Claims priority of application No. 202010130237.7 (CN), filed on Feb. 28, 2020.
Prior Publication US 2022/0114036 A1, Apr. 14, 2022
Int. Cl. G06F 3/12 (2006.01); G06F 9/54 (2006.01); G06F 9/445 (2018.01)
CPC G06F 9/545 (2013.01) [G06F 9/44505 (2013.01)] 18 Claims
OG exemplary drawing
 
1. An application interface implementation method in a host platform layer, executed by the host platform layer where a mini program is installed, comprising:
acquiring description data of a terminal capability interface;
parsing the description data to acquire a communication mode of the terminal capability interface, wherein the communication mode of the terminal capability interface comprises at least one of: a name of the terminal capability interface; an incoming parameter, an outgoing parameter and array types thereof of the terminal capability interface; a communication bridge of a terminal capability or a communication function of the terminal capability; or a processor name of the terminal capability interface; and
configuring, according to the communication mode, one of a mapping relationship of a platform layer interface, or the mapping relationship and a processor of the platform layer interface to encapsulate and form the platform layer interface corresponding to the terminal capability interface;
wherein the platform layer interface is configured to process data of communication interactions in a process of the mini program calling the terminal capability interface through the host platform layer;
wherein the mapping relationship of the platform layer interface comprises at least one of: a mapping relationship between the name of the terminal capability interface and a name of the platform layer interface; a mapping relationship between the incoming parameter of the terminal capability interface and an incoming parameter of the platform layer interface; a mapping relationship between the outgoing parameter of the terminal capability interface and an outgoing parameter of the platform layer interface; a mapping relationship between a communication call function of the platform layer interface and the communication bridge of the terminal capability or the communication function of the terminal capability; or a mapping relationship between the processor name of the terminal capability interface and at least one processor name provided by the host platform layer; and
wherein configuring the mapping relationship according to the communication mode comprises: in response to a name of the host platform layer where the mini program calling the terminal capability interface is installed exists within names of host platform layers declared in the communication mode, establishing a mapping relationship between the name of the terminal capability interface and the name of the host platform layer, and determining an interface parameter of the terminal capability interface corresponding to the host platform layer.