Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Message-based view loading method, apparatus, device and storage medium

A view and message technology, applied in the computer field, can solve problems such as affecting user experience, taking a long time, and slowing down page startup speed, and achieve the effect of improving page startup speed and user experience.

Active Publication Date: 2022-07-05
武汉斗鱼鱼乐网络科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the page contains a lot of views that are displayed when the page starts, then a lot of view loading operations need to be performed during the page startup process, which makes the startup process of the entire page take a long time, resulting in slower page startup speed and affecting user experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message-based view loading method, apparatus, device and storage medium
  • Message-based view loading method, apparatus, device and storage medium
  • Message-based view loading method, apparatus, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] The message-based view loading method provided in this embodiment is applicable to the application startup situation based on the Android system. The method can be executed by a message-based view loading device, which can be implemented by software and / or hardware, and the device can be integrated in a device equipped with an Android system, such as a typical user terminal device, such as a mobile phone, a tablet computer or smart TV, etc. see figure 1 , the method of this embodiment includes:

[0046] S110. When receiving the function startup message that triggers the loading of the view, determine the target view identifier of the target view according to the function startup message.

[0047] The function startup message refers to the first message that triggers the control to execute the control function. The timing of sending the message is related to the specific business requirements. For example, it can be sent when the target view needs to be displayed, not ...

Embodiment 2

[0071] This embodiment provides a message-based view loading device, see figure 2 , the device specifically includes:

[0072] The target view identifier determination module 210 is configured to determine the target view identifier of the target view according to the function startup message when receiving the function startup message that triggers the loading of the view;

[0073] The target view protocol object acquisition module 220 is configured to use the target view identifier as an input parameter, call the object acquisition function through the object collection, and obtain the target view protocol object corresponding to the target view identifier, wherein the object collection is used to store the view identifiers and each view identifier. Each view identifier corresponds to the view protocol object, and the view protocol object is generated for the initial view class based on the predefined view loading protocol;

[0074] The target view loading module 230 is co...

Embodiment 3

[0090] see image 3 , this embodiment provides a device 300, which includes: one or more processors 320; a storage device 310 for storing one or more programs, when the one or more programs are executed by the one or more processors 320 , causing one or more processors 320 to implement the message-based view loading method provided by the embodiment of the present invention, including:

[0091] When receiving a function startup message that triggers view loading, determine the target view identifier of the target view according to the function startup message;

[0092] Taking the target view ID as the input parameter, the object acquisition function is called through the object collection to obtain the target view protocol object corresponding to the target view ID. The object collection is used to store each view ID and the view protocol object corresponding to each view ID. The protocol object is generated for the initial view class based on the predefined view loading prot...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention disclose a message-based view loading method, apparatus, device and storage medium. The method includes: when receiving a function startup message that triggers view loading, determining a target view identifier of a target view according to the function startup message; using the target view identifier as an input parameter, calling an object acquisition function through an object set to obtain the corresponding target view identifier. The target view protocol object, in which the object collection is used to store each view identifier and the view protocol object corresponding to each view identifier, and the view protocol object is generated by the initial view class based on the predefined view loading protocol; The view loading protocol function is used to load the target view, wherein the view loading protocol function is a protocol function included in the view loading protocol. Through the above technical solution, the distributed loading of each view in the page is realized, and the page startup speed is improved.

Description

technical field [0001] Embodiments of the present invention relate to computer technologies, and in particular, to a message-based view loading method, apparatus, device, and storage medium. Background technique [0002] Currently, in an application developed based on the Android system, each view in a page is loaded when the page is started. If the page contains a lot of views that are displayed when the page is started, then a lot of view loading operations need to be performed during the page startup process, making the entire page startup process take a long time, resulting in slower page startup speed and affecting user experience. . SUMMARY OF THE INVENTION [0003] Embodiments of the present invention provide a message-based view loading method, apparatus, device, and storage medium, so as to realize distributed loading of each view in a page and improve page startup speed. [0004] In a first aspect, an embodiment of the present invention provides a message-based...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
CPCG06F9/44505
Inventor 张磊
Owner 武汉斗鱼鱼乐网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products