Interactive interface window management method and device, terminal equipment and storage medium

By using window configuration files and scene integer variables in the window management service of the terminal device, windows that do not need to be displayed in three-dimensional interactive scenarios are determined and removed, which solves the problem of low window hiding efficiency in the prior art, and achieves an efficient window hiding effect.

CN119883053AActive Publication Date: 2025-04-25ZHUHAI MOJIE TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411879703.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-25
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

The prior art cannot effectively cover windows that need to be hidden in three-dimensional interactive scenarios, resulting in low window hiding efficiency.

Method used

When the window management service of the terminal device is started, the window configuration file of the target application is written into the window configuration container. The configuration file includes the type description bits of each window type and a list of mutually exclusive windows for each scene type. When adding a new window, read the type description bit of the new window from the window configuration container to update the scene integer variable, determine the hidden window list based on the scene integer variable and the list of mutually exclusive windows, and remove these windows in the interactive interface.

Benefits of technology

It realizes the effective hiding of windows that do not need to be displayed in three-dimensional interactive scenarios, improves the efficiency of window hiding, and avoids the failure of masked windows in three-dimensional scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883053A_ABST
    Figure CN119883053A_ABST
Patent Text Reader

Abstract

The invention provides an interactive interface window management method and device, terminal equipment and a computer readable storage medium. The interactive interface window management method comprises the steps that when a window management service of terminal equipment is started, a window configuration file of a target application of the terminal equipment is written into a window configuration container, and the window configuration file comprises type description bits of window types and mutually exclusive window lists of scene types; when a new window is added in the interactive interface of the target application, reading a type description bit of the new window from the window configuration container to update a scene integer variable of the window management service; determining a hidden window list of the scene integer variable according to the first updated variable value of the scene integer variable and the mutually exclusive window list of each scene type; and removing the windows in the hidden window list in the interactive interface. The window can be effectively hidden, and the window hiding efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of terminal devices, and in particular to an interactive interface window management method, device, terminal device and computer-readable storage medium. Background Art

[0002] With the rapid development of mobile Internet, multiple applications can be installed on current user terminals, and each application can realize different functions, thereby enhancing the user experience. The window processing of the application, such as hiding sometimes and showing sometimes, is an important management process for realizing the interactive function of the terminal interface. In the related technology, when the application processes the display and hiding of the window, it adopts the method of adding an additional mask window to cover the window to be hidden. However, the method of hiding the window by the mask window is only applicable to the two-dimensional plane interaction scene, and it cannot effectively cover the window to be hidden in the three-dimensional interaction scene. Summary of the invention

[0003] The present application provides an interactive interface window management method, apparatus, terminal device and computer-readable storage medium, which can effectively hide windows and improve window hiding efficiency.

[0004] In a first aspect, the present application provides an interactive interface window management method, the method comprising:

[0005] When the window management service of the terminal device is started, a window configuration file of the target application of the terminal device is written into the window configuration container, wherein the window configuration file includes a type description bit of each window type and a mutually exclusive window list of each scene type;

[0006] When a new window is added to the interactive interface of the target application, the type description of the new window is read from the window configuration container to update the scene integer variable of the window management service;

[0007] Determine a hidden window list of the scene integer variable according to the first updated variable value of the scene integer variable and the mutually exclusive window lists of each scene type;

[0008] In the interactive interface, windows in the hidden window list are removed.

[0009] In a second aspect, the present application provides an interactive interface window management device, the interactive interface window management device comprising:

[0010] a configuration unit, configured to write a window configuration file of a target application of the terminal device into a window configuration container when a window management service of the terminal device is started, wherein the window configuration file includes a type description bit of each window type and a mutually exclusive window list of each scene type;

[0011] An updating unit, configured to read the type description of the new window from the window configuration container and update the scene integer variable of the window management service when a new window is added to the interactive interface of the target application;

[0012] A management unit, configured to determine a hidden window list of the scene integer variable according to a first updated variable value of the scene integer variable and a mutually exclusive window list of each scene type;

[0013] The management unit is further used to remove windows in the hidden window list in the interactive interface.

[0014] In a third aspect, the present application further provides a terminal device, comprising a processor and a memory, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, it executes any one of the interactive interface window management methods provided in the present application.

[0015] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and the computer program is loaded by a processor to execute the interactive interface window management method.

