# US 2024/0403004 A1 · Data processing method and apparatus, device, and readable storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0403004 A1
- Document ID: US20240403004A1
- Status: Published application
- Kind: A1
- Application number: 18/795,027
- Filed: 2024-08-05
- Published: 2024-12-05
- Earliest claimed: 2022-07-27
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Weiwei HUANG; Sicheng HUANG; Guangdong SUN; Shucheng ZHENG; Tingrong ZHONG; Ningyuan HUANG; Shun LI; Zhuomin LIU; Bin Zhu; Bokun Li; Canhui HUANG; Kemian FENG; Chaozhong YU; Sixin GU; Wei ZHUO
- Web page: https://patentgrep.com/patent/US20240403004A1

## CPC

- G06F 8/34: Graphical or visual programming
- G06F 9/54: Interprogram communication
- G06F 8/38: for implementing user interfaces
- G06F 9/4484: {Executing subprograms}
- G06F 9/451: Execution arrangements for user interfaces
- G06F 9/45529: {Embedded in an application, e.g. JavaScript in a Web browser}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 8/36: Software reuse
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

This application discloses a data processing method performed by a computer device. The method includes: in response to an interactive operation for a sub-program application, generating an interface rendering instruction for rendering an interactive interface; transmitting the interface rendering instruction to an execution environment associated with a mobile application development framework through a first communication interface, the first communication interface being a communication interface between a first programming language corresponding to the interface rendering instruction and a second programming language corresponding to a native application hosting the sub-program application; invoking, in the execution environment, a second communication interface for rendering the interactive interface corresponding to the interactive operation based on the mobile application development framework, the second communication interface being a communication interface between the second programming language and a third programming language corresponding to the mobile application development framework; and outputting the interactive interface.

## Claims

### Claim 1

A data processing method performed by a computer device, the method comprising:
in response to an interactive operation for a sub-program application, generating an interface rendering instruction for rendering an interactive interface corresponding to the interactive operation;
transmitting the interface rendering instruction to an execution environment of the sub-program application associated with a mobile application development framework through a first communication interface, the first communication interface being a communication interface between a first programming language corresponding to the interface rendering instruction and a second programming language corresponding to a native application hosting the sub-program application;
invoking, in the execution environment, a second communication interface based on the interface rendering instruction for rendering the interactive interface corresponding to the interactive operation based on the mobile application development framework, the second communication interface being a communication interface between the second programming language and a third programming language corresponding to the mobile application development framework; and
outputting the interactive interface.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the generating an interface rendering instruction for rendering an interactive interface corresponding to the interactive operation comprises:
obtaining a page rendering template file of the sub-program application in response to the interactive operation for the sub-program application;
parsing the page rendering template file to obtain a first parsing result, and generating a style shadow structure tree corresponding to the interactive operation based on the first parsing result; and
generating a rendering instruction comprising the style shadow structure tree, and determining the rendering instruction comprising the style shadow structure tree as the interface rendering instruction indicated by the interactive operation.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction; and
performing, in response to that creation of the page element structure tree is completed, the operation of invoking, in the execution environment, a second communication interface based on the interface rendering instruction.

### Claim 4 (depends on 3)

