User interface rendering method, user interface rendering device and server

By splitting the user interface content into components and rendering it on the server, the problem of low user interface update efficiency in the prior art is solved, efficient user interface update and resource conservation are achieved, and user experience is improved.

CN112230923BActive Publication Date: 2024-11-19GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011225859.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-05
Publication Date
2024-11-19
Estimated Expiration
2040-11-05

AI Technical Summary

Technical Problem

In the prior art, terminal devices such as mobile phones and tablets have low update efficiency when rendering the user interface, and cannot update the user interface content without updating the application version, resulting in poor user experience, high development costs and high resource consumption. .

Method used

By splitting the user interface content into user interface components, the server receives the identifier to be rendered in the rendering instruction for rendering, obtains the rendering result and sends it to the terminal to update the user interface components and avoids re-downloading and installing new versions of applications in the terminal.

Benefits of technology

It improves the efficiency of the user interface, reduces the cost of terminal application development and resource consumption, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112230923B_ABST
    Figure CN112230923B_ABST
Patent Text Reader

Abstract

The present application provides a user interface rendering method, which is applied to a server, and the user interface rendering method includes: if a rendering instruction sent by a designated terminal is received, then according to the to-be-rendered identifier carried in the rendering instruction, a rendering result corresponding to each to-be-rendered identifier is obtained, wherein the to-be-rendered identifier is an identifier of a user interface component to be rendered; and the rendering result is sent to the designated terminal to instruct the designated terminal to obtain a user interface according to the rendering result. Through the above method, the updating efficiency of the user interface can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of graphics rendering technology, and in particular, relates to a user interface rendering method, a user interface rendering device, a server, and a computer-readable storage medium. Background Art

[0002] At present, when applications in terminal devices such as mobile phones and tablets render the user interface for display, they are often rendered according to a fixed mode of the installed application version. When an update is required, the user must re-download and install the new version of the application before obtaining the updated user interface, resulting in low update efficiency and poor update effect of the user interface content, which greatly affects the user experience. Summary of the invention

[0003] The embodiments of the present application provide a user interface rendering method, a user interface rendering device, a server, and a computer-readable storage medium, which can improve the updating efficiency of the user interface.

[0004] In a first aspect, an embodiment of the present application provides a user interface rendering method, which is applied to a server, and the user interface rendering method includes:

[0005] If a rendering instruction sent by a designated terminal is received, a rendering result corresponding to each to-be-rendered identifier is obtained according to the to-be-rendered identifier carried in the rendering instruction, wherein the to-be-rendered identifier is an identifier of a user interface component to be rendered;

[0006] The rendering result is sent to the designated terminal to instruct the designated terminal to obtain a user interface according to the rendering result.

[0007] In a second aspect, an embodiment of the present application provides a user interface rendering device, which is applied to a server, and the user interface rendering device includes:

[0008] A processing module, configured to obtain, if a rendering instruction is received from a designated terminal, a rendering result corresponding to each to-be-rendered identifier according to the to-be-rendered identifier carried in the rendering instruction, wherein the to-be-rendered identifier is an identifier of a user interface component to be rendered;

[0009] The sending module is used to send the rendering result to the designated terminal to instruct the designated terminal to obtain a user interface according to the rendering result.

[0010] In a third aspect, an embodiment of the present application provides a server, comprising a memory, a processor, a display, and a computer program stored in the memory and executable on the processor, wherein the processor implements the user interface rendering method as described above in the first aspect when executing the computer program.