[0016] The present application writes a window configuration file of a target application of a terminal device into a window configuration container when a window management service of the terminal device is started, wherein the window configuration file includes a type description bit of each window type and a mutually exclusive window list of each scene type; when a new window is added to an interactive interface of the target application, the type description bit of the new window is read from the window configuration container to update a scene integer variable of the window management service; a hidden window list of the scene integer variable is determined according to a first updated variable value of the scene integer variable and a mutually exclusive window list of each scene type; and windows in the hidden window list are removed in the interactive interface. In this way, on the one hand, a type description bit can be set for each window type in advance through the window configuration file, and a mutually exclusive window list of each scene type mapping can be established. When a new window is added to the interactive interface of the target application, the window configuration file can be used to identify the type description bit of the new window to update the scene integer variable of the window management service, so that the variable value of the scene integer variable changes. Since different variable values ​​of the scene integer variable can be used to identify different scene types, the current scene type can be identified, and then the hidden window list of the scene integer variable can be determined according to the first updated variable value of the scene integer variable and the mutually exclusive window list of each scene type, so as to effectively and comprehensively hide the windows that do not need to be displayed in the current scene; on the other hand, the window type is identified by the type description bit, and the scene type is identified by the scene integer variable, so that the current scene type and the retrieval window can be quickly determined, avoiding the problem of window traversal and window type string type identification comparison, thereby improving efficiency; on the third hand, since the hidden window list can be located, the window can be hidden by removing the window, so as to effectively hide the windows that do not need to be displayed in the three-dimensional interactive scene, and avoid the problem that the windows that need to be hidden cannot be effectively covered in the three-dimensional interactive scene. Therefore, the embodiment of the present application can effectively hide the window and improve the efficiency of window hiding. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present application;

[0019] Figure 2 It is a flow chart of the interactive interface window management method provided in the embodiment of the present application;

[0020] Figure 3This is a schematic diagram illustrating an embodiment of the window hiding process in the embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of the structure of an embodiment of the interactive interface window management device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0023] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0024] In the description of the embodiments of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0025] In order to enable any person skilled in the art to implement and use the present application, the following description is provided. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art can recognize that the present application can also be implemented without using these specific details. In other examples, the known process will not be elaborated in detail to avoid unnecessary details that make the description of the present application embodiment obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in accordance with the embodiments of the present application.

[0026] The embodiment of the present application provides an interactive interface window management method, device, terminal device and computer-readable storage medium. The interactive interface window management device can be integrated in the terminal device. The terminal device can be a mobile phone, a computer, etc.

[0027] The executor of the interactive interface window management method of the embodiment of the present application may be the interactive interface window management device provided in the embodiment of the present application, or a terminal device integrating the interactive interface window management device, wherein the interactive interface window management device may be implemented in hardware or software.

[0028] Some embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0029] Figure 1 It is a schematic block diagram of the structure of a terminal device provided in an embodiment of the present application.

[0030] like Figure 1 As shown, the terminal device 100 includes a processor 101 and a memory 102, and the processor 101 and the memory 102 are connected via a bus 103, such as an I2C (Inter-integrated Circuit) bus.

[0031] Specifically, the processor 101 is used to provide computing and control capabilities to support the operation of the entire terminal device 100. The processor 101 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0032] Specifically, the memory 102 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.

[0033] Those skilled in the art will understand that Figure 1 The structure shown in the figure is merely a block diagram of a partial structure related to the embodiment scheme of the present application, and does not constitute a limitation on the terminal device to which the embodiment scheme of the present application is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0034] The processor 101 is used to run the computer program stored in the memory 102, and implement any one of the interactive interface window management methods provided in the embodiments of the present application when executing the computer program. For example, the processor 101 is used to run the computer program stored in the memory 102, and can implement the following steps when executing the computer program:

[0035] When the window management service of the terminal device is started, the window configuration file of the target application of the terminal device is written into the window configuration container, wherein the window configuration file includes the type description bits of each window type and the mutually exclusive window list of each scene type; when a new window is added in the interactive interface of the target application, the type description bits of the new window are read from the window configuration container to update the scene integer variable of the window management service; according to the first updated variable value of the scene integer variable and the mutually exclusive window list of each scene type, the hidden window list of the scene integer variable is determined; and the windows in the hidden window list are removed in the interactive interface.

[0036] In some embodiments, the window configuration file further includes type description information of each scene type, and the processor 101 is used to run a computer program stored in the memory 102, and when executing the computer program, the following steps can be implemented:

[0037] According to the first updated variable value, the type description information of each scene type in the window configuration container is queried to obtain the matching scene type of the scene integer variable; and the mutually exclusive window list associated with the matching scene type is read from the window configuration container as the hidden window list of the scene integer variable.

[0038] In some embodiments, the processor 101 is used to run a computer program stored in the memory 102, and when executing the computer program, the following steps may be implemented:

[0039] When a new window is added to the interactive interface of the target application, the type description bit of the new window is read from the window configuration container; the type description bit of the new window and the existing type description bit of the scene integer variable are bitwise ORed to write the type description bit of the new window into the scene integer variable, so as to update the scene integer variable.

