CN110865864B - Interface display method, device and equipment for quick application and storage medium - Google Patents

Interface display method, device and equipment for quick application and storage medium Download PDF

Info

Publication number
CN110865864B
CN110865864B CN201911130213.5A CN201911130213A CN110865864B CN 110865864 B CN110865864 B CN 110865864B CN 201911130213 A CN201911130213 A CN 201911130213A CN 110865864 B CN110865864 B CN 110865864B
Authority
CN
China
Prior art keywords
application
order component
display
user interface
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911130213.5A
Other languages
Chinese (zh)
Other versions
CN110865864A (en
Inventor
董永清
孙良木
潘温
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911130213.5A priority Critical patent/CN110865864B/en
Publication of CN110865864A publication Critical patent/CN110865864A/en
Application granted granted Critical
Publication of CN110865864B publication Critical patent/CN110865864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a method, a device, equipment and a storage medium for displaying an interface of a quick application, belonging to the field of application programs. The method comprises the following steps: acquiring equipment information of a terminal; automatically configuring the high-order component according to the equipment information to obtain the configured high-order component; acquiring application data of a fast application; calling the configured high-order component to display a user interface corresponding to the application data; the high-order component is adapted to at least two types of terminals, and the high-order component comprises configuration information of the at least two types of terminals. According to the method, the user interface of the quick application is displayed through the high-order component which is suitable for various terminals, so that a developer of the quick application does not need to write codes for each type of terminal to realize the display adaptation of the quick application on different types of terminals, the development time of the quick application is shortened, and the problem of large code development amount of the developer due to multiple equipment types is solved.

Description

Interface display method, device and equipment for quick application and storage medium
Technical Field
The disclosure relates to the field of application programs, and in particular relates to a method, a device, equipment and a storage medium for displaying an interface of a fast application.
Background
The fast application is a novel application form based on a hardware platform. The fast application uses front-end technology stack development, native rendering, and can have the dual advantages of both HTML5 (HyperText Markup Language ) pages and native applications. The fast application is run based on a fast application framework that is integrated into the computer operating system.
The fast application may be applied to different types of devices. The developer needs to edit the corresponding program code for each type of device so that the user interface of the quick application can be adapted to the current type of device.
Due to the large number of device types, in order to adapt the fast application to different types of devices, the development amount of codes of developers tends to be large.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for displaying an interface of a quick application.
The technical scheme is as follows:
according to an aspect of the embodiments of the present disclosure, there is provided an interface display method of a quick application, applied to a terminal, in which at least one quick application is installed and run, the quick application being an application running based on a quick application framework integrated in an operating system, the method including:
acquiring equipment information of a terminal;
automatically configuring the high-order component according to the equipment information to obtain the configured high-order component; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information;
acquiring application data of a fast application;
and calling the configured high-order component to display a user interface corresponding to the application data.
In some embodiments, the automatic configuration of the high-order component according to the device information, to obtain the configured high-order component, includes:
and writing the equipment information into the program codes of the high-order components in an assignment mode to obtain the configured high-order components.
In some embodiments, the configuration information includes a display template and a display style;
invoking the configured high-order component to display a user interface corresponding to the application data, wherein the method comprises the following steps:
inputting the application data into the configured high-order component, and generating a user interface conforming to the target display template and the target display style through the configured high-order component; the target display template is a display template matched with the equipment information, and the target display pattern is a display pattern matched with the equipment information;
and displaying a user interface conforming to the target display template and the target display style.
In some embodiments, generating, by the configured higher-level component, a user interface conforming to the target display template and the target display style includes:
generating an unrendered user interface through the configured high-order component;
rendering the unrendered user interface in a native rendering mode through the configured high-order component, and generating the user interface conforming to the target display template and the target display style.
In some embodiments, the device information includes at least one of a screen size, a device type, and a screen pixel ratio of the terminal.
In some embodiments, obtaining device information for a terminal includes:
and calling a hook function to acquire equipment information from an operating system of the terminal.
In some embodiments, obtaining application data for a fast application includes:
and calling an API of a native application of the fast application through an application programming interface API of the fast application, and acquiring application data through the API of the native application.
According to another aspect of the embodiments of the present disclosure, there is provided an interface display apparatus of a quick application installed and running therein at least one quick application, the quick application being an application running based on a quick application framework integrated in an operating system, the apparatus including:
the acquisition module is used for acquiring equipment information of the terminal;
the configuration module is used for automatically configuring the high-order component according to the equipment information to obtain the configured high-order component; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information;
the acquisition module is used for acquiring application data of the quick application;
and the display module is used for calling the configured high-order component to display a user interface corresponding to the application data.
In some embodiments, the configuration module is configured to write the device information into the program code of the higher-order component by means of assignment, so as to obtain the configured higher-order component.
In some embodiments, the configuration information includes a display template and a display style;
a display module, comprising:
the generation sub-module is used for inputting the application data into the configured high-order component, and generating a user interface conforming to the target display template and the target display style through the configured high-order component; the target display template is a display template matched with the equipment information, and the target display pattern is a display pattern matched with the equipment information;
and the display sub-module is used for displaying a user interface conforming to the target display template and the target display style.
In some embodiments, a generation sub-module for generating an unrendered user interface through the configured higher-level components; rendering the unrendered user interface in a native rendering mode through the configured high-order component, and generating the user interface conforming to the target display template and the target display style.
In some embodiments, the device information includes at least one of a screen size, a device type, and a screen pixel ratio of the terminal.
In some embodiments, the obtaining module is configured to call a hook function to obtain device information from an operating system of the terminal.
In some embodiments, the obtaining module is configured to call an API of a native application of the fast application through an application programming interface API of the fast application, and obtain the application data through the API of the native application.
According to another aspect of the embodiments of the present disclosure, there is provided a terminal including:
a processor;
a memory coupled to the processor;
wherein the processor is configured to load and execute executable instructions to implement the interface display method of the quick application as described in the first aspect and alternative embodiments thereof.
According to another aspect of the embodiments of the present disclosure, there is provided a computer storage medium having stored therein at least one instruction, at least one program, code set or instruction set loaded and executed by a processor to implement the interface display method of a quick application as described in the first aspect and its alternative embodiments.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
acquiring equipment information of a terminal; automatically configuring the high-order component according to the equipment information to obtain the configured high-order component; acquiring application data of a fast application; calling the configured high-order component to display a user interface corresponding to the application data; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information. According to the method, the user interface of the quick application is displayed through the high-order component which is suitable for various terminals, so that a developer of the quick application does not need to write codes for each type of terminal to realize the display adaptation of the quick application on different types of terminals, the development time of the quick application is shortened, and the problem of large code development amount of the developer due to multiple equipment types is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flowchart of an interface display method of a quick application shown in accordance with an exemplary embodiment;
FIG. 2 is a flowchart of an interface display method of a quick application shown according to another exemplary embodiment;
FIG. 3 is a block diagram of an interface display device of a quick application shown in accordance with an exemplary embodiment;
FIG. 4 is a block diagram of a quick application framework shown in accordance with an exemplary embodiment;
FIG. 5 is a flowchart illustrating the launching of a quick application according to an exemplary embodiment;
fig. 6 is a schematic structural view of a terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The quick application is a novel application form based on a mobile phone hardware platform, is used without installation, and has the original application experience (performance, system integration, interaction and the like). Meanwhile, the quick application realizes standardization and unification among mobile phone manufacturers at the aspects of development specification, capability access, developer service and the like at the beginning of birth, and greatly reduces the adaptation cost of the developer.
Compared with the traditional application, the quick application has the following characteristics:
instant: the point is used immediately, and the user does not need to wait;
everywhere: integrating depth of field with the use of the mobile phone, and ubiquitous portals (search, intelligent assistant, intelligent recommendation, application market, browser, … …);
effect: the development mode of the quasi-front end is high in efficiency.
Because of the specificity of the fast application, the fast application is expected to complete more tasks and realize more functions. At present, in the gradual perfection of the functions of the quick application, the embodiment of the disclosure provides an interface display method of the quick application, and the adaptation in various terminals is realized by utilizing a high-order component, so that the writing amount of program codes of developers of the quick application is reduced, and the processing capacity and the practicability of the quick application are improved.
Referring to fig. 1, a flowchart of a method for displaying an interface of a quick application according to an exemplary embodiment is shown, and the method is applied to a terminal for explanation, where the method includes:
and 101, acquiring equipment information of a terminal.
At least one fast application is installed and run in the terminal, the fast application being an application running based on a fast application framework integrated in an operating system. The fast application is also an application which is not needed to be downloaded and used immediately after searching, and has the characteristics of small volume, no installation and less occupied resources.
The method comprises the steps that an application package of the fast application is stored on a fast application platform, when a terminal receives a starting operation triggered by a user aiming at the fast application, the terminal obtains the application package of the fast application from the fast application platform, opens the fast application on the terminal, and displays a user interface of the fast application. After the terminal obtains the application package of the fast application, the terminal first obtains its own device information, which is information for configuring the higher-order components in the fast application.
Optionally, a hook function is provided in the terminal, and device information is obtained from an operating system of the terminal through the hook function, where the device information may include at least one of a screen size, a device type, and a screen pixel ratio of the terminal. Wherein the screen size indicates a screen size of the terminal; the device type indicates the type of the terminal, for example, the terminal may include a smart phone, a tablet computer, a smart watch, etc.; the screen pixel ratio refers to the aspect ratio of the pixel point.
The equipment information can also comprise equipment model, manufacturer, screen material and the like; the device information refers to device parameters of the terminal, and the kind and the number of parameters included in the device information are not limited in the present disclosure.
And 102, automatically configuring the high-order component according to the equipment information to obtain the configured high-order component.
Optionally, the terminal automatically configures the high-order component according to the equipment type to obtain the configured high-order component;
or the terminal automatically configures the high-order component according to the screen size to obtain the configured high-order component;
or the terminal automatically configures the high-order component according to the screen pixel comparison to obtain the configured high-order component;
or the terminal automatically configures the high-order component according to the equipment type and the screen size to obtain the configured high-order component;
or the terminal automatically configures the high-order component according to the equipment type and the screen pixel comparison to obtain the configured high-order component;
or the terminal automatically configures the high-order component according to the screen size and the screen pixel ratio to obtain the configured high-order component;
or the terminal automatically configures the high-order component according to the equipment type, the screen size and the screen pixel comparison, and the configured high-order component is obtained.
The high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information.
That is, the high-order component includes at least two kinds of configuration information matched with the device information, the terminal needs to determine the configuration information matched with the terminal according to the device information, so as to complete the matching of the terminal and the configuration information, and the configured high-order component can be applied in the express to call the configuration information to process the application data of the express, so as to generate a user interface matched with the terminal.
Optionally, the high-order component is automatically configured, and the device information can be written into the program code of the high-order component in a value assignment manner, so that the configured high-order component is obtained.
And step 103, acquiring application data of the fast application.
After the terminal automatically configures the high-order component, the terminal acquires application data of the quick application; optionally, the application data is used to display a user interface of the fast application on the terminal.
It should be noted that, the fast application corresponds to a native application, and optionally, application data of the fast application is provided by a background server of the native application, so that the terminal calls an API of the native application of the fast application through an application programming interface (Application Programming Interface, API) of the fast application, and obtains the application data through the API of the native application. Wherein, the API of the fast application is obtained by packaging the API of the native application.
Alternatively, the background server of the native application may include a third party server, which refers to a different background server than the provider of the background server of the fast application.
Step 104, calling the configured high-order component to display a user interface corresponding to the application data.
The terminal can display the user interface corresponding to the application data by calling the configured higher-order component, that is, after the application data of the quick application is input into the configured higher-order component, the higher-order component outputs the user interface adapted to the terminal.
In summary, in the interface display method for quick application provided in the embodiment, device information of a terminal is obtained; automatically configuring the high-order component according to the equipment information to obtain the configured high-order component; acquiring application data of a fast application; calling the configured high-order component to display a user interface corresponding to the application data; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information. According to the method, the user interface of the quick application is displayed through the high-order component which is suitable for various terminals, so that a developer of the quick application does not need to write codes for each type of terminal to realize the display adaptation of the quick application on different types of terminals, the development time of the quick application is shortened, and the problem of large code development amount of the developer due to multiple equipment types is solved.
Based on fig. 1, the above-mentioned high-level component generates a user interface based on the display template and the display style, and the configuration information in the high-level component includes the display template and the display style, so the process of generating the user interface by the high-level component after configuration in step 104 may include steps 1041 to 1042, as shown in fig. 2, and the schematic steps are as follows:
in step 1041, the configured high-level component is input with the application data, and a user interface conforming to the target display template and the target display style is generated by the configured high-level component.
The target display template is a display template matched with the device information, and the target display pattern is a display pattern matched with the device information.
TABLE 1
Device type Display template Display style
Tablet personal computer 1 1
Smart phone 2 2
Notebook computer 1 3
It should be noted that, in the configuration information, the display template and the display style are configured by a developer of the fast application, and different display templates and display styles are configured for different terminals, for example, a display template 1 and a display style 1 are configured for a tablet computer, a display template 2 and a display style 2 are configured for a smart phone, and a display template 1 and a display style 3 are configured for a notebook computer, as shown in table 1.
The developer of the quick application configures the display template and display style by writing template parameters and style parameters into the program code of the higher-order component. For example, for a display style of a fast application, configuring a display style of a smartphone, the program code may be:
@ mediaquery = phone; the type of the equipment is a mobile phone;
color=blue// Color is blue;
alternatively, the display style of the television is configured, and the program code may be:
@ mediaquery = tv; the device type is television (tv);
color = green// Color green;
the "phone", "Blue", "tv" and "Green" are written into the program code by the developer of the fast application, and the program code is provided by the higher-order components.
Optionally, in the process of generating the user interface conforming to the target display template and the target display style, the terminal firstly generates an unrendered user interface through the configured high-level component; and secondly, rendering the unrendered user interface in a native rendering mode through the configured high-order component, and generating the user interface conforming to the target display template and the target display style.
Step 1042, a user interface conforming to the target display template and the target display style is displayed on the terminal.
In summary, in the interface display method for quick application provided in the embodiment, device information of a terminal is obtained; automatically configuring the high-order component according to the equipment information to obtain the configured high-order component; acquiring application data of a fast application; calling the configured high-order component to display a user interface corresponding to the application data; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information. According to the method, the user interface of the quick application is displayed through the high-order component which is suitable for various terminals, so that a developer of the quick application does not need to write codes for each type of terminal to realize the display adaptation of the quick application on different types of terminals, the development time of the quick application is shortened, and the problem of large code development amount of the developer due to multiple equipment types is solved.
Furthermore, the items included in the configuration information in the high-order component can be customized by a developer of the fast application, for example, font color, background color and the like, so that the applicability of the high-order component is provided, and the use experience of the developer of the fast application on the high-order component is improved.
Referring to fig. 3, there is shown an interface display device for a quick application provided in an exemplary embodiment, in which part or all of the device, in which at least one quick application is installed and executed, may be implemented by software, hardware, or a combination of both, the quick application being an application executed based on a quick application framework integrated in an operating system, the device including:
an acquiring module 201, configured to acquire device information of a terminal;
a configuration module 202, configured to automatically configure the higher-order component according to the device information, to obtain a configured higher-order component; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information;
an acquisition module 201, configured to acquire application data of a fast application;
and the display module 203 is used for calling the configured high-order component to display a user interface corresponding to the application data.
In some embodiments, the configuration module 202 is configured to write the device information into the program code of the higher-order component by means of assignment, so as to obtain the configured higher-order component.
In some embodiments, the configuration information includes a display template and a display style;
a display module 203, comprising:
a generating sub-module 301, configured to input the application data into the configured high-level component, and generate, through the configured high-level component, a user interface that conforms to the target display template and the target display style; the target display template is a display template matched with the equipment information, and the target display pattern is a display pattern matched with the equipment information;
a display sub-module 302 for displaying a user interface conforming to the target display template and the target display style.
In some embodiments, a generation sub-module 301 for generating an unrendered user interface through the configured higher-level components; rendering the unrendered user interface in a native rendering mode through the configured high-order component, and generating the user interface conforming to the target display template and the target display style.
In some embodiments, the device information includes at least one of a screen size, a device type, and a screen pixel ratio of the terminal.
In some embodiments, the obtaining module 201 is configured to call a hook function to obtain device information from an operating system of the terminal.
In some embodiments, the obtaining module 201 is configured to call an API of a native application of the fast application through an application programming interface API of the fast application, and obtain application data through the API of the native application.
In summary, the interface display device for quick application provided in this embodiment obtains the device information of the terminal; automatically configuring the high-order component according to the equipment information to obtain the configured high-order component; acquiring application data of a fast application; calling the configured high-order component to display a user interface corresponding to the application data; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information. The device displays the user interface of the quick application through the high-order component which is adapted to various types of terminals, so that a developer of the quick application does not need to write codes for each type of terminal to realize the display adaptation of the quick application on different types of terminals, the development time of the quick application is shortened, and the problem of large code development amount of the developer due to multiple device types is solved.
Referring to fig. 4, a block diagram 400 of a quick application framework is shown, according to an exemplary embodiment of the present disclosure, comprising: scene portal 420, fast application engine 440, and Operating System (OS) infrastructure & hardware 460. The scene portal 420 includes at least one of a negative one-screen, a global search, a lock screen, a desktop, an application marketplace, a browser, and a two-dimensional code. The external presentation form of the scene portal 420 may be a page form and a card form.
The fast application engine 440 includes a front end framework 441, a generic scenario 442, a lightweight scenario 443, an embedded SDK (Software Development Kit ) 444, and a business access 445.
Front end framework 441 includes MVVM (Model-View-View-Model), V-DOM, routing, basic APIs (Application Programming Interface, application programming interfaces), business APIs, UI (User Interface) components, and the like;
the general scene 442 and the lightweight scene 443 include JavaScript engines, standard rendering engines, very fast rendering engines, end-cloud-core acceleration, security mechanisms, emerging scenes (AI (Artificial Intelligence, artificial intelligence), AR (Augmented Reality ), etc.), system integration (application management, rights management, etc.);
service access 445 includes Push, account/payment, etc.
OS infrastructure & hardware 460 includes: graphics libraries, native controls, system services and GPUs (Graphics Processing Unit, graphics processor)/NPUs (Neural-network Processing Unit, embedded Neural network processors), and the like.
Different from cross-platform frames of other application layers, the method can quickly apply an operating system rooted in a mobile phone, and can realize deep integration of the cloud from the chip operating system. By taking starting performance acceleration as an example, the optimization of the network link layer can greatly accelerate the fast application starting speed through the cooperative rendering of the cloud and the end. And meanwhile, the special capability of the hardware platform can be integrated, and the experience is further improved. For example, the computing power of the NPU can be integrated into a fast application engine by combining with an AI chip of a mobile phone, so that AI scenes (face recognition, image super-division and the like) can be executed with low delay and high performance at the end side, and meanwhile, the privacy of a user is effectively protected and the bandwidth is saved.
Referring to fig. 5, a flowchart illustrating the start-up of a quick application according to an exemplary embodiment of the present disclosure is shown, comprising:
1) When the quick application engine is started for the first time, the user clicks to trigger the downloading of the program package of the quick application, and meanwhile, the related work of initialization of the quick application engine is done. After the downloading and verification of the program package of the whole fast application are completed, the JavaScript file of the first page to be displayed is loaded and rendering is started. The downloading of the program package in the process is a bottleneck, and the downloading time of the package of about 200K under the normal network is at least 400 milliseconds, and the downloading time of the package of 2M is at least 2 seconds from the view of the actual measurement data in the earlier stage.
2) The page rendering comprises JavaScript loading, execution of page and JavaScript frame logic, and operation of layout, and finally drawing of the native UI control. When the logic in the page is executed, one or more network requests (from the page to a three-party server of the application) are generated, and the network requests to render the returned data-driven page again until the first screen content is completely displayed.
The network request, javaScript execution, typesetting and drawing are not simply serial relations, but are parallelized and interwoven together to influence the rendering performance of the whole page, and are strongly related to the logic of the page design, the network condition and the running state of the equipment.
Referring to fig. 6, a block diagram of an interface display device 500 for a quick application according to an exemplary embodiment is shown. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 6, the apparatus 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an i/O (Input/Output) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the apparatus 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on the apparatus 500, contact data, phonebook data, messages, pictures, videos, and the like. The Memory 504 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as SRAM (Static Random Access Memory ), EEPROM (Electrically Erasable Programmable Read-Only Memory, electrically erasable programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), PROM (Programmable Read-Only Memory ), ROM (Read-Only Memory), magnetic Memory, flash Memory, magnetic disk, or optical disk.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 500.
The multimedia component 508 includes a screen between the device 500 and the user that provides an output interface. In some embodiments, the screen may include an LCD (Liquid Crystal Display ) and TP (touch panel). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the apparatus 500 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a MIC (MICrophone) configured to receive external audio signals when the device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the apparatus 500. For example, the sensor assembly 514 may detect the on/off state of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the sensor assembly 514 may also detect a change in position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration/deceleration of the device 500, and a change in temperature of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a photosensor, such as a CMOS (Complementary Metal Oxide Semiconductor ) or CCD (Charge Coupled Device, charge coupled device) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as a Wi-Fi (Wireless Fidelity ) network, a 2G or 3G network, or a combination thereof. In one exemplary embodiment, the communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more ASICs (Application Specific Integrated Circuit, application specific integrated circuits), DSPs (Digital Signal Processing, digital signal processors), DSPDs (Digital Signal Processing device, digital signal processing devices), PLDs (programmable logic devices), FPGAs (Field Programable Gate Array, field programmable gate arrays), controllers, microcontrollers, microprocessors, or other electronic elements for executing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 504, including instructions executable by processor 520 of apparatus 500 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, RAM (Random Access Memory ), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, and the like.
A non-transitory computer readable storage medium, which when executed by a processor of the apparatus 500, enables the apparatus 500 to perform the interface display method of the quick application described above.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. An interface display method of a quick application, wherein the interface display method is applied to a terminal, at least one quick application is installed and operated in the terminal, and the quick application is an application operated based on a quick application framework integrated in an operating system, and the method comprises the following steps:
acquiring equipment information of the terminal;
automatically configuring the high-order component according to the equipment information to obtain a configured high-order component; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, the configuration information comprises a display template and a display style, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information;
acquiring application data of the fast application;
inputting the application data into the configured high-order component, and generating an unrendered user interface through the configured high-order component;
rendering the unrendered user interface in a native rendering mode through the configured high-order component to generate a user interface conforming to a target display template and a target display style; the target display template is a display template matched with the equipment information, and the target display pattern is a display pattern matched with the equipment information;
and displaying a user interface conforming to the target display template and the target display style.
2. The method according to claim 1, wherein the automatically configuring the higher-order component according to the device information, to obtain the configured higher-order component, includes:
and writing the equipment information into the program codes of the high-order components in an assignment mode to obtain the configured high-order components.
3. The method of claim 1 or 2, wherein the device information includes at least one of a screen size, a device type, and a screen pixel ratio of the terminal.
4. The method according to claim 1 or 2, wherein the acquiring device information of the terminal comprises:
and calling a hook function to acquire the equipment information from the operating system of the terminal.
5. The method according to claim 1 or 2, wherein the obtaining application data of the fast application comprises:
and calling an API of a native application of the fast application through an API of an application programming interface of the fast application, and acquiring the application data through the API of the native application.
6. An interface display device of a quick application, wherein at least one quick application is installed and executed in the device, the quick application being an application executed based on a quick application framework integrated in an operating system, the device comprising:
the acquisition module is used for acquiring equipment information of the terminal;
the configuration module is used for automatically configuring the high-order component according to the equipment information to obtain the configured high-order component; the high-order component is adapted to at least two types of terminals, the high-order component comprises configuration information of the at least two types of terminals, the configuration information comprises a display template and a display style, and the configured high-order component is used for generating a user interface adapted to the terminals based on the configuration information matched with the equipment information;
the acquisition module is used for acquiring application data of the quick application;
the display module is used for inputting the application data into the configured high-order component and generating an unrendered user interface through the configured high-order component;
the display module is used for rendering the unrendered user interface in a native rendering mode through the configured high-order component to generate a user interface conforming to a target display template and a target display style; the target display template is a display template matched with the equipment information, and the target display pattern is a display pattern matched with the equipment information;
the display module is used for displaying a user interface conforming to the target display template and the target display style.
7. A terminal, the terminal comprising:
a processor;
a memory coupled to the processor;
wherein the processor is configured to load and execute executable instructions to implement the interface display method of a quick application according to any of claims 1 to 5.
8. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by a processor to implement the interface display method of a quick application according to any one of claims 1 to 5.
CN201911130213.5A 2019-11-18 2019-11-18 Interface display method, device and equipment for quick application and storage medium Active CN110865864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911130213.5A CN110865864B (en) 2019-11-18 2019-11-18 Interface display method, device and equipment for quick application and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911130213.5A CN110865864B (en) 2019-11-18 2019-11-18 Interface display method, device and equipment for quick application and storage medium

