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

A view and message technology, applied in the computer field, can solve problems affecting user experience, slow page startup speed, and time-consuming, etc., to achieve the effect of improving user experience and page startup speed

Active Publication Date: 2019-07-19
武汉斗鱼鱼乐网络科技有限公司
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 and device, equipment and storage medium
  • Message-based view loading method and device, equipment and storage medium
  • Message-based view loading method and device, equipment 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 start-up of an application based on the Android system. The method can be performed by a message-based view loading device, which can be implemented by software and / or hardware, and which can be integrated in a device carrying 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. Determine the target view ID of the target view according to the function start message when a function start message triggering view loading is received.

[0047] Among them, the function start message refers to the first message that triggers the control to execute the control function. The timing of sending this message is related to the specific business requirements. For example, it can be sent when the target view needs to be displayed, rather than the target view. Sen...

Embodiment 2

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

[0072] The target view identification determination module 210 is configured to determine the target view identification of the target view according to the function activation message when receiving a function activation message triggering view loading;

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

[0074] The target view loading module 230 is configured to call the view loading protocol function through the target...

Embodiment 3

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

[0091] When receiving a function start message triggering view loading, determine the target view ID of the target view according to the function start message;

[0092] Using the target view ID as an input parameter, call the object acquisition function through the object set to obtain the target view protocol object corresponding to the target view ID, where the object set is used to store each view ID and the view protocol object corresponding to each view ID, and the view The protocol object is generated for the initial view class based on the predefined view loading protocol;

[0093] The ...

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

The embodiment of the invention discloses a message-based view loading method and device, equipment and a storage medium. The method comprises the following steps: when a function starting message fortriggering view loading is received, determining a target view identifier of a target view according to the function starting message; taking the target view identifier as an input parameter; callingan object acquisition function through an object set to obtain a target view protocol object corresponding to the target view identifier, the object set being used for storing each view identifier and a view protocol object corresponding to each view identifier, and the view protocol object being generated by an initial view class based on a predefined view loading protocol; and calling a view loading protocol function through the target view protocol object to load the target view, the view loading protocol function being a protocol function contained in a view loading protocol. According tothe technical scheme, distributed loading of all views in the page is achieved, and the page starting speed is increased.

Description

technical field [0001] The embodiments of the present invention relate to computer technology, and in particular to a message-based view loading method, device, device and storage medium. Background technique [0002] Currently, in an application program 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 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 . Contents of the invention [0003] Embodiments of the present invention provide a message-based view loading method, device, device, and storage medium, so as to realize distributed loading of each view in a page and improve page startup speed. [0004] In the first aspect, the embodiment of the present invention provides a ...

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
IPC IPC(8): G06F9/445
CPCG06F9/44505
Inventor 张磊
Owner 武汉斗鱼鱼乐网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products