[0040] In some embodiments, the processor 101 is used to run a computer program stored in the memory 102, and when executing the computer program, the following steps may be implemented:

[0041] When a window is removed from the interactive interface, the scene integer variable is updated based on the type description bit of the removed window to obtain a second updated variable value of the scene integer variable.

[0042] In some embodiments, the processor 101 is used to run a computer program stored in the memory 102, and when executing the computer program, the following steps may be implemented:

[0043] According to the principle that each type description bit occupies one binary bit, the type description bit of each window type involved in the target application is set; the display window list and the mutually exclusive window list of each scene type of the target application are obtained; based on the type description bit of each window in the display window list of each scene type, a mapping relationship between the display window list of each scene type and the type description information of each scene type is established; based on the type description bit of each window in the mutually exclusive window list of each scene type, a mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type is established; the type description bit of each window type, the mapping relationship between the display window list of each scene type and the type description information of each scene type, and the mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type are written into a file to form the window configuration file.

[0044] In some embodiments, the processor 101 is used to run a computer program stored in the memory 102, and when executing the computer program, the following steps may be implemented:

[0045] The type description bit of the window type is configured according to the window display priority of the window type, wherein the higher the window display priority of the window type is, the larger the type description bit of the window type is.

[0046] In some embodiments, the processor 101 is used to run a computer program stored in the memory 102, and when executing the computer program, the following steps may be implemented:

[0047] The type description bit of the third-party application window outside the target application is set to a default value.

[0048] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the terminal device described above can refer to the corresponding process in the following interactive interface window management method embodiment, which will not be repeated here.

[0049] In the following, Figure 1The terminal device shown in is used as the execution subject of the interactive interface window management method as an example to introduce the interactive interface window management method provided by the embodiment of the present application in detail. For the sake of simplicity and convenience of description, the execution subject will be omitted in the subsequent method embodiments. Figure 1 The scenario is only used to explain the interactive interface window management method provided in the embodiment of the present application, but does not constitute a limitation on the application scenario of the interactive interface window management method provided in the embodiment of the present application.

[0050] See also Figure 2 , Figure 2 201 to 203, wherein:

[0051] 201. When a window management service of a terminal device is started, a window configuration file of a target application of the terminal device is written into a window configuration container.

[0052] The window configuration file includes a type description bit of each window type, type description information of each scene type, and a mutually exclusive window list of each scene type.

[0053] Among them, the terminal device can be a mobile phone, a computer, etc.

[0054] The target application is an application to be window managed, and the target application may be a game application, a short video application, etc. The target application may provide multiple windows, as shown in Table 1, and the mutual exclusion rules between windows when the target application displays the window may be set according to actual business needs.

[0055] The window management service terminal device is used to manage system services of windows. For example, the window management service can be WMS (Window Manager Service) of the Android system. WMS is a service in the Android system that is specifically responsible for window management, window animation, Surface management, etc.

[0056] Exemplarily, the window configuration file can be obtained through the following steps A1 to A5:

[0057] A1. According to the principle that each type description bit occupies one binary bit, the type description bit of each window type involved in the target application is set.

[0058] A2. Obtain a display window list and a mutually exclusive window list of each scenario type of the target application.

[0059] A3. Based on the type description bit of each window in the display window list of each scene type, a mapping relationship between the display window list of each scene type and the type description information of each scene type is established.

[0060] A4. Based on the type description bit of each window in the mutually exclusive window list of each scene type, a mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type is established.

[0061] A5. Write the type description bits of each window type, the mapping relationship between the display window list of each scene type and the type description information of each scene type, and the mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type into a file to form the window configuration file.

[0062] Among them, the type description bit of the window type is used to represent the description information of the window type, and the type description bit of the window type can be flexibly set according to actual needs. In some embodiments, the type description bit of each window type can be represented by a binary bit to reduce the memory usage of the type description bit of the window type, improve the recognition speed of the window type and the scene type, and encode the window type by binary bits, so that a scene can be identified by a window set, so that complex window mutual exclusion scenes that may be encountered in 6Dof interaction can be easily dealt with in this way. For example, assuming that there are scene requirements as shown in Table 1 below under 6Dof (six degrees of freedom) interaction, each window type that may be involved in each scene can be represented by a type description bit, as shown in Table 2. Exemplarily, the LayoutParams parameter class can be used to define the type description bit of the window type during the development process. The LayoutParams parameter class is a parameter class used to describe how the view (View) is laid out in Android development. It can be used to define the size and position of the view in its parent view and other layout-related attributes.

[0063] As shown in Table 1, it is assumed that the interactive interface of the terminal device has three scenario requirements:

[0064] Table 1