The method according to claim 3, wherein a total rendering thread of the sub-program application comprises a development logic subthread and an interface rendering subthread, and the operation of generating an interface rendering instruction indicated by the interactive operation and the operation of creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction are both performed in the development logic subthread; and the operation of invoking, in the execution environment, a second communication interface based on the interface rendering instruction for rendering the interactive interface corresponding to the interactive operation based on the mobile application development framework is performed in the interface rendering subthread.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the interface rendering instruction comprises a style shadow structure tree corresponding to the interactive operation, the style shadow structure tree being formed by N shadow nodes, each shadow node comprising element encapsulation information of one page element; and
the creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction comprises:
obtaining a style rule set, the style rule set comprising an element style rule corresponding to each page configuration element, the page configuration element being a configuration element configured to form an application interface of the sub-program application, the application interface comprising the interactive interface;
performing the following operations for each shadow node Si in the N shadow nodes, element encapsulation information comprised in the shadow node Si being element encapsulation information Ki, N and i being both positive integers:
determining, in the style rule set, an element style rule matching the element encapsulation information Ki, and determining the matching element style rule as a node element style corresponding to the shadow node Si; and
converting the node element style corresponding to the shadow node Si according to a style conversion rule, to obtain element description data corresponding to the shadow node Si; and
determining each shadow node as an element node when element description data respectively corresponding to the N shadow nodes is determined, and determining a structure tree formed by the N element nodes comprising the corresponding element description data as the page element structure tree corresponding to the interactive operation.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the obtaining a style rule set comprises:
obtaining a page style configuration table, the page style configuration table comprising attribute definition information of each page configuration element; and
invoking a style parser, parsing, based on the style parser, the attribute definition information comprised in the page style configuration table, to obtain a second parsing result, and generating the style rule set based on the second parsing result.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the outputting the interactive interface comprises:
rasterizing the interactive interface to obtain a rasterized interface; and
outputting the rasterized interface.

### Claim 8

A computer device, comprising a processor, a memory, and a network interface,
the processor being connected to the memory and the network interface, the memory being configured to store a computer program that, when executed by the processor, to cause the computer device to perform a data processing method including:
in response to an interactive operation for a sub-program application, generating an interface rendering instruction for rendering an interactive interface corresponding to the interactive operation;
transmitting the interface rendering instruction to an execution environment of the sub-program application associated with a mobile application development framework through a first communication interface, the first communication interface being a communication interface between a first programming language corresponding to the interface rendering instruction and a second programming language corresponding to a native application hosting the sub-program application;
invoking, in the execution environment, a second communication interface based on the interface rendering instruction for rendering the interactive interface corresponding to the interactive operation based on the mobile application development framework, the second communication interface being a communication interface between the second programming language and a third programming language corresponding to the mobile application development framework; and
outputting the interactive interface.

### Claim 9 (depends on 8)

The computer device according to claim 8, wherein the generating an interface rendering instruction for rendering an interactive interface corresponding to the interactive operation comprises:
obtaining a page rendering template file of the sub-program application in response to the interactive operation for the sub-program application;
parsing the page rendering template file to obtain a first parsing result, and generating a style shadow structure tree corresponding to the interactive operation based on the first parsing result; and
generating a rendering instruction comprising the style shadow structure tree, and determining the rendering instruction comprising the style shadow structure tree as the interface rendering instruction indicated by the interactive operation.

### Claim 10 (depends on 8)

The computer device according to claim 8, wherein the method further comprises:
creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction; and
performing, in response to that creation of the page element structure tree is completed, the operation of invoking, in the execution environment, a second communication interface based on the interface rendering instruction.

### Claim 11 (depends on 10)

The computer device according to claim 10, wherein a total rendering thread of the sub-program application comprises a development logic subthread and an interface rendering subthread, and the operation of generating an interface rendering instruction indicated by the interactive operation and the operation of creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction are both performed in the development logic subthread; and the operation of invoking, in the execution environment, a second communication interface based on the interface rendering instruction for rendering the interactive interface corresponding to the interactive operation based on the mobile application development framework is performed in the interface rendering subthread.

### Claim 12 (depends on 10)

The computer device according to claim 10, wherein the interface rendering instruction comprises a style shadow structure tree corresponding to the interactive operation, the style shadow structure tree being formed by N shadow nodes, each shadow node comprising element encapsulation information of one page element; and
the creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction comprises:
obtaining a style rule set, the style rule set comprising an element style rule corresponding to each page configuration element, the page configuration element being a configuration element configured to form an application interface of the sub-program application, the application interface comprising the interactive interface;
performing the following operations for each shadow node Si in the N shadow nodes, element encapsulation information comprised in the shadow node Si being element encapsulation information Ki, N and i being both positive integers:
determining, in the style rule set, an element style rule matching the element encapsulation information Ki, and determining the matching element style rule as a node element style corresponding to the shadow node Si; and
converting the node element style corresponding to the shadow node Si according to a style conversion rule, to obtain element description data corresponding to the shadow node Si; and
determining each shadow node as an element node when element description data respectively corresponding to the N shadow nodes is determined, and determining a structure tree formed by the N element nodes comprising the corresponding element description data as the page element structure tree corresponding to the interactive operation.