[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the user interface rendering method as described above in the first aspect is implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a server, the server executes the user interface rendering method described above in the first aspect.

[0013] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application can be applied to a server, so that after receiving a rendering instruction sent by a designated terminal through the server, the server can obtain a rendering result corresponding to each identifier to be rendered according to the identifier to be rendered carried in the rendering instruction, wherein the identifier to be rendered is an identifier of a user interface component to be rendered; and the rendering result is sent to the designated terminal to instruct the designated terminal to obtain a user interface according to the rendering result. At this time, the content to be rendered of the user interface of a designated terminal such as a mobile phone can be split into the form of at least one user interface component, and the identifier to be rendered can be used to instruct the server to render the user interface component without rendering the content of the user interface component on the designated terminal, and after the server obtains the rendering result, it is sent to the designated terminal, so as to update the user interface component on the server, thereby realizing the update of the user interface displayed on the designated terminal, without the user having to re-download and install a new version of the application to update the user interface content, thereby improving the update efficiency of the user interface and greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 It is a flowchart of a user interface rendering method provided by an embodiment of the present application;

[0016] Figure 2 is an exemplary schematic diagram of the change of the learning rate with the change of the number of iterations provided by an embodiment of the present application;

[0017] Figure 3 This is a flowchart of step S101 provided in one embodiment of the present application;

[0018] Figure 4 This is a schematic diagram of interaction between a designated terminal and a server provided in an embodiment of the present application;

[0019] Figure 5 This is an exemplary schematic diagram of searching for a target cache file from a preset cache space of the server provided in an embodiment of the present application;

[0020] Figure 6 It is a structural schematic diagram of a user interface rendering device provided by an embodiment of the present application;

[0021] Figure 7 It is a schematic diagram of the structure of a server provided in one embodiment of the present application. DETAILED DESCRIPTION

[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0023] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0024] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0025] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0026] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0027] Currently, when applications in terminal devices such as mobile phones and tablets render user interfaces for display, they are often rendered according to a fixed pattern of the installed application version. When an update is required, the user must re-download and install the new application version of the software to obtain the updated user interface.

[0028] In addition, in the prior art, there are many types of operating systems in terminal devices, and different terminal devices have different hardware parameters such as screens. Therefore, for the same user interface rendering requirements, different types of codes need to be developed for different operating system platforms and different types of terminal hardware for users to install, resulting in a complicated and cumbersome development process and low development efficiency.

[0029] For example, in the prior art, the user interface can be written in the Reative programming language, which is translated into the application code of each specified terminal through the JavaScript bridge layer on the terminal device, so as to achieve user interface rendering on different operating system platforms. Alternatively, the user interface can be written in the Dart programming language, and the user interface can be rendered and displayed through the independent Flutter rendering engine in the application.

[0030] However, the extensibility of using the Reative programming language to write user interfaces is poor. Each time a new user interface part is added, the corresponding code translation operation needs to be completed for different operating system platforms, and the user interface content cannot be updated without updating the application version. Using the Dart programming language to write the user interface will result in a larger application installation package and the application space occupied after installation, and the user's traffic resources and terminal resources will be consumed more. In addition, the user interface content cannot be updated without updating the application version.

[0031] Through the embodiments of the present application, the content to be rendered of the user interface of a designated terminal such as a mobile phone can be split into the form of at least one user interface component, and the to-be-rendered identifier can be used to instruct the server to render the user interface component without rendering the content of the user interface component on the designated terminal, and after the server obtains the rendering result, it is sent to the designated terminal, so as to update the user interface component on the server, thereby realizing the update of the user interface displayed on the designated terminal, without the user having to update the user interface content by re-downloading and installing a new version of the application, thereby improving the update efficiency of the user interface. In addition, compared with the prior art, rendering the user interface component by the server also reduces the development cost of the application of designated terminals such as mobile phones, and reduces the resources occupied on the designated terminal.

[0032] Specifically, Figure 1 A flowchart of a user interface rendering method provided in an embodiment of the present application is shown, and the user interface rendering method can be applied to a server.

[0033] like Figure 1 As shown, the user interface rendering method may include:

[0034] Step S101, if a rendering instruction sent by a designated terminal is received, a rendering result corresponding to each to-be-rendered identifier is obtained according to the to-be-rendered identifier carried in the rendering instruction, wherein the to-be-rendered identifier is an identifier of a user interface component to be rendered.