[0065] Scenario show Do not display Scenario 1 Display windows W1 and W2 Do not display windows W3 and W4 Scenario 2 Display windows W1 and W5 Do not display windows W2 and W4 Scene 3 Display windows W4 and W6 Do not display windows W1 and W2

[0066] To this end, for two windows that are not displayed at the same time and hidden at the same time, different type description bits are set to represent two different types of windows. For example, as shown in Table 2, at this time, the windows W1, W2, W3, W4, W5, and W6 can be set with the following type description bits:

[0067] Table 2

[0068] window Type description bits (hexadecimal) Type description bits (binary) Window W1 0x01 000001 Window W2 0x02 000010 Window W3 0x04 000100 Window W4 0x08 001000 Window W5 0x10 010000 Window W6 0x20 100000

[0069] Therefore, by setting a type description bit for each window, it is convenient to identify the window, provide strong support for the subsequent window or operation recognition scene category, and thus facilitate quick identification of the current scene of the interactive interface of the terminal device.

[0070] Among them, the type description information of the scene type is the description information used to represent the scene type. A scene type corresponds to a set of windows to be displayed, and the type description bits of all windows to be displayed by a scene type can be operated or (i.e., bitwise or) to obtain the result as the type description information of the scene type. For example, for the scenes and windows shown in Tables 1 and 2, the type description information for scene 1 can be obtained: W1.type|W2.type=0x03; for scene 2, the type description information can be obtained: W1.type|W5.type=0x11; for scene 3: W4.type|W6.type=0x28; wherein W1.type, W2.type, W3.type, W4.type, W5.type, W5.type respectively represent the type description bits of window W1, window W2, window W3, window W4, window W5, and window W6, and 0x03, 0x11, and 0x28 respectively represent the type description information of scenes 1, 2, and 3. Therefore, based on the type description bit of each window in the display window list of each scene type, a mapping relationship between the display window list of each scene type and the type description information of each scene type can be established; by using the type description bits of all windows to be displayed for a scene type to perform an OR operation result as the type description information of the scene type, a type description information is set for each scene, which can facilitate the identification of the scene type, thereby facilitating the rapid identification of which scene the interactive interface of the terminal device is currently in. Therefore, both the window type and the scene type can be converted into an integer value, which is very convenient for window management services such as WMS to determine scenes and retrieve windows, avoiding window traversal and String type comparison of window titles, and improving efficiency.

[0071] Among them, the mutually exclusive window list of the scene type is a list of windows that are not displayed in the scene type. For example, as shown in Table 1, windows W3 and W4 are not displayed in scene 1, so the mutually exclusive window list of scene 1 (corresponding type description information 0x03) is W3 and W4; windows W2 and W4 are not displayed in scene 2, so the mutually exclusive window list of scene 2 (corresponding type description information 0x11) is W1 and W2; windows W3 and W4 are not displayed in scene 3, so the mutually exclusive window list of scene 3 (corresponding type description information 0x28) is W3 and W4, as shown in Table 3.

[0072] Table 3

[0073] Scene Type Mutually exclusive window list 0x03 W3, W4 0x11 W2, W4 0x28 W1, W2

[0074] Therefore, based on the type description bit of each window in the mutually exclusive window list of each scene type, a mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type can be established; by establishing a mutually exclusive window list for each scene type, it is possible to easily identify the windows that need to be hidden and not displayed for each scene type, thereby facilitating the quick identification of the windows that need to be hidden and removed.

[0075] Afterwards, the type description bits of the window types, the mapping relationship between the display window list of each scene type and the type description information of each scene type, and the mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type are written into a file to form a window configuration file of the target application. The window configuration file obtained at this time includes the type description bits of each window type, the type description information of each scene type and the mutually exclusive window list of each scene type.

[0076] When the window management service of the terminal device is started, the window configuration file can be written into the window configuration container. In this way, the type description bit of each window type, the type description information of each scene type and the mutually exclusive window list of each scene type can be written into the window configuration container to facilitate subsequent window identification and scene identification.

[0077] 202. When a new window is added to the interactive interface of the target application, the type description of the new window is read from the window configuration container to update the scene integer variable of the window management service.

[0078] The new window may be a window provided by the target application or a window of a third-party application.

[0079] After the target application is opened, the interactive interface of the target application will be displayed. One or more windows can be added or deleted on the interactive interface of the target application according to user operations or system control. When a new window is added to the interactive interface of the target application, the window management service of the terminal device will read the type description of the new window from the window configuration container to update the scene integer variable of the window management service. Therefore, by updating the scene integer variable of the window management service, the variable value of the scene integer variable changes, so that different scene types are identified through the change of the variable value of the scene integer variable, and the real-time dynamic update and identification of different scene types according to the addition or deletion of windows is realized, providing accurate data basis for subsequent window hiding.

