Page management method, device, electronic device and computer readable medium

By using multiple interface components in the user interaction component to carry the view components of different technology stack pages, the problem of difficult multi-technology stack page management in the existing technology is solved, simplified page management and switching is achieved, and development efficiency is improved.

CN111782210BActive Publication Date: 2024-10-18ALIBABA GROUP HOLDING LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910273100.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-04
Publication Date
2024-10-18
Estimated Expiration
2039-04-04

AI Technical Summary

Technical Problem

In the existing technology, the management of multi-technology stack pages is difficult and a large number of Activity components need to be registered, resulting in complex page switching and life cycle management, which affects development efficiency.

Method used

Multiple interface components are used to host the view components of different technology stack pages, and these interface components are added to the user interaction components. The rendering of the view components is managed based on user interaction information, avoiding the need to register a large number of user interaction components.

Benefits of technology

It reduces the amount of development, improves development efficiency, and simplifies the management and switching process of multi-technology stack pages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111782210B_ABST
    Figure CN111782210B_ABST
Patent Text Reader

Abstract

This embodiment provides a page management method, device, electronic device and computer-readable medium. The method includes: using multiple interface components to respectively carry view components for rendering different technology stack pages; adding multiple interface components carrying the view components to a user interaction component; and managing the technology stack pages rendered by the view components carried by multiple interface components according to user interaction information acquired by the user interaction component. Through this embodiment, the problem of difficult page management when a large number of user interaction components are used to carry different technology stack pages can be avoided. In addition, since a small number of user interaction components are used to carry different technology stack pages, the development workload can be reduced, thereby improving development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present embodiment relates to the field of computer technology, and in particular to a page management method, device, electronic device, and computer-readable medium. Background Art

[0002] With the development of technology, there are more and more technology stacks for developing pages, and pages developed with different technology stacks have different characteristics. Existing applications usually need to support pages developed with different technology stacks, such as native pages, web pages, weex pages, RN pages (react native pages) and flutter pages.

[0003] In an application, pages developed with different technology stacks need to be hosted by independent Activity components, that is, each page developed with a different technology stack needs to be hosted by a corresponding Activity component, and each Activity component supports the rendering of one technology stack page, thereby supporting the rendering of multiple technology stack pages. In this way, a large number of Activity components need to be registered in the AndroidManifest file of the Android system in advance, which increases the difficulty of managing the technology stack pages of the application. For example, when it is necessary to switch between technology stack pages, it can only be achieved by switching between Activity components that host the technology stack pages, and when switching between Activity components, the life cycle management of the Activity component is required, which increases the difficulty of managing the technology stack pages. Summary of the invention

[0004] The purpose of the present application is to propose a page management method, device, electronic device and computer-readable medium to solve the problem of difficulty in managing technology stack pages in the prior art.

[0005] According to a first aspect of the present embodiment, a page management method is provided. The method includes: using multiple interface components to respectively carry view components for rendering different technology stack pages; adding the multiple interface components carrying the view components to a user interaction component; and managing the technology stack pages rendered by the view components carried by the multiple interface components according to user interaction information acquired by the user interaction component.

[0006] According to the second aspect of this embodiment, a page management device is provided. The device includes: a carrying module, which is used to use multiple interface components to respectively carry view components used to render different technology stack pages; a first adding module, which is used to add multiple interface components carrying the view components to a user interaction component; and a management module, which is used to manage the technology stack pages rendered by the view components carried by the multiple interface components according to user interaction information obtained by the user interaction component.

[0007] According to the third aspect of this embodiment, an electronic device is provided, comprising: one or more processors; and a computer-readable medium configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the page management method as described in the first aspect of the above embodiment.

[0008] According to a fourth aspect of the present embodiment, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the page management method as described in the first aspect of the above embodiment is implemented.

[0009] Through the technical solution provided by this embodiment, multiple interface components are used to respectively carry view components for rendering different technology stack pages, and the multiple interface components carrying view components are added to the user interaction component, and then according to the user interaction information obtained by the user interaction component, the technology stack pages rendered by the view components carried by the multiple interface components are managed. Compared with other existing methods, multiple interface components respectively carry different technology stack pages through view components, so there is no need to register a large number of user interaction components, thus avoiding the problem of difficult page management when a large number of user interaction components are used to carry different technology stack pages. In addition, since a small number of user interaction components can be used to carry different technology stack pages, the development workload can be reduced, thereby improving development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0011] Figure 1 is a flowchart of the page management method in the first embodiment;

[0012] Figure 2 This is a flow chart of the steps of the page management method in the second embodiment;

[0013] Figure 3 This is a schematic diagram of the structure of the page management device in the third embodiment;

[0014] Figure 4This is a schematic diagram of the structure of the page management device in the fourth embodiment;

[0015] Figure 5 is a schematic diagram of the structure of the electronic device in the fifth embodiment;

[0016] Figure 6 This is the hardware structure of the electronic device in the sixth embodiment. DETAILED DESCRIPTION

[0017] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only configured to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0019] Reference Figure 1 , showing a step flow chart of the page management method of the first embodiment of the present invention.

[0020] Specifically, the page management method provided in this embodiment includes the following steps:

[0021] In step S101, a plurality of interface components are used to respectively carry view components for rendering pages of different technology stacks.

[0022] In this embodiment, an interface component may carry a view component for rendering a technology stack page. The interface component includes an interface component for processing input events. Specifically, the interface component for processing input events includes a native component of the operating system, or a custom component. Among them, the native component of the operating system may be a Fragment component in the Android system, which represents the behavior or user interface part in the Activity component. A combination of multiple Fragment components can be used in an Activity component to build a multi-pane user interface, and a Fragment component can be reused in multiple Activity components. The Fragment component has a life cycle and can receive and process input events. For example, the Fragment component can realize switching between multiple technology stack pages, and supports the configuration of different page switching animation effects. Using the Fragment component to carry the view component for rendering different technology stack pages can not only support different technology stack pages, but also can achieve a variety of page switching effects according to business needs. In simple terms, the Fragment component can actually be understood as a control with a life cycle, but this control is a bit special. It has the ability to handle input events, has a life cycle, and must rely on the Activity component. It can communicate and host with the Activity component, so that multiple Fragment components can be used to carry view components without registering a large number of Activity components, avoiding the problem of difficult page management when using a large number of Activity components to carry pages of different technology stacks. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation to this.

[0023] In this embodiment, the different technology stack pages can be understood as pages developed by different page development frameworks. For example, the different technology stack pages include at least one of the following: native pages (Native pages) developed using the native language of the operating system, web pages (web pages) developed using web languages ​​(such as HTML languages), weex pages developed based on the weex framework, RN pages developed based on the react native framework, flutter pages developed based on the flutter framework, etc. For the different technology stack pages, the view components required to render the technology stack pages may be the same or different. For example, in the Android system, native pages can be rendered by ViewGroup components and / or View components, web pages can be rendered by WebView components, the view components of the root nodes of weex pages and RN pages can be FrameLayout components, and the view components of the root nodes of flutter pages can be SurfaceLayout components. These components are all inherited from the View component, that is, these components are all view components. Since the interface component supports the View component, or has the View attribute, multiple interface components can be used to carry the view component. It can be understood that the above description is only exemplary, and this embodiment does not make any limitation to this.

[0024] In some optional embodiments, when multiple interface components are used to respectively carry view components for rendering pages of different technology stacks, multiple carrying objects corresponding to the view components are created; the multiple carrying objects are added to the multiple interface components respectively, so as to respectively carry the multiple view components through the multiple carrying objects. It can be understood that any implementation method of using multiple interface components to respectively carry view components for rendering pages of different technology stacks can be applied here, and this embodiment does not make any limitation to this.

[0025] In a specific example, when the technology stack page is a weex page developed based on the weex framework, the bearer object corresponding to the view component used to render the weex page may be an interface object of the weex framework. When the technology stack page is an RN page developed based on the react native framework, the bearer object corresponding to the view component used to render the RN page may be an interface object of the react native framework. When the technology stack page is a flutter page developed based on the flutter framework, the bearer object corresponding to the view component used to render the flutter page may be an interface object of the flutter framework. When the technology stack page is a native page developed using the native language of the operating system, the bearer object corresponding to the view component used to render the native page may be an interface object about the native code of the page. When the technology stack page is a web page developed using a web language, the bearer object corresponding to the view component used to render the web page may be an interface object about the page script code. The reason why it is necessary to create a bearer object corresponding to the view component used to render different technology stack pages is because the interface component needs to carry the corresponding view component through the bearer object corresponding to the view component. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.

[0026] In step S102, the plurality of interface components carrying the view component are added to the user interaction component.

[0027] In this embodiment, the user interaction component includes a native component of the operating system, or a custom component. Among them, the native component of the operating system can be an Activity component in the Android system. The Activity component is an application component. By executing the Activity component, a display interface can be provided, which the user can use to interact in order to complete a task. All operations in the Activity component are closely related to the user. It is a component responsible for interacting with the user, and can display specified controls through setContentView(View). In an Android application, a separate display interface can be provided by executing the Activity component, which can display some controls and can also listen to and process user events to respond. Activity components communicate with each other through Intent. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.

[0028] In some optional embodiments, when adding the plurality of interface components carrying the view component to the user interaction component, the plurality of interface components carrying the view component are added to the user interaction component by calling the multi-view management container component. It is understandable that any specific implementation of adding the plurality of interface components carrying the view component to the user interaction component can be applied here, and this embodiment does not make any limitation to this.

[0029] In a specific example, the multi-view management container component may be the ViewPager component in the Android system. When the multiple interface components carrying the view component are added to the user interaction component by calling the multi-view management container component, the multiple interface components carrying the view component are added to the user interaction component through the adapter configured for the ViewPager component (such as the PagerAdapter component). Of course, in other operating systems, other components that can carry and manage multiple view components can be used as the multi-view management container component, and the multiple interface components carrying the view component can be added to the user interaction component in a matching manner. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.

[0030] In step S103, the technology stack pages rendered by the view components carried by the multiple interface components are managed according to the user interaction information acquired by the user interaction component.

[0031] In this embodiment, the user interaction information can be understood as the operation information of the user on the user operation interface, for example, the information of the user sliding the finger on the interface, the information of the user clicking the finger on the interface, etc. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.

[0032] In a specific example, when the user interaction information is information about a user sliding a finger on an interface, the application switches the technology stack page rendered by the view component carried by the multiple interface components in the page stack according to the information about the user sliding a finger on the interface obtained by the user interaction component, thereby implementing the management of the technology stack page. It is understandable that the above description is only exemplary and this embodiment does not impose any limitation on this.

[0033] Through the page management method provided in this embodiment, multiple interface components are used to respectively carry view components for rendering different technology stack pages, and the multiple interface components carrying view components are added to the user interaction component, and then according to the user interaction information obtained by the user interaction component, the technology stack pages rendered by the view components carried by the multiple interface components are managed. Compared with other existing methods, multiple interface components respectively carry different technology stack pages through view components, so there is no need to register a large number of user interaction components, avoiding the problem of difficult page management when a large number of user interaction components are used to carry different technology stack pages. In addition, since a small number of user interaction components can be used to carry different technology stack pages, the development workload can be reduced, thereby improving development efficiency.

[0034] The page management method of this embodiment can be executed by any appropriate device with data processing capabilities, including but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment equipment, advertising equipment, personal digital assistants (PDAs), tablet computers, laptop computers, handheld game consoles, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (such as Google Glass, Oculus Rift, Hololens, Gear VR), etc.

[0035] Reference Figure 2 , shows a step flow chart of the page management method of the second embodiment.

[0036] Specifically, the page management method provided in this embodiment includes the following steps:

[0037] In step S201, a plurality of interface components are used to respectively carry view components for rendering pages of different technology stacks.

[0038] Since the specific implementation of step S201 is similar to the specific implementation of step S101, it will not be described again here.

[0039] In step S202, the plurality of interface components carrying the view components are added to the page stack of the user interaction component by calling the management object of the interface component.

[0040] In this embodiment, the management object of the interface component is a native object of the system. For example, when the interface component is a Fragment component in the Android system, the management object of the interface component may be FragmentManager. Specifically, the FragmentManager object is called through the getSupportFragmentManager method to add the multiple interface components carrying the view component to the page stack of the user interaction component. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.

[0041] In step S203, the technology stack pages rendered by the view components carried by the multiple interface components are managed according to the user interaction information acquired by the user interaction component.

[0042] Since the specific implementation of step S203 is similar to the specific implementation of step S103, it will not be described again here.

[0043] In some optional embodiments, the method further includes: providing a lifecycle interface of the interface component, so that the business party obtains the lifecycle information of the interface component through the lifecycle interface, and configures the functional module for the technology stack page according to the lifecycle information. Thus, the functional module for the technology stack page can be configured through the lifecycle interface of the interface component. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.

[0044] In a specific example, when the interface component is a Fragment component in the Android system, the life cycle information of the interface component includes onAttach stage, onCreate stage, onCreateView stage, onActivityCreated stage, onStart stage, onResume stage, onPause stage, onStop stage, onDestroyView stage, onDestroy stage and onDetach stage. The functional modules for the technology stack page include a monitoring module for the technology stack page, a switching animation effect for the technology stack page, a business function module for the technology stack page, etc. It can be understood that the above description is only exemplary and this embodiment does not impose any limitation on this.

[0045] Through the page management method provided in this embodiment, multiple interface components are used to respectively carry view components for rendering different technology stack pages, and by calling the management object of the interface component, the multiple interface components carrying the view components are added to the page stack of the user interaction component, and then according to the user interaction information obtained by the user interaction component, the technology stack pages rendered by the view components carried by the multiple interface components are managed. Compared with other existing methods, multiple interface components respectively carry different technology stack pages through view components, so there is no need to register a large number of user interaction components, avoiding the problem of difficult page management when a large number of user interaction components are used to carry different technology stack pages. In addition, since a small number of user interaction components can be used to carry different technology stack pages, the development workload can be reduced, thereby improving development efficiency.

[0046] The page management method of this embodiment can be executed by any appropriate device with data processing capabilities, including but not limited to: cameras, terminals, mobile terminals, PCs, servers, vehicle-mounted devices, entertainment equipment, advertising equipment, personal digital assistants (PDAs), tablet computers, laptop computers, handheld game consoles, smart glasses, smart watches, wearable devices, virtual display devices or display enhancement devices (such as Google Glass, Oculus Rift, Hololens, Gear VR), etc.

[0047] Reference Figure 3 , shows a schematic diagram of the structure of the page management device in the third embodiment.

[0048] The page management device of this embodiment includes: a carrying module 301, which is used to use multiple interface components to respectively carry view components used to render different technology stack pages; a first adding module 302, which is used to add multiple interface components carrying the view components to a user interaction component; and a management module 303, which is used to manage the technology stack pages rendered by the view components carried by the multiple interface components according to user interaction information acquired by the user interaction component.

[0049] The page management device of this embodiment is used to implement the corresponding page management methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here.

[0050] Reference Figure 4 , which shows a schematic diagram of the structure of the page management device in the fourth embodiment.

[0051] The page management device of this embodiment includes: a carrying module 401, which is used to use multiple interface components to respectively carry view components used to render different technology stack pages; a first adding module 402, which is used to add multiple interface components carrying the view components to a user interaction component; and a management module 403, which is used to manage the technology stack pages rendered by the view components carried by the multiple interface components according to user interaction information acquired by the user interaction component.

[0052] Optionally, the bearing module 401 is specifically used to: create bearing objects corresponding to the multiple view components respectively; add the multiple bearing objects to the multiple interface components respectively, so as to respectively bear the multiple view components through the multiple bearing objects.

[0053] Optionally, the first adding module 402 is specifically used to add the multiple interface components carrying the view components to the page stack of the user interaction component by calling the management object of the interface component.

[0054] Optionally, the device also includes: a providing module 404, which is used to provide a lifecycle interface for the interface component, so that the business party obtains the lifecycle information of the interface component through the lifecycle interface, and configures the functional module for the technology stack page according to the lifecycle information.

[0055] Optionally, the interface component includes an interface component for processing input events.

[0056] Optionally, the technology stack page includes at least one of the following: a native page, a web page, a weex page developed based on a weex framework, an RN page developed based on a react native framework, and a flutter page developed based on a flutter framework.

[0057] The page management device of this embodiment is used to implement the corresponding page management methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here.

[0058] Figure 5 This is a schematic diagram of the structure of an electronic device in the fifth embodiment; the electronic device may include:

[0059] One or more processors 501;

[0060] The computer readable medium 502 may be configured to store one or more programs,

[0061] When the one or more programs are executed by the one or more processors, the one or more processors implement the page management method as described in the above-mentioned embodiment 1 or embodiment 2.

[0062] Figure 6 is the hardware structure of the electronic device in the sixth embodiment; Figure 6 As shown, the hardware structure of the electronic device may include: a processor 601, a communication interface 602, a computer readable medium 603 and a communication bus 604;

[0063] The processor 601, the communication interface 602, and the computer readable medium 603 communicate with each other via a communication bus 604;

[0064] Optionally, the communication interface 602 may be an interface of a communication module, such as an interface of a GSM module;

[0065] Among them, the processor 601 can be specifically configured as: using multiple interface components to respectively carry view components used to render different technology stack pages; adding the multiple interface components carrying the view components to the user interaction component; and managing the technology stack pages rendered by the view components carried by the multiple interface components according to the user interaction information obtained by the user interaction component.

[0066] The processor 601 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in this embodiment may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0067] The computer readable medium 603 can be, but is not limited to, a random access memory medium (RAM), a read-only memory medium (ROM), a programmable read-only memory medium (PROM), an erasable programmable read-only memory medium (EPROM), an electrically erasable read-only memory medium (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.

[0068] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code configured to execute the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are executed. It should be noted that the computer-readable medium described in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access storage medium (RAM), a read-only storage medium (ROM), an erasable programmable read-only storage medium (EPROM or flash memory), an optical fiber, a portable compact disk read-only storage medium (CD-ROM), an optical storage medium, a magnetic storage medium, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus or a device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program configured to be used by or in combination with an instruction execution system, an apparatus or a device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0069] Computer program code configured to perform the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0070] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of the code contains one or more executable instructions configured to implement the specified logical function. There are specific sequential relationships in the above-mentioned specific embodiments, but these sequential relationships are only exemplary. When the specific implementation is implemented, these steps may be less, more, or the execution order may be adjusted. That is, in some implementations as replacements, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0071] The modules described in this embodiment may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a carrier module, a first adding module, and a management module. The names of these modules do not, in some cases, constitute a limitation on the module itself. For example, the carrier module may also be described as "a module that uses multiple interface components to respectively carry view components for rendering pages of different technology stacks."

[0072] As another aspect, the present application further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the page management method described in the first or second embodiment above is implemented.

[0073] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the device: uses multiple interface components to respectively carry view components for rendering different technology stack pages; adds multiple interface components carrying the view components to the user interaction component; and manages the technology stack pages rendered by the view components carried by multiple interface components according to the user interaction information obtained by the user interaction component.