[0035] In the embodiment of the present application, the type of the designated terminal may be a desktop computer, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA) and other terminal devices. The embodiment of the present application does not impose any restrictions on the specific type of the designated terminal.

[0036] The rendering instruction may carry the identifier to be rendered, wherein the identifier to be rendered is an identifier of the user interface component to be rendered. At this time, in the user interface to be rendered of the designated terminal, at least part of the content may be pre-divided into at least one user interface component, rather than being rendered as the entire user interface. Each user interface component can be uniquely identified by the corresponding identifier.

[0037] like Figure 2Shown is an exemplary schematic diagram of user interface components in the user interface.

[0038] It can be seen that each user interface component in the user interface can correspond to the content of a partial area on the user interface respectively.

[0039] By splitting the content to be rendered of the user interface into at least one user interface component, not only can the parallel rendering of each user interface component be achieved to improve rendering efficiency, but it can also facilitate subsequent updating of the user interface by updating the user interface components.

[0040] After receiving the rendering instruction, the server may determine the user interface component to be rendered according to the to-be-rendered identifier, thereby obtaining the rendering result required by the designated terminal.

[0041] At this time, the server can receive rendering instructions from more than one designated terminal, and can realize cross-terminal and cross-platform user interface rendering for designated terminals of different manufacturers, different operating system platforms and different operating system versions. Compared with the prior art, the rendering of user interface components by the server does not require the content of the same user interface component to be written in different operating system languages, thereby reducing the development cost of applications for designated terminals such as mobile phones, and the rendering of the user interface components does not need to be run on the designated terminal, so there is no need to add a user interface rendering engine in the application, reducing the resources occupied on the designated terminal.

[0042] In some embodiments, the rendering result is in a binary image format.

[0043] In an embodiment of the present application, the rendering result is sent to the designated terminal in the form of a binary image, so that the rendering result has better versatility, is not restricted by the operating system type, can be directly received by applications on various designated terminals and used to generate content to be displayed.

[0044] In some embodiments, the rendering instruction also carries screen resolution information and / or device model information of the specified terminal;

[0045] If a rendering instruction sent by a designated terminal is received, obtaining a rendering result corresponding to each to-be-rendered identifier according to the to-be-rendered identifier carried in the rendering instruction includes:

[0046] Step S301, if a rendering instruction sent by a designated terminal is received, then for each to-be-rendered identifier, an adaptation parameter of the user interface component relative to the designated terminal is determined according to the screen resolution information and / or device model information;

[0047] Step S302: Obtain a rendering result corresponding to the to-be-rendered identifier according to the adaptation parameter and the to-be-rendered identifier.

[0048] In an embodiment of the present application, the screen resolution information can be used to indicate the resolution of the designated terminal, and the device model information can include at least one of the operating system version number, device brand number, designated hardware model in the device, and the like of the designated terminal. In some examples, the adaptation parameters can include image size adjustment parameters (such as image zoom multiples, size cropping parameters, etc.). At this time, the initial rendering result of the server for a certain mark to be rendered is a picture of a preset size, and in order to better adapt to the display size requirements of different designated terminals, the image size adjustment parameters can be determined according to the screen resolution information and / or device model information to adjust the size of the picture of the preset size. In some examples, the adaptation parameters can also include color adjustment parameters and / or file format adjustment parameters, etc.

[0049] By determining the adaptation parameters of the user interface component relative to the designated terminal based on the screen resolution information and / or device model information, a rendering result that meets the requirements of different designated terminals can be obtained, making the rendering result more adaptable to the designated terminal.

[0050] Step S102: sending the rendering result to the designated terminal to instruct the designated terminal to obtain a user interface according to the rendering result.

[0051] In an embodiment of the present application, after receiving the rendering result, the designated terminal can generate content to be displayed according to the rendering result and display it on the display screen of the designated terminal. The process of generating and displaying the content to be displayed according to the rendering result can be performed according to the settings of different operating systems.