Publications (2)

Publication Number Publication Date
CN110865864A CN110865864A (en) 2020-03-06
CN110865864B true CN110865864B (en) 2023-07-25

Family

ID=69655116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911130213.5A Active CN110865864B (en) 2019-11-18 2019-11-18 Interface display method, device and equipment for quick application and storage medium

Country Status (1)

Country Link
CN (1) CN110865864B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112967445A (en) * 2021-01-29 2021-06-15 上海蚁聚智能系统有限公司 Fast application system based on intelligent retail terminal
CN113448581A (en) * 2021-07-21 2021-09-28 上海益世界信息技术集团有限公司广州分公司 Software development kit interface adaptation method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375967A (en) * 2018-08-27 2019-02-22 北京达佳互联信息技术有限公司 Application Program Interface display methods and device, mobile terminal and storage medium
CN110035181A (en) * 2019-04-12 2019-07-19 维沃移动通信有限公司 It is a kind of to apply card theme setting method and terminal fastly

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10331321B2 (en) * 2015-06-07 2019-06-25 Apple Inc. Multiple device configuration application

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109375967A (en) * 2018-08-27 2019-02-22 北京达佳互联信息技术有限公司 Application Program Interface display methods and device, mobile terminal and storage medium
CN110035181A (en) * 2019-04-12 2019-07-19 维沃移动通信有限公司 It is a kind of to apply card theme setting method and terminal fastly