[0080] There are many ways to implement step 202, which include, for example:

[0081] In some embodiments, when a new window is added to the interactive interface of the target application, the type description bit of the new window is read from the window configuration container; the type description bit of the new window and the existing type description bit of the scene integer variable are bitwise ORed to write the type description bit of the new window into the scene integer variable, so as to update the scene integer variable. For example, before adding a new window, window W1 is displayed in the interactive interface, and the variable value of the scene integer variable currentScene is: W1.type, that is, the existing type description bit W1.type in the scene integer variable; when adding a new window W2, the type description bit of each window type is queried from the window configuration file written in the window configuration container, so as to find the type description bit W2.type of the new window W2; at this time, the type description bit W2.type of the new window W2 is bitwise ORed with the scene integer variable currentScene, so as to write the type description bit W2.type of the new window W2 into the scene integer variable, so as to update the variable value of the scene integer variable to: W1.type|W2.type. Thus, the type description bits of multiple window types are merged into one integer variable through a bitwise OR operation, so that each window type can exist independently without interfering with each other.

[0082] The existing type description bit refers to the type description bit that has been written into the scene integer variable.

[0083] In some embodiments, when a new window is added to the interactive interface of the target application, the type description bit of the new window is read from the window configuration container; the type description bit of the new window is directly written into the scene integer variable to update the scene integer variable. For example, before adding a new window, window W4 is displayed in the interactive interface, and the variable value of the scene integer variable currentScene is: W4.type, that is, the existing type description bit W4.type in the scene integer variable; when adding a new window W6, the type description bit of each window type is queried from the window configuration file written in the window configuration container, so as to find the type description bit W6.type of the new window W6; at this time, the type description bit W6.type of the new window W6 is directly written into the scene integer variable currentScene to update the variable value of the scene integer variable to: W4.type, W6.type.

[0084] 203. Determine a hidden window list of the scene integer variable according to the first updated variable value of the scene integer variable and the mutually exclusive window lists of each scene type.

[0085] The first updated variable value refers to the updated variable value of the scene integer variable after the scene integer variable of the window management service is updated by using the type description bit of the new window.

[0086] Exemplarily, in step 203, the type description information of each scene type in the window configuration container can be queried according to the first updated variable value to obtain the matching scene type of the scene integer variable; and the mutually exclusive window list associated with the matching scene type is read from the window configuration container as the hidden window list of the scene integer variable. For example, please refer to Table 1, Table 2 and Table 3. Assuming that the first updated variable value of the scene integer variable is W1.type|W2.type, first, the type description information of each scene type in the window configuration container is queried through the window management service, and the type description information identical to the first updated variable value W1.type|W2.type is queried, and the scene type 0x03 corresponding to the type description information identical to the first updated variable value W1.type|W2.type is used as the matching scene type of the scene integer variable; then, the mutually exclusive window list of each scene type in the window configuration container is queried, and the mutually exclusive window list (W3, W4) associated with the matching scene type 0x03 of the scene integer variable is queried as the hidden window list of the scene integer variable 0x03.

[0087] 204. Remove the windows in the hidden window list in the interactive interface.

[0088] Exemplarily, the window management service can detect whether the window currently displayed on the interactive interface includes a window in the hidden window list based on the window type description bit. If the window currently displayed on the interactive interface includes a window in the hidden window list, each window in the hidden window list is removed from the interactive interface. For example, before adding a new window, window W1 and window W3 are displayed in the interactive interface, and the variable value of the scene integer variable currentScene is: W1.type|W3.type, that is, the existing type description bits W1.type|W3.type in the scene integer variable; when adding a new window W2, the type description bits of each window type are queried from the window configuration file written in the window configuration container, so as to find the type description bits W2.type of the new window W2; at this time, the type description bits W2.type of the new window W2 are or-operated with the scene integer variable currentScene, so as to write the type description bits W2.type of the new window W2 into the scene integer variable, so as to update the variable value of the scene integer variable to: W1.type|W2.type|W3.type; then, through the window management service The type description information of each scene type in the window configuration container is queried, and the type description information of each scene type is compared with the first updated variable value W1.type|W2.type|W3.type to find out the scene type (i.e., the scene type 0x03 corresponding to W1.type|W2.type) in which the first updated variable value W1.type|W2.type|W3.type exists, as the matching scene type of the scene integer variable; then, the mutually exclusive window list of each scene type in the window configuration container is queried, and the mutually exclusive window list (W3, W4) associated with the matching scene type 0x03 of the scene integer variable is queried, as the hidden window list of the scene integer variable 0x03; thereafter, the window W3 in the interactive interface can be removed through the window management service, and only the display window W1 and window W2 are retained.