[0052] Exemplarily, in one example, the operating system in the designated terminal is an Android operating system, and the rendering result can be a binary image. After receiving the rendering result, the designated terminal can send the rendering result to a central processing unit (CPU). After receiving the rendering result, the CPU can process the rendering result into a multi-dimensional image, and then call a graphics processing unit (GPU) through an OpenGL ES interface. The GPU can rasterize the multi-dimensional image, and then display the content to be displayed on the display screen according to the vertical synchronization signal of the hardware clock. Of course, according to different operating systems, the designated terminal can have multiple processes for displaying according to the rendering result, which are not limited here.

[0053] like Figure 4 The figure shows an interaction diagram between the designated terminal and the server.

[0054] The server may receive rendering instructions from different types of designated terminals and feed back rendering results respectively.

[0055] The embodiment of the present application can be applied to a server, so that after receiving a rendering instruction sent by a designated terminal through the server, the server obtains the rendering result corresponding to each identifier to be rendered according to the identifier to be rendered carried in the rendering instruction, wherein the identifier to be rendered is the identifier of the user interface component to be rendered; and sends the rendering result to the designated terminal to instruct the designated terminal to obtain the user interface according to the rendering result. At this time, the content to be rendered of the user interface of a designated terminal such as a mobile phone can be split into the form of at least one user interface component, and the identifier to be rendered can be used to instruct the server to render the user interface component without rendering the content of the user interface component on the designated terminal, and after the server obtains the rendering result, it is sent to the designated terminal, so as to update the user interface component on the server, thereby realizing the update of the user interface displayed on the designated terminal, without the user having to update the user interface content by re-downloading and installing a new version of the application, thereby improving the updating efficiency of the user interface and greatly improving the user experience.

[0056] In some embodiments, if a rendering instruction sent by a designated terminal is received, obtaining a rendering result corresponding to each to-be-rendered identifier according to the to-be-rendered identifier carried in the rendering instruction includes:

[0057] If a rendering instruction sent by a designated terminal is received, for each of the identifiers to be rendered, a target cache file is searched in a preset cache space of the server, wherein the target cache file is a cache file whose preset identifier is consistent with the identifier to be rendered;

[0058] If the target cache file is found in the preset cache space of the server, the found target cache file is used as the rendering result of the to-be-rendered mark;

[0059] If the target cache file is not found in the preset cache space of the server, the user interface is rendered according to the identifier to be rendered to obtain a rendering result corresponding to the identifier to be rendered.

[0060] In an embodiment of the present application, historical rendering results within a specified time period can be cached in the preset cache space of the server. If the historical rendering results of a certain user interface component have not expired in the preset cache space, and a specified terminal requests to render the user interface component, the specified terminal can directly obtain the historical rendering results of the user interface component from the preset cache space for reuse, without having to re-render through the user interface rendering engine in the server, thereby saving server resources and improving the efficiency of the specified terminal in obtaining rendering results.

[0061] In some embodiments, if the target cache file is not found in the preset cache space of the server, the user interface rendering is performed according to the to-be-rendered identifier, and after obtaining the rendering result corresponding to the to-be-rendered identifier, the method further includes:

[0062] The rendering result corresponding to the to-be-rendered identifier is stored in the preset cache space.

[0063] In the embodiment of the present application, if the target cache file is not found in the preset cache space of the server, the user interface is rendered according to the identifier to be rendered, and the rendering result corresponding to the identifier to be rendered is obtained, and the rendering result corresponding to the identifier to be rendered can be stored in the preset cache space. This allows other designated terminals in a subsequent designated time period to obtain the rendering result corresponding to the identifier to be rendered from the preset cache space.

[0064] like Figure 5 As shown, it is an exemplary schematic diagram of searching for a target cache file from the preset cache space of the server. Among them, the rendering result corresponding to the identifier a to be rendered of the designated terminal C can be found from the preset cache space, that is, the target cache file a in the preset cache space, while the rendering result corresponding to the identifier b to be rendered of the designated terminal D is not found from the preset cache space. Therefore, the rendering result corresponding to the identifier b to be rendered can be obtained in the server through the user interface rendering engine, and the rendering result corresponding to the identifier b to be rendered is stored in the preset cache space.

[0065] In some embodiments, it also includes:

[0066] After creating a new user interface component, the script information of the user interface associated with the new user interface component is updated according to the newly added identifier, wherein the newly added identifier is the identifier of the new user interface component, and the script information is used to instruct the designated terminal to generate a rendering instruction.

[0067] In an embodiment of the present application, after a new user interface component is created, the script information of the user interface associated with the new user interface component can be updated according to the newly added identifier. At this time, when the designated terminal obtains the user interface associated with the new user interface component through the script information, it can obtain the newly added identifier of the new user interface component and send the rendering instruction carrying the newly added identifier to the server, thereby obtaining the new user interface component. The new user interface component can be a code module newly added in the server for rendering the user interface component, so that the server can render the new user interface component by running the code module.

[0068] It can be seen that through the embodiments of the present application, the update of the user interface content can be conveniently implemented on the server, and the designated terminal can quickly and conveniently obtain the updated user interface content as the server is updated, without the user having to update the user interface content by downloading a new version of the application, thereby greatly improving the update efficiency of the user interface and improving the user experience.

[0069] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0070] Corresponding to the user interface rendering method described in the above embodiment, Figure 6 The structural block diagram of a user interface rendering device provided in an embodiment of the present application is shown. The user interface rendering device 6 is applied to a server. For ease of description, only the parts related to the embodiment of the present application are shown.

[0071] Reference Figure 6 , the user interface rendering device 6 comprises:

[0072] The processing module 601 is used for obtaining a rendering result corresponding to each to-be-rendered identifier according to the to-be-rendered identifier carried in the rendering instruction if a rendering instruction sent by a designated terminal is received, wherein the to-be-rendered identifier is an identifier of a user interface component to be rendered;

[0073] The sending module 602 is used to send the rendering result to the designated terminal to instruct the designated terminal to obtain a user interface according to the rendering result.

[0074] Optionally, the rendering instruction also carries screen resolution information and / or device model information of the specified terminal;

[0075] The processing module 601 includes:

[0076] a determining unit, configured to determine, for each identifier to be rendered, an adaptation parameter of the user interface component relative to the designated terminal according to the screen resolution information and / or device model information if a rendering instruction sent by the designated terminal is received;

[0077] The processing unit is used to obtain a rendering result corresponding to the to-be-rendered identifier according to the adaptation parameter and the to-be-rendered identifier.

[0078] Optionally, the rendering result is in a binary image format.

[0079] Optionally, the processing module 601 includes:

[0080] a search unit, configured to search for a target cache file in a preset cache space of the server for each identifier to be rendered if a rendering instruction is received from a designated terminal, wherein the target cache file is a cache file whose preset identifier is consistent with the identifier to be rendered;

[0081] A second processing unit is configured to use the found target cache file as a rendering result of the to-be-rendered mark if the target cache file is found in a preset cache space of the server;

[0082] The third processing unit is configured to perform user interface rendering according to the identifier to be rendered, and obtain a rendering result corresponding to the identifier to be rendered, if the target cache file is not found in the preset cache space of the server.

[0083] Optionally, the user interface rendering device 6 further includes:

[0084] The storage module is used to store the rendering result corresponding to the to-be-rendered mark in the preset cache space.

[0085] Optionally, the user interface rendering device 6 further includes:

[0086] An update module is used to update the script information of the user interface associated with the newly created user interface component according to a newly added identifier after the newly created user interface component is created, wherein the newly added identifier is the identifier of the newly created user interface component, and the script information is used to instruct the designated terminal to generate rendering instructions.