Also Published As

Publication number Publication date
CN110865864A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN110874217B (en) Interface display method and device for quick application and storage medium
CN111026396B (en) Page rendering method and device, electronic equipment and storage medium
CN110990075B (en) Method, device, equipment and storage medium for starting fast application
CN110990105B (en) Interface display method and device, electronic equipment and storage medium
CN111026491B (en) Interface display method, device, electronic equipment, server and storage medium
CN110865863B (en) Interface display method and device for fast application and storage medium
CN110971974B (en) Configuration parameter creating method, device, terminal and storage medium
CN111078325B (en) Application program running method and device, electronic equipment and storage medium
CN110851108A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN110851240B (en) Function calling method, device and storage medium
CN109117144B (en) Page processing method, device, terminal and storage medium
CN110968362B (en) Application running method, device and storage medium
CN110865864B (en) Interface display method, device and equipment for quick application and storage medium
CN111008057A (en) Page display method and device and storage medium
CN111008050B (en) Page task execution method, device, terminal and storage medium
US11507633B2 (en) Card data display method and apparatus, and storage medium
CN110908629A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN107679205B (en) Multimedia data playing method and device, computer equipment and storage medium
CN111104183B (en) Application program running method and device, electronic equipment and storage medium
CN112860625B (en) Data acquisition method, data storage method, device, equipment and storage medium
CN111104110B (en) Global style sharing method, global style sharing device and electronic device
CN110865760A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN110853643A (en) Method, device, equipment and storage medium for voice recognition in fast application
CN113778431A (en) Dynamic small program rendering method, device and equipment, readable storage medium and product
CN115357246A (en) Front-end animation development method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant