Method and device for switching display hierarchies of application pages and in-vehicle infotainment device
By binding the display hierarchical attributes of the application page, the page to be switched is displayed on the target display hierarchy, solving the problem of low display hierarchical switching efficiency in the prior art, and improving the page switching efficiency and user experience.
Patent Information
- Application Number
- CN202411504040.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the display level switching of the application page is inefficient, and the need for re-rendering makes the switching process take a long time.
By binding the display hierarchy attributes of the application page to be switched to the display hierarchy attributes of the application page at the target display hierarchy, the application page to be switched is displayed at the target display hierarchy without re-rendering the application page to be switched on the target display hierarchy.
Improves page switching efficiency, reduces time-consuming during the switching process, improves user experience, and saves system resources.
Smart Images

Figure CN119200912A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of vehicle computers, and specifically to a method and device for switching the display level of an application page, and a vehicle computer. Background Art
[0002] With the development of technology, various types of applications can be installed on the vehicle computer to assist driving and entertainment. Each application has multiple application pages, each application page has a display level, and the operating system of the vehicle computer can control the display of the application page on the display level.
[0003] During the use of an application, there may be a need to switch the application page from the initial display level to the target display level. Currently, the display level is usually switched by deleting the application page corresponding to the initial display level and adding a new application page corresponding to the target display level to display the application page on the target display level. However, in this method, the application page needs to be re-rendered on the target display level, which makes the switching process time-consuming. Summary of the invention
[0004] In view of the above problems, an embodiment of the present invention provides a method, device and vehicle computer for switching the display level of an application page, which are used to solve the problem of low efficiency in switching the display level of an application page in the prior art.
[0005] According to one aspect of an embodiment of the present invention, a method for switching a display level of an application page is provided, the method comprising:
[0006] In response to a page switching instruction, determining a first page and a second page; wherein the page switching instruction is used to instruct to switch the display level of the page; the first page is an application page of the current display level, and the second page is an application page of the target display level;
[0007] The first object of the second page is bound to the first object of the first page to switch the first page to be displayed on the target display level; wherein the first object is an object used to control the display of an application page.
[0008] According to another aspect of an embodiment of the present invention, a device for switching a display level of an application page is provided, comprising:
[0009] A determination module, configured to determine a first page and a second page in response to a page switching instruction; wherein the page switching instruction is used to instruct to switch the display level of the page; the first page is an application page of the current display level, and the second page is an application page of the target display level;
[0010] A processing module is used to bind the first object of the second page to the first object of the first page to switch the first page to be displayed on the target display level; wherein the first object is an object used to control the display of an application page.
[0011] According to another aspect of an embodiment of the present invention, a vehicle computer is provided, including:
[0012] A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0013] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the method for switching the display level of the application page.
[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium. When the executable instruction is executed on a device for switching the display level of a vehicle computer / application page, the device for switching the display level of the vehicle computer / application page executes the operation of the above-mentioned method for switching the display level of the application page.
[0015] The embodiments of the present invention use a method, device, and vehicle computer for switching the display level of an application page. When switching application pages, only the display properties of the first page need to be modified to display the first page on the target display level. There is no need to re-render the content of the first page on the page corresponding to the target display level, thereby improving page switching efficiency.
[0016] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0018] Figure 1 A flow chart showing a first embodiment of a method for switching display levels of an application page provided by the present invention;
[0019] Figure 2 A flow chart showing a second embodiment of a method for switching display levels of application pages provided by the present invention;
[0020] Figure 3A flowchart showing a third embodiment of a method for switching the display level of an application page provided by the present invention;
[0021] Figure 4 A schematic structural diagram showing an embodiment of a device for switching display levels of application pages provided by the present invention;
[0022] Figure 5 A structural schematic diagram of an embodiment of a vehicle computer provided by the present invention is shown. DETAILED DESCRIPTION
[0023] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0024] When using the car computer application, there may be a need to switch the application page from the initial display level to the target display level. For example, when the car computer is displaying the reversing image, a call reminder pops up suddenly, and the call reminder page will be displayed on the reversing image page, covering the reversing image, affecting the user's use of the reversing image. At this time, in order not to block the reversing image page, the display level of the reversing image page should be switched to the target display level to display it on top of the call reminder page.
[0025] Currently, the switching of display levels usually involves deleting the application page corresponding to the initial display level and adding a new application page corresponding to the target display level to display the application page on the target display level. However, in this method, the application page needs to be re-rendered on the target display level, resulting in a long switching process.
[0026] In view of this, the present application proposes a method for switching the display level of an application page. By binding the display level attribute of the application page to be switched to the display level attribute of the application page of the target display level, the application page to be switched is displayed on the target display level without re-rendering the application page to be switched on the target display level, thereby improving the page switching efficiency.
[0027] Figure 1 The flowchart of the first embodiment of the method for switching the display level of the application page provided by the present invention is shown, and the method is executed by the vehicle computer. Figure 1 As shown, the method comprises the following steps:
[0028] S101 . In response to a page switching instruction, determine a first page and a second page.
[0029] Exemplarily, the first page is an application page of the current display level, and the second page is an application page of the target display level. The application is an application installed on the vehicle computer, and the embodiment of the present invention does not limit the type of the application.
[0030] The page switching instruction is used to instruct to switch the display level of the page. The page switching instruction may be triggered by the user, for example, the user drags an application page to be displayed on top of another application page, thereby generating a page switching instruction.
[0031] The page switching instruction can also be automatically triggered and generated based on the application itself. For example, the vehicle computer can preset a list of application pages that can be switched. The vehicle computer is displaying application page A (display level 1), and application page A belongs to the list. Then, based on the application, other application pages currently being displayed by the vehicle computer system can be obtained in real time through a preset interface. If it is determined that the display level of the other application page being displayed (application page B, display level 2) is higher than that of application page A, the vehicle computer can generate a page switching instruction to switch the display level (display level 1) of application page A to the display level (display level 2) corresponding to application page B, or to a display level (display level 3) higher than that of application page B. In other words, the target display level can be the display level of other application pages that block the current application page, or it can be other display levels that are higher than the display level of the other pages.
[0032] In some possible implementations, the vehicle computer may preset a list of application pages that can be switched, and in response to a page switching instruction, the application page that is being displayed and belongs to the list is used as the first page, and other application pages that are currently being displayed and have a display level higher than the display level of the first page are used as the second page, or a display level higher than the display level of the first page is determined as the target display level, and a page is added to the target display level as the second page. It can be understood that in Android, each page can be identified by a third object, and the third object can be, for example, a view object, where the view object of the first page and the view object of the second page can be directly determined.
[0033] It should be noted that the embodiment of the present invention does not limit the type of the third object, as long as the third object can uniquely identify a page.
[0034] S102: Bind the first object of the second page to the first object of the first page, so as to switch the first page to be displayed on a target display level.
[0035] Exemplarily, the first object is an object used to control the display of the application page. For example, the first object may be a SurfaceControl object. The SurfaceControl object may have a variety of properties, such as display level, transparency, display position, etc. These properties can be set to manage the application page. It should be understood that the page has a corresponding relationship with the first object, so the first object of the page can be determined. It should be noted that the embodiment of the present invention does not limit the name of the first object, as long as the object can realize the function of controlling the display of the application page.
[0036] The above-mentioned binding of the first object of the second page with the first object of the first page refers to binding the first object of the second page with the first object of the first page so that the first object of the first page inherits the first object of the second page, thereby realizing the modification of the properties of the first object of the first page, for example, it can be bound as a parent-child relationship.
[0037] In a possible implementation manner, the first object of the second page is set as the parent node of the first object of the first page.
[0038] Exemplarily, a parent page and multiple child pages can be set in a graphical interface to form a tree structure. Accordingly, parent objects and child objects can be set to manage pages, and child objects can be changed accordingly based on changes in parent objects. Therefore, the vehicle computer can set the first object of the second page as the parent node of the first object of the first page, that is, set the parent object of the first object of the first page to the first object of the second page. Taking the current display level as level 1 and the target display level as level 2 as an example, since the attribute value of the display level attribute of the first object of the second page is level 2, after setting the first object of the second page as the parent node of the first object of the first page, the attribute value of the display level attribute of the first object of the first page will be modified to the display level attribute of the first object of the second page, that is, from level 1 to level 2, thereby realizing the display of the first page on the target display level.
[0039] In this embodiment, the vehicle computer can determine the first page and the second page in response to the page switching instruction, and then bind the first object of the second page to the first object of the first page to display the first page on the target display level. In this way, when the vehicle computer switches the application page, it only needs to modify the display properties of the first page to display the first page on the target display level, without re-rendering the content of the first page on the page corresponding to the target display level, thereby improving the efficiency of page switching.
[0040] Figure 2 The flowchart of the second embodiment of the method for switching the display level of the application page provided by the present invention is shown, and the method is executed by the vehicle computer. Figure 2 As shown, the method comprises the following steps:
[0041] S201 . In response to a page switching instruction, generate parameter information based on an application.
[0042] Exemplarily, the above parameter information is used to indicate the switching information of the application page. The application switching information may be, for example, the first page and the second page. Here, the application switching information may directly include the view object of the first page and the view object of the second page. The application switching information may also be the view object of the first page and the target display type (windowtype). The target display type is used to characterize the display type of the second page. The target display level can be indirectly determined by the target display type, and then the second page can be determined. The parameter information is used to be transmitted to the system layer of the vehicle computer. The format of the parameter information is related to the preset interface between the application and the system layer, and the embodiment of the present invention is not limited here.
[0043] In some possible implementations, when the parameter information includes a first page and a second page, the vehicle computer can respond to a page switching instruction, based on a preset list of application pages that can be switched, and use the application page currently displayed that belongs to the list as the first page, and then determine the target display level based on the display level of other application pages currently being displayed. For example, any display level higher than the display level of the other application pages is used as the target display level, and based on the application, determine whether there is a page at the target display level; if so, use the page at the target display level as the second page, and generate parameter information based on the second page and the first page based on a preset format; if not, add a second page at the target display level based on the application, and generate parameter information based on the second page.
[0044] It should be understood that each display level attribute can correspond to multiple view objects, and thus whether there is a page corresponding to the target display level can be determined based on whether there is a view object. If so, a view object corresponding to the target display level can be randomly determined as the second page. If not, a view object of the target display level can be added as the second page.
[0045] In some possible implementations, when the parameter information includes a first page and a target display type (windowtype), the vehicle computer can respond to a page switching instruction, based on a preset list of application pages that can be switched, and use the application page that is being displayed and belongs to the list as the first page, and then determine the target display type based on the display level of other application pages currently being displayed. The target display type is used to characterize the display type of the second page, and may include, for example, a normal application page (TYPE_APPLICATION), an application startup page (TYPE_APPLICATION_STARTING), a phone dialing page (TYPE_PHONE), an alarm page (TYPE_SYSTEM_ALERT), a floating page (TYPE_APPLICATION_OVERLAY), etc. Each display type has a different display mode and display level. For example, if the display type of other application pages is a phone dialing page, the target display type can be determined as a floating page. Then, the vehicle computer can generate parameter information based on the first page and the target display type.
[0046] S202: Based on a preset interface, receive parameter information transmitted by the application.
[0047] Exemplarily, the vehicle computer can transmit parameter information to the vehicle computer system by using a preset interface based on the application, and then the vehicle computer system can receive the parameter information transmitted by the application based on the preset interface.
[0048] S203: Determine the first page and the second page according to the parameter information.
[0049] In some possible implementations, as mentioned above, the parameter information may directly include the first page and the second page, and then the vehicle computer may receive the first page and the second page indicated in the parameter information.
[0050] In some possible implementations, the parameter information may include the first page and the target display type, see Figure 3 As shown, Figure 3 The flowchart of the third embodiment of the method for switching the display level of the application page provided by the present invention may include the following steps:
[0051] S2031. Determine, according to the target display type, whether the application has permission to display a page of the target display type.
[0052] Exemplarily, the above target display type is used to characterize the display type of the page, for example, it may include a normal application page (TYPE_APPLICATION), an application startup page (TYPE_APPLICATION_STARTING), a phone dialing page (TYPE_PHONE), an alarm page (TYPE_SYSTEM_ALERT), a floating page (TYPE_APPLICATION_OVERLAY), etc. Each display type has a different display mode and display level, and each display type page has different permission requirements. For example, a floating page can be displayed on top of other application pages, and an alarm page requires system-level permissions. Therefore, the vehicle computer can determine whether the application has the permission to display the page of the target display type based on the target display type.
[0053] For example, each application has a permission list, and the vehicle computer can determine whether the application has the permission to display a page of the target display type based on the permission list of the application.
[0054] If yes, execute step S2032; if no, output a prompt message to prompt the user that the page switching fails.
[0055] S2032. Determine the target display level according to the target display type.
[0056] Exemplarily, there is a mapping relationship between the target display type and the target display level, so the target display level can be determined based on the mapping relationship and the target display type.
[0057] S2033: Determine whether there is a second object in the target display level.
[0058] Exemplarily, the second object is used to manage the state and properties of the application page. The second object may be, for example, a windowstate object, which has a one-to-one correspondence with the page. It should be understood that each display level may correspond to multiple windowstate objects. Therefore, the vehicle computer may determine whether the target display level has the second object based on the mapping relationship between the target display level and the windowstate object. This step is intended to determine whether the target display level has an existing page.
[0059] If yes, execute step S2034, if no, execute S2035.
[0060] S2034: Determine the page corresponding to the second object as the second page.
[0061] For example, if it is determined that the target display level has a second object, a page corresponding to the second object may be randomly determined as the second page.
[0062] S2035: Add a second object, and determine the page corresponding to the second object as the second page.
[0063] For example, if it is determined that the target display level does not have a second object, a second object may be added to the target display level, and a page corresponding to the second object may be determined as the second page.
[0064] S204: Determine the second object of the first page.
[0065] Exemplarily, as mentioned above, the second object is used to manage the state and properties of the application page, and there is a one-to-one correspondence between the second object and the page, so the second object corresponding to the first page can be determined based on the correspondence.
[0066] S205: Determine the first object of the first page based on the second object of the first page.
[0067] Exemplarily, the first object and the second object are associated with each other through reference. For example, the second object may include a method or property that allows access to the first object, and the display position and display level of the page can be controlled through the first object. Therefore, the vehicle computer can determine the first object of the first page through its reference relationship based on the second object of the first page.
[0068] S206: Determine the second object of the second page.
[0069] It should be noted that this step is similar to the aforementioned step S204 and will not be described in detail here.
[0070] S207: Based on the second object of the second page, determine the first object of the parent page of the second page.
[0071] Exemplarily, pages are organized in a tree structure with a complex hierarchical relationship. The first object of a parent page can be used to manage the display order of its child pages, and the hierarchical relationship between the parent page and the child pages will affect the calculation of the display order (Z-order). If the first object of the child page is directly referenced, the first page after subsequent switching to the target display level may be obscured by other sibling pages of the target display level. Therefore, referencing the first object of the parent page can ensure the display order so that it will not be obscured by other sibling pages.
[0072] In some possible implementations, the vehicle computer can determine the parent page of the second page based on the reference relationship of the parent page of the second object of the first page, and then determine the second object of the parent page, and determine the first object of the parent page based on the reference relationship of the second object of the parent page.
[0073] S208: Determine the first object of the parent page of the second page as the first object of the second page.
[0074] It should be noted that in the embodiment of the present invention, the execution order of steps S204-S205 and steps S206-S208 can be sequential execution or parallel execution.
[0075] S209: Set the first object of the second page as the parent node of the first object of the first page.
[0076] In this embodiment, the vehicle computer can respond to the page switching instruction, generate parameter information based on the application, and pass the parameter information to the system layer for processing based on the preset interface. The vehicle computer then determines the first page and the second page based on the parameter information, and then determines the first object of the first page and the first object of the second page, and sets the first object of the second page as the parent node of the first object of the first page, so as to display the first page on the target display level. In this way, the vehicle computer can switch the display level of the first page by modifying the display properties of the first page, without re-rendering the content of the first page on the page of the target display level, which improves the switching efficiency and does not cause the screen flickering during the switching process, thereby improving the user experience. In addition, in this way, the system layer of the vehicle computer does not need to perform the rendering process, saving the resource occupancy rate.
[0077] Figure 4 FIG. 1 is a schematic diagram showing a structure of an embodiment of a device for switching the display level of an application page provided by the present invention. Figure 4 As shown, the device 300 includes:
[0078] The determination module 301 is used to determine a first page and a second page in response to a page switching instruction; wherein the page switching instruction is used to instruct to switch the display level of the page; the first page is an application page of the current display level, and the second page is an application page of the target display level;
[0079] The processing module 302 is used to bind the first object of the second page to the first object of the first page to switch the first page to be displayed on the target display level; wherein the first object is an object used to control the display of an application page.
[0080] In some possible implementations, the processing module 302 is specifically configured to:
[0081] The first object of the second page is set as a parent node of the first object of the first page.
[0082] In some possible implementations, the determination module 301 is specifically configured to:
[0083] In response to a page switching instruction, generating parameter information based on the application; wherein the parameter information is used to indicate switching information of the application page;
[0084] Based on a preset interface, receiving the parameter information transmitted by the application;
[0085] The first page and the second page are determined according to the parameter information.
[0086] In some possible implementations, the parameter information includes a target display type; the determination module 301 is specifically configured to:
[0087] If it is determined that the application has the authority to display a page of the target display type according to the target display type, then the target display level is determined according to the target display type;
[0088] If it is determined that the target display level has a second object, the page corresponding to the second object is determined as the second page; wherein the second object is used to manage the state and properties of the application page;
[0089] If it is determined that the target display level does not have the second object, the second object is added, and the page corresponding to the second object is determined as the second page.
[0090] In some possible implementations, the parameter information includes a second page, and the determination module 301 is specifically configured to:
[0091] In response to a page switching instruction, determining whether there is a page at the target display level based on the application;
[0092] If not, based on the application, a second page at the target display level is added, and the parameter information is generated according to the second page.
[0093] In some possible implementations, the determination module 301 is specifically configured to:
[0094] A second page indicated in the parameter information is received.
[0095] In some possible implementations, the processing module 302 may also be used to:
[0096] Determine a second object of the second page; wherein the second object is used to manage the state and properties of the application page;
[0097] Based on the second object of the second page, determining the first object of the parent page of the second page;
[0098] The first object of the parent page of the second page is determined as the first object of the second page.
[0099] In some possible implementations, the processing module 302 may also be used to:
[0100] Determine a second object of the first page; wherein the second object is used to manage the state and properties of the application page;
[0101] Based on the second object of the first page, a first object of the first page is determined.
[0102] From the above, it can be seen that the device for switching the display level of the application page provided in the embodiment of the present invention, when switching the application page, only needs to modify the display properties of the first page to display the first page on the target display level, without the need to re-render the content of the first page on the page corresponding to the target display level, thereby improving the page switching efficiency.
[0103] Figure 5 The schematic diagram of the structure of the embodiment of the vehicle computer provided by the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the vehicle computer.
[0104] like Figure 5 As shown, the vehicle computer may include: a processor (processor) 402 , a communications interface (CommunicationsInterface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0105] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned embodiment of the method for switching the display level of the application page.
[0106] Specifically, the program 410 may include program code including computer executable instructions.
[0107] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the vehicle computer may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0108] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0109] The program 410 can be specifically called by the processor 402 to enable the vehicle computer to perform the following operations:
[0110] In response to a page switching instruction, determining a first page and a second page; wherein the page switching instruction is used to instruct to switch the display level of the page; the first page is an application page of the current display level, and the second page is an application page of the target display level;
[0111] The first object of the second page is bound to the first object of the first page to switch the first page to be displayed on the target display level; wherein the first object is an object used to control the display of an application page.
[0112] In some possible implementations, binding the first object of the second page to the first object of the first page includes:
[0113] The first object of the second page is set as a parent node of the first object of the first page.
[0114] In some possible implementations, determining the first page and the second page in response to the page switching instruction includes:
[0115] In response to a page switching instruction, generating parameter information based on the application; wherein the parameter information is used to indicate switching information of the application page;
[0116] Based on a preset interface, receiving the parameter information transmitted by the application;
[0117] The first page and the second page are determined according to the parameter information.
[0118] In some possible implementations, the parameter information includes a target display type; and determining the second page according to the parameter information includes:
[0119] If it is determined that the application has the authority to display a page of the target display type according to the target display type, then the target display level is determined according to the target display type;
[0120] If it is determined that the target display level has a second object, the page corresponding to the second object is determined as the second page; wherein the second object is used to manage the state and properties of the application page;
[0121] If it is determined that the target display level does not have the second object, the second object is added, and the page corresponding to the second object is determined as the second page.
[0122] In some possible implementations, the parameter information includes a second page, and generating the parameter information based on the application in response to the page switching instruction includes:
[0123] In response to a page switching instruction, determining whether there is a page at the target display level based on the application;
[0124] If not, based on the application, a second page at the target display level is added, and the parameter information is generated according to the second page.
[0125] In some possible implementations, determining the second page according to the parameter information includes:
[0126] A second page indicated in the parameter information is received.
[0127] In some possible implementations, the method further includes:
[0128] Determine a second object of the second page; wherein the second object is used to manage the state and properties of the application page;
[0129] Based on the second object of the second page, determining the first object of the parent page of the second page;
[0130] The first object of the parent page of the second page is determined as the first object of the second page.
[0131] In some possible implementations, the method further includes:
[0132] Determine a second object of the first page; wherein the second object is used to manage the state and properties of the application page;
[0133] Based on the second object of the first page, a first object of the first page is determined.
[0134] From the above, it can be seen that the vehicle computer provided by the embodiment of the present invention, when switching application pages, only needs to modify the display properties of the first page to display the first page on the target display level, without re-rendering the content of the first page on the page corresponding to the target display level, thereby improving the page switching efficiency.
[0135] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on a device for switching the display level of a vehicle computer / application page, the device for switching the display level of the vehicle computer / application page executes the method for switching the display level of an application page in any of the above-mentioned method embodiments.
[0136] The executable instructions can be specifically used to enable the display level switching device of the vehicle computer / application page to perform the following operations:
[0137] In response to a page switching instruction, determining a first page and a second page; wherein the page switching instruction is used to instruct to switch the display level of the page; the first page is an application page of the current display level, and the second page is an application page of the target display level;
[0138] The first object of the second page is bound to the first object of the first page to switch the first page to be displayed on the target display level; wherein the first object is an object used to control the display of an application page.
[0139] In some possible implementations, binding the first object of the second page to the first object of the first page includes:
[0140] The first object of the second page is set as a parent node of the first object of the first page.
[0141] In some possible implementations, determining the first page and the second page in response to the page switching instruction includes:
[0142] In response to a page switching instruction, generating parameter information based on the application; wherein the parameter information is used to indicate switching information of the application page;
[0143] Based on a preset interface, receiving the parameter information transmitted by the application;
[0144] The first page and the second page are determined according to the parameter information.
[0145] In some possible implementations, the parameter information includes a target display type; and determining the second page according to the parameter information includes:
[0146] If it is determined that the application has the authority to display a page of the target display type according to the target display type, then the target display level is determined according to the target display type;
[0147] If it is determined that the target display level has a second object, the page corresponding to the second object is determined as the second page; wherein the second object is used to manage the state and properties of the application page;
[0148] If it is determined that the target display level does not have the second object, the second object is added, and the page corresponding to the second object is determined as the second page.
[0149] In some possible implementations, the parameter information includes a second page, and generating the parameter information based on the application in response to the page switching instruction includes:
[0150] In response to a page switching instruction, determining whether there is a page at the target display level based on the application;
[0151] If not, based on the application, a second page at the target display level is added, and the parameter information is generated according to the second page.
[0152] In some possible implementations, determining the second page according to the parameter information includes:
[0153] A second page indicated in the parameter information is received.
[0154] In some possible implementations, the method further includes:
[0155] Determine a second object of the second page; wherein the second object is used to manage the state and properties of the application page;
[0156] Based on the second object of the second page, determining the first object of the parent page of the second page;
[0157] The first object of the parent page of the second page is determined as the first object of the second page.
[0158] In some possible implementations, the method further includes:
[0159] Determine a second object of the first page; wherein the second object is used to manage the state and properties of the application page;
[0160] Based on the second object of the first page, a first object of the first page is determined.
[0161] From the above, it can be seen that the computer-readable storage medium provided in an embodiment of the present invention stores at least one executable instruction. When the executable instruction is run on a switching device for the display level of a vehicle computer / application page, when switching the application page, it is only necessary to modify the display properties of the first page to display the first page on the target display level. There is no need to re-render the content of the first page on the page corresponding to the target display level, thereby improving the page switching efficiency.
[0162] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0163] The methods disclosed in the various method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.
[0164] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0165] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0166] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A method for switching the display level of an application page, characterized in that: The method comprises: In response to a page switching instruction, determining a first page and a second page; wherein the page switching instruction is used to instruct to switch the display level of the page; the first page is an application page of the current display level, and the second page is an application page of the target display level; The first object of the second page is bound to the first object of the first page to switch the first page to be displayed on the target display level; wherein the first object is an object used to control the display of an application page.
2. The method according to claim 1, characterized in that The binding the first object of the second page to the first object of the first page includes: The first object of the second page is set as a parent node of the first object of the first page.
3. The method according to claim 1, characterized in that The step of determining the first page and the second page in response to the page switching instruction includes: In response to a page switching instruction, generating parameter information based on the application; wherein the parameter information is used to indicate switching information of the application page; Based on a preset interface, receiving the parameter information transmitted by the application; The first page and the second page are determined according to the parameter information.
4. The method according to claim 3, characterized in that The parameter information includes a target display type; Determining the second page according to the parameter information includes: If it is determined that the application has the authority to display a page of the target display type according to the target display type, then the target display level is determined according to the target display type; If it is determined that the target display level has a second object, the page corresponding to the second object is determined as the second page; wherein the second object is used to manage the state and properties of the application page; If it is determined that the target display level does not have the second object, the second object is added, and the page corresponding to the second object is determined as the second page.
5. The method according to claim 3, characterized in that: The parameter information includes a second page, and the generating the parameter information based on the application in response to the page switching instruction includes: In response to a page switching instruction, determining whether there is a page at the target display level based on the application; If not, based on the application, a second page at the target display level is added, and the parameter information is generated according to the second page.
6. The method according to claim 5, characterized in that Determining the second page according to the parameter information includes: A second page indicated in the parameter information is received.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Determine a second object of the second page; wherein the second object is used to manage the state and properties of the application page; Based on the second object of the second page, determining the first object of the parent page of the second page; The first object of the parent page of the second page is determined as the first object of the second page.
8. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Determine a second object of the first page; wherein the second object is used to manage the state and properties of the application page; Based on the second object of the first page, a first object of the first page is determined.
9. A device for switching the display level of an application page, characterized in that: The device comprises: A determination module, configured to determine a first page and a second page in response to a page switching instruction; wherein the page switching instruction is used to instruct to switch the display level of the page; the first page is an application page of the current display level, and the second page is an application page of the target display level; A processing module is used to bind the first object of the second page to the first object of the first page to switch the first page to be displayed on the target display level; wherein the first object is an object used to control the display of an application page.
10. A vehicle computer, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the method for switching the display level of the application page as described in any one of claims 1-8.
