CN110865864A - Interface display method, device and equipment for fast application and storage medium - Google Patents

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

Info

Publication number
CN110865864A
CN110865864A CN201911130213.5A CN201911130213A CN110865864A CN 110865864 A CN110865864 A CN 110865864A CN 201911130213 A CN201911130213 A CN 201911130213A CN 110865864 A CN110865864 A CN 110865864A
Authority
CN
China
Prior art keywords
order component
application
user interface
display
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.)
Granted
Application number
CN201911130213.5A
Other languages
Chinese (zh)
Other versions
CN110865864B (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

Images

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, and belongs 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 a configured high-order component; acquiring application data of the 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 high-order components adapted to various terminals are used for displaying the user interface of the quick application, so that developers of the quick application do 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 developers due to the fact that the types of equipment are many is solved.

Description

Interface display method, device and equipment for fast application and storage medium
Technical Field
The present disclosure relates to the field of application programs, and in particular, to a method, an apparatus, a device, 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 is developed by using a front-end technology stack, is rendered as native, and can simultaneously have the dual advantages of an HTML5(HyperText Markup Language) page and native application. The fast application runs based on a fast application framework, which is integrated in the computer operating system.
Fast applications can be applied on 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 fast application can be adapted to the current type of device.
Due to the large number of types of devices, in order to adapt a fast application to different types of devices, the code development amount of developers is large.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device and equipment for displaying an interface of a quick application and a storage medium.
The technical scheme is as follows:
according to an aspect of the embodiments of the present disclosure, there is provided an interface display method for a fast application, which is applied to a terminal, where at least one fast application is installed and run in the terminal, and the fast application is an application that runs based on a fast 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 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, 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;
and calling the configured high-order component to display a user interface corresponding to the application data.
In some embodiments, automatically configuring the high-order component according to the device information to obtain the configured high-order component includes:
and writing the equipment information into a program code of the high-order component in an assignment mode to obtain the configured high-order component.
In some embodiments, the configuration information includes a display template and a display style;
calling the configured high-order component to display a user interface corresponding to the application data, wherein the user interface comprises the following steps:
inputting application data into the configured high-order component, and generating a user interface which accords with a target display template and a 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 style is a display style matched with the equipment information;
and displaying the user interface which accords with the target display template and the target display style.
In some embodiments, generating, by the configured high-level component, a user interface that conforms to the target display template and the target display style includes:
generating an unrendered user interface through the configured high-order component;
and rendering the unrendered user interface in a native rendering mode through the configured high-order component to generate the user interface which accords with 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 the device information of the terminal includes:
and calling a hook function to acquire the equipment information from the operating system of the terminal.
In some embodiments, obtaining application data for a fast application includes:
and calling the API of the native application of the fast application through the API of the application programming interface 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 for a fast application, in which at least one fast application is installed and executed, the fast application being an application that is executed based on a fast application framework integrated in an operating system, the apparatus including:
the acquisition module is used for acquiring the 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 fast application;
and the display module is used for calling the configured high-order component to display the 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 high-order component in a value assignment manner, so as to obtain the configured high-order component.
In some embodiments, the configuration information includes a display template and a display style;
a display module, comprising:
the generation submodule is used for inputting the application data into the configured high-order component and generating a user interface which accords with 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 style is a display style matched with the equipment information;
and the display submodule is used for displaying the user interface which accords with the target display template and the target display style.
In some embodiments, a generation submodule, configured to generate an unrendered user interface by the configured high-level component; and rendering the unrendered user interface in a native rendering mode through the configured high-order component to generate the user interface which accords with 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 the 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 the executable instructions to implement the interface display method of the fast application as described in the first aspect and the alternative embodiments thereof.
According to another aspect of the embodiments of the present disclosure, there is provided a computer storage medium having at least one instruction, at least one program, code set, or instruction set stored therein, which is loaded and executed by a processor to implement the interface display method of the fast application according to the first aspect and the optional embodiments thereof.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
acquiring equipment information of a terminal; automatically configuring the high-order component according to the equipment information to obtain a configured high-order component; acquiring application data of the 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 high-order components adapted to various terminals are used for displaying the user interface of the quick application, so that developers of the quick application do 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 developers due to the fact that the types of equipment are many 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 present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method for interface display for a fast application in accordance with an illustrative embodiment;
FIG. 2 is a flow diagram illustrating a method for interface display for a fast application in accordance with another illustrative embodiment;
FIG. 3 is a block diagram illustrating an interface display device for a fast application according to an example embodiment;
FIG. 4 is a block diagram illustrating a fast application framework in accordance with an exemplary embodiment;
FIG. 5 is a flowchart illustrating the launching of a fast application, according to an exemplary embodiment;
fig. 6 is a schematic diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The quick application is a novel application form based on a mobile phone hardware platform, does not need to be installed, is used on demand, and has native application experience (performance, system integration, interaction and the like). Meanwhile, the method is quickly applied to the layer of development specification, capability access, developer service and the like at the beginning of birth, so that standardization and unification among mobile phone manufacturers are realized, and the adaptation cost of developers is greatly reduced.
Compared with the traditional application, the quick application has the following characteristics:
instant: the user can use the method point by point, and the user does not need to wait;
everywhere: deeply integrated with the usage scenario of the mobile phone, with ubiquitous portals (search, intelligent assistant, intelligent recommendation, application marketplace, browser, … …);
efficiency: the quasi-front-end development mode is high in efficiency.
Due to the specificity of fast applications, fast applications are expected to perform more tasks and perform more functions. At present, in the process of gradually improving the functions of the fast application, the embodiment of the present disclosure provides an interface display method for the fast application, which utilizes a high-order component to implement adaptation in various terminals, reduces the program code writing amount of developers of the fast application, and also improves the processing capability and the practicability of the fast application.
Referring to fig. 1, a flowchart of an interface display method for a fast application according to an exemplary embodiment is shown, which is described by taking the method as an example for being applied to a terminal, and the method includes:
step 101, acquiring device information of a terminal.
At least one fast application is installed and run in the terminal, and the fast application is an application running based on a fast application framework integrated in an operating system. The fast application is also an application which can be used as a search without downloading, and has the characteristics of small size, 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 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 high-order component 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, and 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, and the like; the screen pixel ratio refers to the aspect ratio of the pixel points.
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 type and number of the parameters included in the device information are not limited in this 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 device 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 ratio to obtain the configured high-order component;
or the terminal automatically configures the high-order component according to the device type and the screen size to obtain the configured high-order component;
or the terminal automatically configures the high-order component according to the device type and the screen pixel ratio 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 device type, the screen size and the screen pixel ratio 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.
That is to say, the high-order component includes at least two types of configuration information matched with the device information, the terminal needs to determine the configuration information adapted to the terminal according to the device information, and complete the matching between the terminal and the configuration information, so that the configured high-order component can call the configuration information to process the application data of the fast application in the fast application, and generate the user interface adapted to the terminal.
Optionally, for automatic configuration of the high-order component, the device information may be written into a program code of the high-order component in a value assignment manner, so as to obtain the configured high-order component.
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 fast 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 the native application, and optionally, the application data of the fast application is provided by a background server of the native application, so that the terminal invokes an Application Programming Interface (API) of the fast application through the 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 encapsulating the API of the native application.
Alternatively, the background server of the native application may include a third party server, which refers to a background server that is different from the provider of the background server of the fast application.
And 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 high-order component, that is, after the application data of the fast application is input into the configured high-order component, the user interface adaptive to the terminal is output by the high-order component.
In summary, the interface display method for the fast application provided by the embodiment obtains the device information of the terminal; automatically configuring the high-order component according to the equipment information to obtain a configured high-order component; acquiring application data of the 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 high-order components adapted to various terminals are used for displaying the user interface of the quick application, so that developers of the quick application do 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 developers due to the fact that the types of equipment are many is solved.
Based on fig. 1, the high-level component generates the 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 that the process of generating the user interface by the high-level component configured in step 104 may include steps 1041 to 1042, as shown in fig. 2, where the exemplary steps are as follows:
step 1041, 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 device information, and the target display style is a display style matched with the device information.
TABLE 1
Type of device Display template Display style
Tablet personal computer 1 1
Smart phone 2 2
Notebook computer 1 3
It should be noted that the display template and the display style in the configuration information 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 fast application configures the display template and the display style by writing the template parameters and the style parameters into the program code of the high-level component. For example, for a display style of a fast application, a display style of a smart phone is configured, and the program code may be:
@ media query ═ phone; the device type is a mobile phone;
blue// Color blue;
or, configuring the display style of the television, and the program code may be:
@ media query ═ tv; // the device type is television (tv);
green/green Color;
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 high-level components.
Optionally, in the process of generating a user interface conforming to the target display template and the target display style, the terminal first generates an unrendered user interface through the configured high-order component; secondly, rendering the unrendered user interface in a native rendering mode through the configured high-order component to generate the user interface which accords with the target display template and the target display style.
And step 1042, displaying a user interface which accords with the target display template and the target display style on the terminal.
In summary, the interface display method for the fast application provided by the embodiment obtains the device information of the terminal; automatically configuring the high-order component according to the equipment information to obtain a configured high-order component; acquiring application data of the 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 high-order components adapted to various terminals are used for displaying the user interface of the quick application, so that developers of the quick application do 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 developers due to the fact that the types of equipment are many is solved.
Moreover, 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, an interface display apparatus for fast applications provided in an exemplary embodiment is shown, where part or all of the apparatus may be implemented by software, hardware or a combination of the software and the hardware, and at least one fast application is installed and executed in the apparatus, where the fast application is an application executed based on a fast application framework integrated in an operating system, and the apparatus includes:
an obtaining module 201, configured to obtain device information of a terminal;
the configuration module 202 is configured to perform automatic configuration on the high-order component according to the device information, so as 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, 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 obtaining module 201, configured to obtain application data of a fast application;
and the display module 203 is configured to invoke 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 high-order component in a value assignment manner, so as to obtain the configured high-order component.
In some embodiments, the configuration information includes a display template and a display style;
a display module 203 comprising:
the generation submodule 301 is configured to input the application data into the configured high-order component, and generate 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 style is a display style matched with the equipment information;
and the display sub-module 302 is used for displaying the user interface which accords with the target display template and the target display style.
In some embodiments, the generation submodule 301 is configured to generate an unrendered user interface through configured high-order components; and rendering the unrendered user interface in a native rendering mode through the configured high-order component to generate the user interface which accords with 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 the 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 API of an application programming interface of the fast application, and obtain the application data through the API of the native application.
In summary, the interface display apparatus for fast 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 a configured high-order component; acquiring application data of the 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 components adapted to various terminals, so that developers of the quick application do 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 developers due to more equipment types is solved.
Referring to fig. 4, a block diagram 400 of a fast application framework shown in one exemplary embodiment of the present disclosure is shown, the fast application framework including: a scenario portal 420, a 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 appearance of the scene portal 420 may be in the form of a page and a card.
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 business access 445.
The front-end framework 441 includes an MVVM (Model-View-Model), a V-DOM, a route, a basic API (Application Programming Interface), a service API, a UI (user Interface) component, and the like;
the general scene 442 and the lightweight scene 443 include a JavaScript engine, a standard rendering engine, an extreme rendering engine, an end-cloud-core acceleration, a security mechanism, an emerging scene (AI (Artificial Intelligence), AR (Augmented Reality), etc.), system integration (application management, rights management, etc.);
service access 445 includes Push (Push), account/payment, etc.
OS infrastructure & hardware 460 includes: a graphics library, a native control, a system service, and a GPU (graphics Processing Unit)/NPU (embedded Neural network processor), etc.
Different from cross-platform frameworks of other application layers, the cross-platform framework is fast applied to an operating system planted on a mobile phone, and the deep integration of a chip operating system cloud can be realized. The combination of the end and the cloud takes the acceleration of the starting performance as an example, and the optimization of the network link layer can greatly accelerate the starting speed of the application through the cooperative rendering of the cloud and the end. Meanwhile, the special capability of the hardware platform can be integrated, and the experience is further improved. For example, the calculation power of the NPU can be integrated into a fast application engine by combining with a mobile phone AI chip, so that an AI scene (face recognition, image super-resolution, and the like) can be executed at a low delay and high performance on the end side, the privacy of a user is effectively protected, and the bandwidth is saved.
Referring to fig. 5, a flowchart illustrating the starting of a fast application according to an exemplary embodiment of the present disclosure is shown, including:
1) when the system is started for the first time, a user clicks and triggers downloading of a program package of the fast application, and meanwhile initialization related work of the fast application engine is carried out. After the whole fast application program package is downloaded and verified, the JavaScript file of the first page to be displayed is loaded and rendered. The program package downloading in the process is a bottleneck, and from the measured data in the previous period, the package downloading time of about 200K under the normal network is at least more than 400 milliseconds, and the 2M package is more than 2 seconds.
2) The page rendering comprises JavaScript loading, execution of page and JavaScript frame logic, layout operation and drawing of the native UI control. When the logic in the page is executed, one or more network requests (from the page to the application-own three-party server) are generated, and the data returned by the network requests drive the re-rendering of the page until the content of the first screen is completely displayed.
Here, the network request, JavaScript execution, typesetting and drawing are not simply in a serial relationship, but are parallelly interleaved to influence the rendering performance of the whole page, and are strongly related to the logic of page design, the network condition and the running state of the device.
Referring to fig. 6, a block diagram of an interface display apparatus 500 for a fast 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, and the like.
Referring to fig. 6, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, I/O (Input/Output) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction 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 device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The Memory 504 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as an SRAM (Static Random Access Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a PROM (Programmable Read-Only Memory), a ROM (Read-Only Memory), a magnetic Memory, a flash Memory, a magnetic disk, or an 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 supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include an LCD (Liquid Crystal Display) and a TP (touch panel). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect 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 camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
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 apparatus 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes 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: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object 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) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope 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 an exemplary embodiment, the communication component 516 receives a broadcast signal 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 circuits), DSPs (Digital Signal processors), DSPDs (Digital Signal Processing devices), PLDs (programmable logic devices), FPGAs (Field programmable Gate arrays), controllers, microcontrollers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of apparatus 500, enable apparatus 500 to perform the above-described interface display method for a fast application.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in 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 variations, uses, or adaptations of the disclosure following, in general, the 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An interface display method for a fast application, which is applied to a terminal, wherein at least one fast application is installed and run in the terminal, and the fast application is an application that runs based on a fast 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, 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;
and calling the configured high-order component to display a user interface corresponding to the application data.
2. The method of claim 1, wherein automatically configuring the high-order component according to the device information to obtain the configured high-order component comprises:
and writing the equipment information into a program code of the high-order component in an assignment mode to obtain the configured high-order component.
3. The method of claim 1, wherein the configuration information comprises a display template and a display style;
the step of calling the configured high-order component to display the user interface corresponding to the application data comprises the following steps:
inputting the application data into the configured high-order component, and generating the user interface which accords with a target display template and a 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 style is a display style matched with the equipment information;
displaying the user interface conforming to the target display template and the target display style.
4. The method of claim 3, wherein generating, by the configured high-level component, the user interface that conforms to a target display template and a target display style comprises:
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 the user interface which accords with a target display template and a target display style.
5. The method according to any one of claims 1 to 4, wherein the device information includes at least one of a screen size, a device type, and a screen pixel ratio of the terminal.
6. The method according to any one of claims 1 to 4, wherein the acquiring the device information of the terminal comprises:
and calling a hook function to acquire the equipment information from an operating system of the terminal.
7. The method according to any one of claims 1 to 4, 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 the application programming interface of the fast application, and acquiring the application data through the API of the native application.
8. An interface display device for a fast application, wherein at least one fast application is installed and executed in the device, and the fast application is an application executed based on a fast application framework integrated in an operating system, the device comprising:
the acquisition module is used for acquiring the 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 the application data of the fast application;
and the display module is used for calling the configured high-order component to display the user interface corresponding to the application data.
9. A terminal, characterized in that the terminal comprises:
a processor;
a memory coupled to the processor;
wherein the processor is configured to load and execute the executable instructions to implement the interface display method of the fast application according to any one of claims 1 to 7.
10. 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, which is loaded and executed by a processor to implement the method of interface display for a fast application according to any one of claims 1 to 7.
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 true CN110865864A (en) 2020-03-06
CN110865864B 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)

Cited By (3)

* 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
CN113778428A (en) * 2020-06-09 2021-12-10 北京小米移动软件有限公司 Application development method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160357421A1 (en) * 2015-06-07 2016-12-08 Apple Inc. Multiple Device Configuration Application
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160357421A1 (en) * 2015-06-07 2016-12-08 Apple Inc. Multiple Device Configuration Application
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778428A (en) * 2020-06-09 2021-12-10 北京小米移动软件有限公司 Application development method and device
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

Also Published As

Publication number Publication date
CN110865864B (en) 2023-07-25

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
CN110865863B (en) Interface display method and device for fast application and storage medium
CN110851240B (en) Function calling method, device and storage medium
CN110990105A (en) Interface display method and device, electronic equipment and storage medium
CN111026491B (en) Interface display method, device, electronic equipment, server and storage medium
CN110865864B (en) Interface display method, device and equipment for quick application and storage medium
CN110968362B (en) Application running method, device and storage medium
CN111008057A (en) Page display method and device and storage medium
US20230004620A1 (en) Page display method
CN111078325B (en) Application program running method and device, electronic equipment and storage medium
CN110971974B (en) Configuration parameter creating method, device, terminal and storage medium
CN110851108A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN109117144B (en) Page processing method, device, terminal and storage medium
CN110908629A (en) Electronic equipment operation method and device, electronic equipment and storage medium
CN111104183B (en) Application program running method and device, electronic equipment and storage medium
US11507633B2 (en) Card data display method and apparatus, and storage medium
CN111008050B (en) Page task execution method, device, terminal and storage medium
CN112328330A (en) iOS component calling method, device, middleware, electronic equipment and medium
CN107679205B (en) Multimedia data playing method and device, computer equipment and storage medium
CN110891194B (en) Comment information display method and device, terminal and storage medium
CN112860625A (en) Data acquisition method, data storage method, device, equipment and storage medium
CN109032583B (en) Data interaction method and device
CN110865760A (en) Electronic equipment operation method and device, electronic equipment and storage medium

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