[0074] The expressions "first", "second", "the first" or "the second" used in various embodiments of the present disclosure may modify various components regardless of order and / or importance, but these expressions do not limit the corresponding components. The above expressions are only configured for the purpose of distinguishing an element from other elements. For example, a first user device and a second user device represent different user devices, although both are user devices. For example, a first element may be referred to as a second element, and similarly, a second element may be referred to as a first element without departing from the scope of the present disclosure.

[0075] When one element (e.g., a first element) is referred to as being "(operably or communicatively) coupled" or "(operably or communicatively) coupled to" or "connected to" another element (e.g., a second element), it is understood that the one element is directly connected to the other element or the one element is indirectly connected to the other element via yet another element (e.g., a third element). Conversely, it is understood that when an element (e.g., a first element) is referred to as being "directly connected" or "directly coupled" to another element (the second element), no element (e.g., a third element) is interposed between the two.

[0076] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. A page management method, characterized in that: The method comprises: Use multiple interface components to carry view components for rendering pages of different technology stacks; Adding the plurality of interface components carrying the view component to the user interaction component; According to the user interaction information acquired by the user interaction component, the technology stack pages rendered by the view components carried by the multiple interface components are managed.

2. The method according to claim 1, characterized in that: The method of using multiple interface components to respectively carry view components for rendering pages of different technology stacks includes: Create a plurality of carrier objects corresponding to the view components respectively; The multiple bearing objects are respectively added to the multiple interface components, so as to respectively bear the multiple view components through the multiple bearing objects.

3. The method according to claim 1, characterized in that The step of adding the plurality of interface components carrying the view component to the user interaction component comprises: By calling the management object of the interface component, the plurality of interface components carrying the view component are added to the page stack of the user interaction component.

4. The method according to claim 1, characterized in that: The method further comprises: A lifecycle interface of the interface component is provided so that the business party can obtain the lifecycle information of the interface component through the lifecycle interface and configure the functional module for the technology stack page according to the lifecycle information.

5. The method according to any one of claims 1 to 4, characterized in that: The interface components include an interface component for processing input events.

6. The method according to any one of claims 1 to 4, characterized in that: The technology stack page includes at least one of the following: a native page, a web page, a weex page developed based on a weex framework, an RN page developed based on a reactnative framework, and a flutter page developed based on a flutter framework.

7. A page management device, characterized in that: The device comprises: A carrier module, used to use multiple interface components to respectively carry view components for rendering pages of different technology stacks; A first adding module, used for adding a plurality of the interface components carrying the view component to a user interaction component; A management module is used to manage the technology stack pages rendered by the view components carried by the multiple interface components according to the user interaction information acquired by the user interaction component.

8. The device according to claim 7, characterized in that The carrier module is specifically used for: Create a plurality of carrier objects corresponding to the view components respectively; The multiple bearing objects are respectively added to the multiple interface components, so as to respectively bear the multiple view components through the multiple bearing objects.

9. The device according to claim 7, characterized in that The first adding module is specifically used for: By calling the management object of the interface component, the plurality of interface components carrying the view component are added to the page stack of the user interaction component.

10. The device according to claim 7, characterized in that The device also includes: A module is provided, which is used to provide a life cycle interface of the interface component, so that the business party can obtain the life cycle information of the interface component through the life cycle interface, and configure the functional module for the technology stack page according to the life cycle information.

11. The device according to any one of claims 7 to 10, characterized in that: The interface components include an interface component for processing input events.

12. The device according to any one of claims 7 to 10, characterized in that: The technology stack page includes at least one of the following: a native page, a web page, a weex page developed based on a weex framework, an RN page developed based on a reactnative framework, and a flutter page developed based on a flutter framework.

13. An electronic device comprising: one or more processors; A computer readable medium configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the page management method as described in any one of claims 1 to 6.

14. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the page management method as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Android based single-activity view switching technology

    CN103970526A

  • Method and system for identifying controls in Fragments

    CN108829391A