[0087] The embodiment of the present application can be applied to a server, so that after receiving a rendering instruction sent by a designated terminal through the server, the server obtains the rendering result corresponding to each identifier to be rendered according to the identifier to be rendered carried in the rendering instruction, wherein the identifier to be rendered is the identifier of the user interface component to be rendered; and sends the rendering result to the designated terminal to instruct the designated terminal to obtain the user interface according to the rendering result. At this time, the content to be rendered of the user interface of a designated terminal such as a mobile phone can be split into the form of at least one user interface component, and the identifier to be rendered can be used to instruct the server to render the user interface component without rendering the content of the user interface component on the designated terminal, and after the server obtains the rendering result, it is sent to the designated terminal, so as to update the user interface component on the server, thereby realizing the update of the user interface displayed on the designated terminal, without the user having to update the user interface content by re-downloading and installing a new version of the application, thereby improving the updating efficiency of the user interface and greatly improving the user experience.

[0088] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0089] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0090] Figure 7 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. Figure 7 As shown, the server 7 of this embodiment includes: at least one processor 70 ( Figure 7Only one is shown), a memory 71, and a computer program 72 stored in the memory 71 and executable on at least one processor 70. When the processor 70 executes the computer program 72, the steps of any of the above-mentioned user interface rendering method embodiments are implemented.

[0091] The server may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Figure 7 This is only an example of the server 7 and does not constitute a limitation on the server 7. The server 7 may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input devices, output devices, network access devices, etc. Among them, the above-mentioned input devices may include a keyboard, a touch panel, a fingerprint collection sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, a camera, etc., and the output device may include a display, a speaker, etc.

[0092] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0093] In some embodiments, the memory 71 may be an internal storage unit of the server 7, such as a hard disk or memory of the server 7. In other embodiments, the memory 71 may also be an external storage device of the server 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server 7. Further, the memory 71 may include both an internal storage unit of the server 7 and an external storage device. The memory 71 is used to store an operating system, an application program, a boot loader, data, and other programs, such as the program code of the computer program. The memory 71 may also be used to temporarily store data that has been output or is to be output.

[0094] In addition, although not shown, the server 7 may also include a network connection module, such as a Bluetooth module, a Wi-Fi module, a cellular network module, etc., which will not be described in detail here.

[0095] In the embodiment of the present application, when the processor 70 executes the computer program 72 to implement the steps in any of the above-mentioned user interface rendering method embodiments, the embodiment of the present application can be applied to the server, so that after receiving the rendering instruction sent by the designated terminal through the server, according to the to-be-rendered identifier carried in the rendering instruction, the rendering result corresponding to each to-be-rendered identifier is obtained, wherein the to-be-rendered identifier is the identifier of the user interface component to be rendered; the rendering result is sent to the designated terminal to instruct the designated terminal to obtain the user interface according to the rendering result. At this time, the to-be-rendered content of the user interface of the designated terminal such as a mobile phone can be split into the form of at least one user interface component, and the to-be-rendered identifier can be used to instruct the server to render the user interface component without rendering the content of the user interface component on the designated terminal, and after the server obtains the rendering result, it is sent to the designated terminal, so as to update the user interface component on the server, thereby realizing the update of the user interface displayed on the designated terminal, without the user having to re-download and install the new version of the application to update the user interface content, thereby improving the update efficiency of the user interface and greatly improving the user experience.