[0089] When an interactive interface needs to remove certain windows when a certain window is displayed, in the related art, when an application handles the display and hiding of a window, the app generally broadcasts when a window is added, and the corresponding window to be hidden listens to this broadcast, and removes the window after receiving the broadcast. This broadcast mechanism is effective for window management within the application, but when faced with the need to hide a third-party application window, the third-party application window cannot be effectively hidden due to the permission issues of the third-party application. Therefore, hiding the window through the broadcast mechanism is invalid for the scenario where the third-party application window needs to be hidden. Furthermore, in an embodiment of the present application, when setting the type description bit of the window type, the type description bit of the third-party application window outside the target application is set to a default value, such as a default setting of 0x01, so that the third-party application window can uniformly use the default window type, effectively solving the problem of not being able to hide the third-party application window.

[0090] Furthermore, the interactive interface window management method may also include: when a window is removed from the interactive interface, the scene integer variable is updated based on the type description bit of the removed window to obtain a second updated variable value of the scene integer variable. In some embodiments, the type description bit of the removed window in the scene integer variable may be bitwise negated to remove the type description bit of the removed window from the scene integer variable, thereby updating the scene integer variable to obtain the second updated variable value of the scene integer variable. For example, after the window W3 in the interactive interface is removed by the window management service and only the display window W1 and window W2 are retained, the type description bit of the removed window W3 is removed from the scene integer variable to update the variable value of the scene integer variable to: W1.type|W2.type.

[0091] Furthermore, the higher the window display priority of the window type, the larger the type description bit of the window type. Therefore, when multiple windows exist at the same time, the window display priority is determined by the size of the type description bit type. The larger the type description bit type, the higher the window display priority. This design can ensure that high-priority windows can be covered or displayed first when showing or hiding windows.

[0092] The second updated variable value refers to the updated variable value of the scene integer variable after the scene integer variable of the window management service is updated by using the type description bit of the removed window.

[0093] To better understand this embodiment, please refer to Figure 3 The interactive interface window management method is described below with a specific example, as follows:

[0094] 1. First, set different window collections to represent different scenes. For example, in 6Dof interaction, the collection of all windows in the current world space can be represented as a scene.

[0095] 2. Set the window configuration file, including: setting the type description bit type for each window type, performing an OR operation on the type description bits of all display windows of each scene to obtain the result as the type description information of the corresponding scene type, and setting a mutually exclusive window list for each scene type.

[0096] In order to facilitate the identification of the current scene, a type description bit type is added to the window. Each type description bit type only occupies one binary bit. When adding a new window, the type description bit type is set for the window through the LayoutParams parameter class. If not set, the default value is 0x01.

[0097] The window management service WMS hides and displays the window based on the type description bit type.

[0098] Among them, considering the situation where there are several scenarios at the same time, one more strategy is added here: the window with a larger type description bit type has a higher priority.

[0099] According to the previous definition of the scene, the set of all windows in the current world space can be represented as a scene. Therefore, the type description bits of all display windows are bitwise ORed to obtain an integer value, which can be used to represent the scene type.

[0100] Based on the above principles, assume that the following scenario requirements exist under 6Dof interaction:

[0101] Scene 1: Display windows W1 and W2, but do not display windows W3 and W4

[0102] Scene 2: Display windows W1 and W5, but do not display windows W2 and W4

[0103] Scene 3: Display windows W4 and W6, but do not display windows W1 and W2

[0104] W1 represents a third-party application window, and W2, W3, and W4, the type description bit type allocation principle is that windows that are not displayed and hidden at the same time are windows with different type description bits type.

[0105] First, based on the above scenario, you can assign the type description bit type to the window as follows:

[0106] W1:0x01;

[0107] W2:0x02;

[0108] W3:0x04;

[0109] W4:0x08;

[0110] W5:0x10;

[0111] W6:0x20

[0112] Then, you can get the type description information of the scene:

[0113] Scene 1: W1.type|W2.type=0x03

[0114] Scene 2: W1.type|W5.type=0x11

[0115] Scene 3: W4.type|W6.type=0x28

[0116] Next, you can create a mapping from scenes to lists of undisplayed windows, thereby obtaining mutually exclusive window lists for each scene type:

[0117] Scene Type Mutually exclusive window list 0x03 W3, W4 0x11 W2, W4 0x28 W1, W2

[0118] Finally, write the above configuration into a file to form a window configuration file.

[0119] 2. When the window management service WMS is started, the window configuration file is read and saved in the window configuration container named Map.

[0120] 3. When adding a new window to the window management service WMS, the type description bit type of the new window is bitwise ORed into a scene shaping variable named currentScene. When the scene shaping variable currentScene identifies the scene configured in the window configuration container, the mutually exclusive window list is taken out as the hidden window list, and all windows in the list are hidden.