### Claim 13 (depends on 12)

The computer device according to claim 12, wherein the obtaining a style rule set comprises:
obtaining a page style configuration table, the page style configuration table comprising attribute definition information of each page configuration element; and
invoking a style parser, parsing, based on the style parser, the attribute definition information comprised in the page style configuration table, to obtain a second parsing result, and generating the style rule set based on the second parsing result.

### Claim 14 (depends on 8)

The computer device according to claim 8, wherein the outputting the interactive interface comprises:
rasterizing the interactive interface to obtain a rasterized interface; and
outputting the rasterized interface.

### Claim 15

A non-transitory computer-readable storage medium, having a computer program stored therein, the computer program, when executed by a processor of a computer device, causes the computer device to perform a data processing method including:
in response to an interactive operation for a sub-program application, generating an interface rendering instruction for rendering an interactive interface corresponding to the interactive operation;
transmitting the interface rendering instruction to an execution environment of the sub-program application associated with a mobile application development framework through a first communication interface, the first communication interface being a communication interface between a first programming language corresponding to the interface rendering instruction and a second programming language corresponding to a native application hosting the sub-program application;
invoking, in the execution environment, a second communication interface based on the interface rendering instruction for rendering the interactive interface corresponding to the interactive operation based on the mobile application development framework, the second communication interface being a communication interface between the second programming language and a third programming language corresponding to the mobile application development framework; and
outputting the interactive interface.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the generating an interface rendering instruction for rendering an interactive interface corresponding to the interactive operation comprises:
obtaining a page rendering template file of the sub-program application in response to the interactive operation for the sub-program application;
parsing the page rendering template file to obtain a first parsing result, and generating a style shadow structure tree corresponding to the interactive operation based on the first parsing result; and
generating a rendering instruction comprising the style shadow structure tree, and determining the rendering instruction comprising the style shadow structure tree as the interface rendering instruction indicated by the interactive operation.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the method further comprises:
creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction; and
performing, in response to that creation of the page element structure tree is completed, the operation of invoking, in the execution environment, a second communication interface based on the interface rendering instruction.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein a total rendering thread of the sub-program application comprises a development logic subthread and an interface rendering subthread, and the operation of generating an interface rendering instruction indicated by the interactive operation and the operation of creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction are both performed in the development logic subthread; and the operation of invoking, in the execution environment, a second communication interface based on the interface rendering instruction for rendering the interactive interface corresponding to the interactive operation based on the mobile application development framework is performed in the interface rendering subthread.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the interface rendering instruction comprises a style shadow structure tree corresponding to the interactive operation, the style shadow structure tree being formed by N shadow nodes, each shadow node comprising element encapsulation information of one page element; and
the creating, in the execution environment, a page element structure tree corresponding to the interactive operation based on the interface rendering instruction comprises:
obtaining a style rule set, the style rule set comprising an element style rule corresponding to each page configuration element, the page configuration element being a configuration element configured to form an application interface of the sub-program application, the application interface comprising the interactive interface;
performing the following operations for each shadow node Si in the N shadow nodes, element encapsulation information comprised in the shadow node Si being element encapsulation information Ki, N and i being both positive integers:
determining, in the style rule set, an element style rule matching the element encapsulation information Ki, and determining the matching element style rule as a node element style corresponding to the shadow node Si; and
converting the node element style corresponding to the shadow node Si according to a style conversion rule, to obtain element description data corresponding to the shadow node Si; and
determining each shadow node as an element node when element description data respectively corresponding to the N shadow nodes is determined, and determining a structure tree formed by the N element nodes comprising the corresponding element description data as the page element structure tree corresponding to the interactive operation.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the outputting the interactive interface comprises:
rasterizing the interactive interface to obtain a rasterized interface; and
outputting the rasterized interface.