[0096] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0097] An embodiment of the present application provides a computer program product. When the computer program product runs on a server, the server can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0098] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera device / server, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0099] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0100] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0101] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0102] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0103] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A user interface rendering method, characterized in that: Applied to a server, the user interface rendering method includes: If a rendering instruction sent by a designated terminal is received, a rendering result corresponding to each identifier to be rendered is obtained according to the identifier to be rendered carried in the rendering instruction and the screen resolution information and / or device model information of the designated terminal, wherein the identifier to be rendered is an identifier of a user interface component to be rendered; Sending the rendering result to the designated terminal to instruct the designated terminal to obtain a user interface according to the rendering result; Wherein, the method further comprises: After creating a new user interface component, updating the script information of the user interface associated with the newly created user interface component according to the newly added identifier, wherein the newly added identifier is the identifier of the newly created user interface component, and the script information is used to instruct the designated terminal to generate a rendering instruction; If a rendering instruction sent by a designated terminal is received, obtaining a rendering result corresponding to each to-be-rendered identifier according to the to-be-rendered identifier carried in the rendering instruction includes: If a rendering instruction sent by a designated terminal is received, then for each identifier to be rendered, an adaptation parameter of the user interface component relative to the designated terminal is determined according to the screen resolution information and / or the device model information, wherein the screen resolution information is used to indicate the resolution of the designated terminal, the device model information includes at least one of the operating system version number of the designated terminal, the device brand number, and information on a designated hardware model in the device, and the adaptation parameter includes an image size adjustment parameter, a color adjustment parameter, and / or a file format adjustment parameter; According to the adaptation parameter and the to-be-rendered identifier, a rendering result corresponding to the to-be-rendered identifier is obtained; the rendering result is in a binary image format.

2. The user interface rendering method according to claim 1, characterized in that: If a rendering instruction sent by a designated terminal is received, obtaining a rendering result corresponding to each to-be-rendered identifier according to the to-be-rendered identifier carried in the rendering instruction includes: If a rendering instruction sent by a designated terminal is received, for each of the identifiers to be rendered, a target cache file is searched in a preset cache space of the server, wherein the target cache file is a cache file whose preset identifier is consistent with the identifier to be rendered; If the target cache file is found in the preset cache space of the server, the found target cache file is used as the rendering result of the to-be-rendered mark; If the target cache file is not found in the preset cache space of the server, the user interface is rendered according to the identifier to be rendered to obtain a rendering result corresponding to the identifier to be rendered.

3. The user interface rendering method according to claim 2, characterized in that: If the target cache file is not found in the preset cache space of the server, the user interface rendering is performed according to the to-be-rendered identifier, and after the rendering result corresponding to the to-be-rendered identifier is obtained, the method further includes: The rendering result corresponding to the to-be-rendered identifier is stored in the preset cache space.

4. A user interface rendering device, characterized in that: Applied to a server, the user interface rendering device comprises: A processing module, configured to obtain, upon receiving a rendering instruction sent by a designated terminal, a rendering result corresponding to each identifier to be rendered according to the identifier to be rendered carried in the rendering instruction and the screen resolution information and / or device model information of the designated terminal, wherein the identifier to be rendered is an identifier of a user interface component to be rendered; A sending module, used for sending the rendering result to the designated terminal to instruct the designated terminal to obtain a user interface according to the rendering result; An updating module, configured to update the script information of the user interface associated with the newly created user interface component according to the newly added identifier after the newly created user interface component is created, wherein the newly added identifier is the identifier of the newly created user interface component, and the script information is used to instruct the designated terminal to generate a rendering instruction; The rendering instruction also carries the screen resolution information and / or device model information of the specified terminal; The processing module comprises: a determining unit, configured to determine, for each identifier to be rendered, an adaptation parameter of the user interface component relative to the designated terminal according to the screen resolution information and / or device model information if a rendering instruction sent by the designated terminal is received, wherein the screen resolution information is used to indicate the resolution of the designated terminal, the device model information includes at least one of an operating system version number of the designated terminal, a device brand number, and information on a designated hardware model in the device, and the adaptation parameter includes an image size adjustment parameter, a color adjustment parameter, and / or a file format adjustment parameter; A processing unit is used to obtain a rendering result corresponding to the to-be-rendered identifier according to the adaptation parameter and the to-be-rendered identifier; the rendering result is in a binary image format.

5. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the user interface rendering method according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the user interface rendering method according to any one of claims 1 to 3 is implemented.