[0121] 4. When the window management service WMS removes the window, if the hidden window list corresponding to the scene is empty at this time, the type description bit corresponding to the window type description bit type is removed from the scene shaping variable currentScene.

[0122] From the above content, it can be seen that when the window management service of the terminal device is started, the window configuration file of the target application of the terminal device is written into the window configuration container, wherein the window configuration file includes the type description bits of each window type and the mutually exclusive window list of each scene type; when a new window is added to the interactive interface of the target application, the type description bits of the new window are read from the window configuration container to update the scene integer variable of the window management service; according to the first updated variable value of the scene integer variable and the mutually exclusive window list of each scene type, the hidden window list of the scene integer variable is determined; and the windows in the hidden window list are removed in the interactive interface. In this way, on the first hand, a type description bit can be set for each window type in advance through the window configuration file, and a mutually exclusive window list of each scene type mapping can be established. When a new window is added to the interactive interface of the target application, the window configuration file can be used to identify the type description bit of the new window for updating the scene integer variable of the window management service. Since different variable values ​​of the scene integer variable can be used to identify different scene types, the current scene type can be identified, and then the hidden window list of the scene integer variable can be determined according to the first updated variable value of the scene integer variable and the mutually exclusive window list of each scene type, so as to effectively and comprehensively hide the windows that do not need to be displayed in the current scene; on the second hand, the window type is identified by the type description bit, and the scene type is identified by the scene integer variable, so that the current scene type and the retrieval window can be quickly determined, avoiding the problem of window traversal and window type string type identification comparison, and improving efficiency; on the third hand, since the hidden window list can be located, the window can be hidden by removing the window, so as to effectively hide the windows that do not need to be displayed in the three-dimensional interactive scene, and avoid the problem that the windows that need to be hidden cannot be effectively covered in the three-dimensional interactive scene. Therefore, the embodiment of the present application can effectively hide the window and improve the efficiency of window hiding.

[0123] In addition, in order to better implement the interactive interface window management method in the embodiment of the present application, based on the interactive interface window management method, the embodiment of the present application also provides an interactive interface window management device, such as Figure 4 FIG. 4 is a schematic diagram of a structure of an embodiment of an interactive interface window management device provided in an embodiment of the present application. The interactive interface window management device 400 includes:

[0124] A configuration unit 401 is used to write a window configuration file of a target application of the terminal device into a window configuration container when a window management service of the terminal device is started, wherein the window configuration file includes a type description bit of each window type and a mutually exclusive window list of each scene type;

[0125] An updating unit 402 is configured to read the type description of the new window from the window configuration container and update the scene integer variable of the window management service when a new window is added to the interactive interface of the target application;

[0126] A management unit 403 is used to determine a hidden window list of the scene integer variable according to the first updated variable value of the scene integer variable and the mutually exclusive window lists of each scene type;

[0127] The management unit 403 is further configured to remove windows in the hidden window list in the interactive interface.

[0128] In some embodiments, the window configuration file further includes type description information of each scene type, and the management unit 403 is specifically used to:

[0129] According to the first updated variable value, query the type description information of each scene type in the window configuration container to obtain the matching scene type of the scene integer variable;

[0130] A mutually exclusive window list associated with the matching scene type is read from the window configuration container as a hidden window list of the scene integer variable.

[0131] In some embodiments, the updating unit 402 is specifically configured to:

[0132] When adding a new window in the interactive interface of the target application, reading the type description bit of the new window from the window configuration container;

[0133] A bitwise OR operation is performed on the type description bit of the new window and the existing type description bit of the scene integer variable to write the type description bit of the new window into the scene integer variable, so as to update the scene integer variable.

[0134] In some embodiments, the management unit 403 is specifically used to:

[0135] When a window is removed from the interactive interface, the scene integer variable is updated based on the type description bit of the removed window to obtain a second updated variable value of the scene integer variable.

[0136] In some embodiments, the interactive interface window management device further includes a configuration unit (not shown in the figure), and the configuration unit includes a configuration unit specifically used for:

[0137] According to the principle that each type description bit occupies one binary bit, the type description bit of each window type involved in the target application is set;

[0138] Obtaining a display window list and a mutually exclusive window list of each scenario type of the target application;

[0139] Based on the type description bit of each window in the display window list of each scene type, establishing a mapping relationship between the display window list of each scene type and the type description information of each scene type;

[0140] Based on the type description bit of each window in the mutually exclusive window list of each scene type, establishing a mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type;

[0141] The type description bits of each window type, the mapping relationship between the display window list of each scene type and the type description information of each scene type, and the mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type are written into a file to form the window configuration file.

[0142] In some embodiments, the configuration unit includes a unit specifically configured to:

[0143] The type description bit of the window type is configured according to the window display priority of the window type, wherein the higher the window display priority of the window type is, the larger the type description bit of the window type is.

[0144] In some implementations, the configuration unit includes a specific function for: setting a type description bit of a third-party application window outside the target application to a default value.

[0145] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above units can refer to the previous interactive interface window management method embodiment, which will not be repeated here.

[0146] A person skilled in the art will appreciate that all or part of the steps in the above-mentioned interactive interface window management method may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0147] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute any interactive interface window management method provided by the embodiment of the present application.

[0148] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0149] In the above-mentioned interactive interface window management device, computer-readable storage medium, and terminal device embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the above-described interactive interface window management device, computer-readable storage medium, terminal device and its corresponding units can refer to the description of the interactive interface window management method in the above embodiment, and will not be repeated here.

[0150] The above is a detailed introduction to an interactive interface window management method, device, terminal device and computer-readable storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for managing an interactive interface window, characterized in that: The method comprises: When the window management service of the terminal device is started, a window configuration file of the target application of the terminal device is written into the window configuration container, wherein the window configuration file includes a type description bit of each window type and a mutually exclusive window list of each scene type; When a new window is added to the interactive interface of the target application, the type description of the new window is read from the window configuration container to update the scene integer variable of the window management service; Determine a hidden window list of the scene integer variable according to the first updated variable value of the scene integer variable and the mutually exclusive window lists of each scene type; In the interactive interface, windows in the hidden window list are removed.

2. The interactive interface window management method according to claim 1, characterized in that: The window configuration file further includes type description information of each scene type, and determining the hidden window list of the scene integer variable according to the first updated variable value of the scene integer variable and the mutually exclusive window list of each scene type includes: According to the first updated variable value, query the type description information of each scene type in the window configuration container to obtain the matching scene type of the scene integer variable; A mutually exclusive window list associated with the matching scene type is read from the window configuration container as a hidden window list of the scene integer variable.

3. The interactive interface window management method according to claim 1, characterized in that: When adding a new window in the interactive interface of the target application, reading the type description of the new window from the window configuration container by the window management service to update the scene integer variable of the window management service includes: When adding a new window in the interactive interface of the target application, reading the type description bit of the new window from the window configuration container; A bitwise OR operation is performed on the type description bit of the new window and the existing type description bit of the scene integer variable to write the type description bit of the new window into the scene integer variable, so as to update the scene integer variable.

4. The interactive interface window management method according to claim 1, characterized in that: The method further comprises: When a window is removed from the interactive interface, the scene integer variable is updated based on the type description bit of the removed window to obtain a second updated variable value of the scene integer variable.

5. The interactive interface window management method according to claim 1, characterized in that: The method further comprises: According to the principle that each type description bit occupies one binary bit, the type description bit of each window type involved in the target application is set; Obtaining a display window list and a mutually exclusive window list of each scenario type of the target application; Based on the type description bit of each window in the display window list of each scene type, establishing a mapping relationship between the display window list of each scene type and the type description information of each scene type; Based on the type description bit of each window in the mutually exclusive window list of each scene type, establishing a mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type; The type description bits of each window type, the mapping relationship between the display window list of each scene type and the type description information of each scene type, and the mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type are written into a file to form the window configuration file.

6. The interactive interface window management method according to claim 1, characterized in that: The method further comprises: The type description bit of the window type is configured according to the window display priority of the window type, wherein the higher the window display priority of the window type is, the larger the type description bit of the window type is.

7. The interactive interface window management method according to claim 1, characterized in that: The method further comprises: The type description bit of the third-party application window outside the target application is set to a default value.

8. An interactive interface window management device, characterized in that: The interactive interface window management device comprises: a configuration unit, configured to write a window configuration file of a target application of the terminal device into a window configuration container when a window management service of the terminal device is started, wherein the window configuration file includes a type description bit of each window type and a mutually exclusive window list of each scene type; An updating unit, configured to read the type description of the new window from the window configuration container and update the scene integer variable of the window management service when a new window is added to the interactive interface of the target application; A management unit, configured to determine a hidden window list of the scene integer variable according to a first updated variable value of the scene integer variable and a mutually exclusive window list of each scene type; The management unit is further used to remove windows in the hidden window list in the interactive interface.

9. A terminal device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the method for managing the interactive interface window according to any one of claims 1 to 7 is executed.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the interactive interface window management method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Displaying and hiding control method and device for application window

    CN105373383A

  • Window interface message management method and related equipment

    CN110879677A

  • Pop-up window management method and device, terminal and storage medium

    CN111597008A

  • Application window list display method and device, electronic equipment and storage medium

    CN114968443A

  • Image transmission and display method, related equipment and system

    CN115480719A