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

By setting type description bits and a list of mutually exclusive windows in the window management service of the terminal device, and using scene integer variables to identify and remove hidden windows, the problem of low window management efficiency in 3D interactive scenes is solved, and efficient window hiding is achieved.

CN119883053BActive Publication Date: 2025-12-12ZHUHAI MOJIE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies cannot effectively hide windows in 3D interactive scenarios, resulting in low window management efficiency.

Method used

When the window management service on the terminal device starts, the window configuration file is written into the window configuration container, including the type description bits of each window type and the mutual exclusion window list of each scene type. The current scene type is identified by the scene integer variable, and the hidden window list is determined and removed based on the mutual exclusion window list.

Benefits of technology

It enables the effective hiding of unnecessary windows in 3D interactive scenarios, improving window hiding efficiency and avoiding the problems of window traversal and string type identification comparison.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883053B_ABST
    Figure CN119883053B_ABST
Patent Text Reader

Abstract

The application provides an interactive interface window management method and device, terminal equipment and computer readable storage medium. The interactive interface window management method comprises: when the window management service of the terminal equipment is started, the window configuration file of the target application of the terminal equipment is written into the window configuration container, wherein the window configuration file comprises type description bits of each window type and a mutual exclusion 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 mutual exclusion window list of each scene type, the hidden window list of the scene integer variable is determined; and the window in the hidden window list is removed in the interactive interface. The application can effectively hide the window and improve the window hiding efficiency.
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 and device, a terminal device, and a computer readable storage medium. BACKGROUND

[0002] With the rapid development of mobile Internet, current user terminals can install various application programs, each of which can implement different functions, thereby enhancing user experience. The window processing of an application program, such as sometimes hiding and sometimes displaying, is an important management process for implementing the interactive function of a terminal interface. In related technologies, when an application program processes the display and hiding of a window, an additional mask window is added to hide the window to be hidden. However, the method of hiding a window by using a mask window is only applicable to a two-dimensional plane interactive scenario and cannot effectively hide the window to be hidden in a three-dimensional interactive scenario. SUMMARY

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

[0004] In a first aspect, the present application provides an interactive interface window management method, which comprises the following steps:

[0005] 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, wherein the window configuration file comprises type description bits of various window types and a mutually exclusive window list of various scene types;

[0006] When a new window is added in an interactive interface of the target application, a 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;

[0007] According to a first updated variable value of the scene integer variable and the mutually exclusive window list of the various scene types, a hidden window list of the scene integer variable is determined;

[0008] Windows in the hidden window list are removed in the interactive interface.

[0009] In a second aspect, the present application provides an interactive interface window management device, which comprises the following components:

[0010] A configuration unit is configured to write 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 comprises type description bits of various window types and a mutually exclusive window list of various scene types;

[0011] an updating unit, configured to read type description bits of a new window from the window configuration container and update a scene integer variable of the window management service when the new window is added in an 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 mutual exclusion window list of each scene type;

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

[0014] In a third aspect, the present application provides a terminal device, which comprises a processor and a memory, the memory stores a computer program, and the processor invokes the computer program in the memory to execute any of the interactive interface window management methods provided in the present application.

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

[0016] This application writes the window configuration file of the target application of the terminal device into a window configuration container when the window management service of the terminal device starts. The window configuration file includes type description bits for each window type and a list of mutually exclusive windows for 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. Based on the first updated value of the scene integer variable and the list of mutually exclusive windows for each scene type, the hidden window list of the scene integer variable is determined. Windows in the hidden window list are removed in the interactive interface. Firstly, the window configuration file allows for pre-setting a type description bit for each window type and establishing a list of mutually exclusive windows mapping to different scene types. When a new window is added to the target application's interface, the window configuration file identifies the new window's type description bit to update the scene integer variable in the window management service, causing the value of the scene integer variable to change. Since different values ​​of the scene integer variable can identify different scene types, the current scene type can be identified. Furthermore, based on the first updated value of the scene integer variable and the list of mutually exclusive windows for each scene type, the list of hidden windows for the scene integer variable can be determined, effectively and comprehensively hiding windows that do not need to be displayed in the current scene. Secondly, the window type is identified by its type description bit, and the scene type by its scene integer variable, allowing for quick determination of the current scene type and window retrieval, avoiding window traversal and string type identification comparison issues, thus improving efficiency. Thirdly, since the list of hidden windows can be located, windows can be hidden using the window removal method, effectively hiding unnecessary windows in a 3D interactive scene, avoiding the problem of not being able to effectively obscure windows that need to be hidden in a 3D interactive scene. Therefore, the embodiments of this application can effectively hide windows and improve window hiding efficiency. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

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

[0019] Figure 2 This is a flowchart illustrating an interactive interface window management method provided in an embodiment of this application;

[0020] Figure 3is an embodiment of a window hiding process in the present application.

[0021] Figure 4 is an embodiment of a window management device in the present application. DETAILED DESCRIPTION

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

[0023] The flowchart shown in the drawings is only an example description, and does not necessarily include all the contents and operations / steps, nor does it necessarily execute in the order described. For example, some operations / steps can be further divided, combined or partially merged, so the actual execution order may be changed according to the actual situation.

[0024] In the description of the embodiments of the present application, it should be understood that the terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can 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 specifically limited.

[0025] In order for any person skilled in the art to be able to implement and use the present application, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that those skilled in the art can realize the present application without using these specific details. In other examples, well-known processes will not be described in detail to avoid unnecessary details making the description of the embodiments of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of principles and features disclosed in the embodiments of the present application.

[0026] The embodiments of the present application provide 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 execution subject of the interactive interface window management method provided in the embodiments of the present application can be the interactive interface window management apparatus provided in the embodiments of the present application or a terminal device integrated with the interactive interface window management apparatus. The interactive interface window management apparatus can be implemented in the form of hardware or software.

[0028] Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments and features in the embodiments can be combined with each other without conflict.

[0029] Figure 1 is a structural schematic block diagram of a terminal device provided in the embodiments of the present application.

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

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

[0032] Specifically, the memory 102 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a U disk or a mobile hard disk, etc.

[0033] Those skilled in the art can understand that Figure 1 the structure shown in the above description is only a block diagram of part of the structure related to the embodiments of the present application, and does not constitute a limitation on the terminal device to which the embodiments of the present application are applied. The specific terminal device can 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 configured to run the computer program stored in the memory 102, and implement any one of the window management methods provided by the embodiments of the present application when the computer program is executed. For example, the processor 101 is configured to run the computer program stored in the memory 102, and implement the following steps when the computer program is executed:

[0035] When the window management service of the terminal device is started, a window configuration file of a target application of the terminal device is written into a window configuration container, wherein the window configuration file includes type description bits of each window type and a mutual exclusion window list of each scene type; when a new window is added in an interactive interface of the target application, a 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; according to a first updated variable value of the scene integer variable and the mutual exclusion window list of each scene type, a 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 configured to run the computer program stored in the memory 102, and implement the following steps when the computer program is executed:

[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 a matching scene type of the scene integer variable; and a mutual exclusion 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 configured to run the computer program stored in the memory 102, and implement the following steps when the computer program is executed:

[0039] When the new window is added in the interactive interface of the target application, the type description bit of the new window is read from the window configuration container; and 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, so as to write the type description bit of the new window into the scene integer variable, thereby updating the scene integer variable.

[0040] In some embodiments, the processor 101 is configured to run the computer program stored in the memory 102, and implement the following steps when the computer program is executed:

[0041] When the window is removed in the interactive interface, a scene integer variable is updated based on a 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 configured to run a computer program stored in the memory 102, and when the computer program is executed, the following steps can be implemented:

[0043] According to that each type description bit occupies a binary bit, the type description bits of the windows involved in the target application are set; a display window list and a mutual exclusion window list of each scene type of the target application are obtained; 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 display window list of each scene type; a mapping relationship between the mutual exclusion 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 mutual exclusion window list of each scene type; the type description bits of the windows, 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 mutual exclusion 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 configured to run a computer program stored in the memory 102, and when the computer program is executed, the following steps can be implemented:

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

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

[0047] The type description bits of the third-party application windows outside the target application are set as default values.

[0048] It should be noted 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 embodiments, which will not be described here.

[0049] In the following, Figure 1The terminal device shown in the middle as the execution subject of the interactive interface window management method is taken as an example to introduce the interactive interface window management method provided by the embodiments of the present application in detail. In order to simplify and facilitate the description, the execution subject will be omitted in the following method embodiments. It should be noted that Figure 1 The scenario in the middle is only used to explain the interactive interface window management method provided by the embodiments of the present application, but does not constitute a limitation on the application scenarios of the interactive interface window management method provided by the embodiments of the present application.

[0050] Please refer to Figure 2 , Figure 2 is a flowchart of an interactive interface window management method provided by the embodiments of the present application. The interactive interface window management method comprises steps 201-203, wherein:

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

[0052] Among them, the window configuration file includes type description bits of each window type, type description information of each scene type, and a list of mutually exclusive windows of each scene type.

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

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

[0055] Among them, the window management service is a system service for managing windows of the terminal device. For example, the window management service can be WMS (Window Manager Service) of the Android system, which is a service in the Android system and is responsible for window management, window animation, Surface management, etc.

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

[0057] A1, set the type description bits of each window type involved in the target application according to one binary bit for each type description bit.

[0058] A2, obtain the display window list and the mutually exclusive window list of each scene 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, establish a mapping relationship between the display window list of each scene type and the type description information of each scene type.

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

[0061] A5, 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 mutual exclusion 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.

[0062] The type description bit of the window type is description information for indicating 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 one binary bit, so as to reduce the memory occupancy of the type description bit of the window type, improve the identification speed of the window type and the scene type, and encode the window type by the binary bit. In this way, a scene can be identified by a window set, and in this way, the complex window mutual exclusion scene that may be encountered in 6Dof interaction can be easily handled. For example, assuming that there are scene requirements as shown in Table 1 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 development. The LayoutParams parameter class is a parameter class used to describe how a 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 properties.

[0063] As shown in Table 1, assuming that the interactive interface of the terminal device has three scene requirements:

[0064] Table 1

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

[0066] Therefore, 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. Exemplarily, as shown in Table 2, at this time, the window W1, W2, W3, W4, W5, W6 can be set as follows:

[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] Thus, by setting a type description bit for each window, the window can be easily identified, which provides strong support for identifying the window or operation and the scene category, and further facilitates quick identification of the current scene of the interactive interface of the terminal device.

[0070] The type description information of the scene type is description information used to represent the scene type. One scene type corresponds to one set of windows to be displayed. The type description information of the scene type can be obtained by performing an OR operation on the type description bits of all the windows to be displayed in the scene type. For example, for the scenes and windows shown in Table 1 and Table 2, the type description information of scene 1 is W1.type|W2.type=0x03; the type description information of scene 2 is W1.type|W5.type=0x11; and the type description information of scene 3 is W4.type|W6.type=0x28. W1.type, W2.type, W3.type, W4.type, W5.type, and W5.type represent the type description bits of windows W1, W2, W3, W4, W5, and W6, respectively. 0x03, 0x11, and 0x28 represent the type description information of scenes 1, 2, and 3, respectively. Thus, the mapping relationship between the display window list of each scene type and the type description information of each scene type can be established based on the type description bits of each window in the display window list of each scene type. By using the OR operation result of the type description bits of all the windows to be displayed in a scene type as the type description information of the scene type, the scene type can be easily identified by setting a type description bit for each scene, thereby facilitating quick identification of the current scene of the interactive interface of the terminal device. Thus, the window type and the scene type can be converted into an integer value, which facilitates the judgment of the scene and the retrieval of the window by the window management service (WMS), avoids the traversal of the window and the comparison of the String type of the window title, and improves the efficiency.

[0071] 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, and thus the mutually exclusive window list of scene 1 (corresponding to the type description information 0x03) is W3 and W4. Windows W2 and W4 are not displayed in scene 2, and thus the mutually exclusive window list of scene 2 (corresponding to the type description information 0x11) is W1 and W2. Windows W3 and W4 are not displayed in scene 3, and thus the mutually exclusive window list of scene 3 (corresponding to the type description information 0x28) is W3 and W4, as shown in Table 3.

[0072] Table 3

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

[0074] Thus, the mapping relationship between the mutually exclusive window list of each scene type and the type description information of each scene type can be established based on the type description bit of each window in the mutually exclusive window list of each scene type. By establishing the mutually exclusive window list for each scene type, the window that needs to be hidden and not displayed for each scene type can be easily identified, and the window that needs to be hidden can be quickly and easily identified and removed.

[0075] Then, 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 a window configuration file of the target application. At this time, the window configuration file obtained includes 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.

[0076] The window configuration file can be written into the window configuration container when the window management service of the terminal device is started. 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, facilitating subsequent window identification and scene identification.

[0077] 202. When a new window is added in the interactive interface of the target application, the type description bit 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 can 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 is displayed. One or more windows can be added or deleted on the interactive interface of the target application according to user operation or system control. When a new window is added in the interactive interface of the target application, the window management service of the terminal device reads the type description bit of the new window from the window configuration container to update the scene integer variable of the window management service. Thus, 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 variable value change of the scene integer variable, and different scene types are dynamically updated in real time according to the addition or deletion of windows, thereby providing accurate data basis for subsequent window hiding.

[0080] There are various implementation manners of step 202, and exemplarily, the implementation manners include:

[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; a bitwise OR operation is performed between 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, thereby updating 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, which is the existing type description bit W1.type in the scene integer variable; when a new window W2 is added, the type description bit of each window type is queried from the window configuration file written by the window configuration container, thereby finding 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, thereby writing the type description bit W2.type of the new window W2 into the scene integer variable, thereby updating the variable value of the scene integer variable to W1.type|W2.type. Therefore, by using a bitwise OR operation to merge the type description bits of multiple window types into an integer variable, each window type can exist independently without interfering with each other.

[0082] Among them, the existing type descriptor bit refers to the type descriptor bit that has already been written into the scene's 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, which is the existing type description bit W4.type in the scene integer variable; when a new window W6 is added, the type description bit of each window type is queried from the window configuration file written by the window configuration container, thereby finding 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 the hidden window list of the scene integer variable based on the first updated variable value of the scene integer variable and the mutual exclusion window list of each scene type.

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

[0086] For example, 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; the mutual exclusion window list associated with the matching scene type can be read from the window configuration container as the hidden window list of the scene integer variable. For example, referring 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 by the window management service, to query the type description information identical to the first updated variable value W1.type|W2.type, and the scene type 0x03 corresponding to the type description information identical to the first updated variable value W1.type|W2.type is taken as the matching scene type of the scene integer variable; then, the mutual exclusion window list of each scene type in the window configuration container is queried, to query the mutual exclusion window list (W3, W4) associated with the matching scene type 0x03 of the scene integer variable as the hidden window list of the scene integer variable 0x03.

[0087] 204、In the interactive interface, the windows in the hidden window list are removed.

[0088] Exemplarily, whether the window currently displayed in the interactive interface contains the window in the hidden window list can be detected by the window management service according to the type description bit of the window. If the window currently displayed in the interactive interface contains the window in the hidden window list, each window in the hidden window list is removed in the interactive interface. For example, before adding a new window, the windows W1 and 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 bit W1.type|W3.type in the scene integer variable. When the new window W2 is added, the type description bit of each window type is queried from the window configuration file written from the window configuration container, so that the type description bit W2.type of the new window W2 is found. At this time, the type description bit W2.type of the new window W2 is operated with the scene integer variable currentScene, so that the type description bit W2.type of the new window W2 is written into the scene integer variable to update the variable value of the scene integer variable to: W1.type|W2.type|W3.type. Then, the type description information of each scene type in the window configuration container is queried by the window management service, 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 (that is, the scene type 0x03 corresponding to W1.type|W2.type) existing in the first updated variable value W1.type|W2.type|W3.type, as the matching scene type of the scene integer variable. Then, the mutual exclusion window list of each scene type in the window configuration container is queried, and the mutual exclusion window list (W3, W4) associated with the matching scene type 0x03 of the scene integer variable is found as the hidden window list of the scene integer variable 0x03. After that, the window W3 in the interactive interface can be removed by the window management service, and only the display windows W1 and W2 are retained.

[0089] For the case that the interactive interface removes some windows when a certain window is displayed, in the related art, when the application processes the display and hiding of the window, the app broadcasts when the window is added, and the window to be hidden listens to the broadcast, and removes the window after receiving the broadcast. This broadcast mechanism is effective for the window management within the application, but when it comes to the case of hiding the third-party application window, the third-party application window cannot be effectively hidden due to the permission problem of the third-party application. Therefore, the broadcast mechanism for hiding the window is invalid for the scene of hiding the third-party application window. Further, in the embodiment of the present application, when the type description bit of the window type is set, the type description bit of the third-party application window outside the target application is set to a default value, for example, 0x01, so that the third-party application window can use the default window type, and the problem of not being able to hide the third-party application window is effectively solved.

[0090] Further, the interactive interface window management method can further include: when a window is removed in the interactive interface, updating a scene integer variable 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 can be subjected to a bitwise NOT operation to remove the type description bit of the removed window from the scene integer variable, so as to update the scene integer variable to obtain the second updated variable value of the scene integer variable. For example, the window management service can remove the window W3 in the interactive interface, and only keep the display windows W1 and W2, and then remove the type description bit of the removed window W3 from the scene integer variable, so as to update the variable value of the scene integer variable to W1.type|W2.type.

[0091] Further, the window display priority of the window type can be set to be higher, and the type description bit of the window type is larger, so that in the case that 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 is, the higher the window display priority is. This design can ensure that the high-priority window can be covered or displayed preferentially when the window is displayed or hidden.

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

[0093] For better understanding of the embodiment, please refer to Figure 3 The interactive interface window management method will be described below with a specific example as follows:

[0094] 1、First, set different window sets to represent different scenes, for example, in 6Dof interaction, the set of all windows in the current world space can represent a scene.

[0095] 2、Set window configuration files, including: set type description bits type for each window type, perform or operation on type description bits of all display windows of each scene to get the result as type description information of the corresponding scene type, and set a mutual exclusion window list of each scene type.

[0096] In order to facilitate the identification of the current scene, a type description bit type is added to the window, and each type description bit type only occupies a binary bit; when adding a window, set the type description bit type of the window through the LayoutParams parameter class, and the default is 0x01.

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

[0098] Among them, considering the case of several scenes existing at the same time, one more strategy is added here: the higher the type description bit type of the window, the higher the priority.

[0099] According to the definition of the scene above, the set of all windows in the current world space can represent a scene, so the type description bits type of all display windows are or operated bit by bit to get an integer value, which can be used to represent the scene type.

[0100] Based on the above principle, assuming that there are the following scene requirements under 6Dof interaction at present:

[0101] Scene Scene1: display windows W1, W2, do not display windows W3, W4

[0102] Scene Scene2: display windows W1, W5, do not display windows W2, W4

[0103] Scene Scene3: display windows W4, W6, do not display windows W1, W2

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

[0105] First, according to the scene above, the type description bit type of the window can be allocated as follows:

[0106] W1: 0x01;

[0107] W2: 0x02;

[0108] W3: 0x04;

[0109] W4: 0x08;

[0110] W5: 0x10;

[0111] W6: 0x20

[0112] Then, the type description information of the scene can be obtained:

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

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

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

[0116] Next, the mapping of the scene to the hidden window list can be established, so as to obtain the mutually exclusive window list of each scene type:

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

[0118] Finally, the above configuration is written 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 into a window configuration container named Map.

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

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

[0122] It can be seen from the above that, by writing 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, the window configuration file including type description bits of various window types and a mutually exclusive window list of various scene types; when a new window is added in an 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 a first updated variable value of the scene integer variable and the mutually exclusive window list of the various scene types; and removing the windows in the hidden window list in the interactive interface. In this way, in the first aspect, a type description bit can be set for each window type in advance by the window configuration file, and a mutually exclusive window list of each scene type can be established, when a new window is added in an interactive interface of a target application, the type description bit of the new window can be identified by the window configuration file to update a 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 a hidden window list of the scene integer variable can be determined according to a first updated variable value of the scene integer variable and the mutually exclusive window list of the various scene types, so as to effectively and comprehensively hide the windows that are not required to be displayed in the current scene; in the second aspect, 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 window can be quickly judged, the problem of window traversal and string type identification comparison of the window type is avoided, and the efficiency is improved; in the third aspect, since the hidden window list can be located, the windows can be hidden by removing the windows, so that the windows that are not required to be displayed can be effectively hidden in the three-dimensional interactive scene, and the problem that the windows that are required to be hidden cannot be effectively hidden in the three-dimensional interactive scene is avoided. Therefore, the embodiments of the present application can effectively hide the windows and improve the window hiding efficiency.

[0123] In addition, in order to better implement the interactive interface window management method in the embodiments of the present application, based on the interactive interface window management method, the embodiments of the present application further provide an interactive interface window management device, as shown in Figure 4 Fig. 1 is a structural schematic diagram of an embodiment of the interactive interface window management device provided by the embodiments of the present application, the interactive interface window management device 400 includes:

[0124] The configuration unit 401 is configured to write 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 type description bits of various window types and a mutually exclusive window list of various scene types;

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

[0126] The management unit 403 is 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.

[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 comprises type description information of each scene type, and the management unit 403 is specifically configured to:

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

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

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

[0132] read type description bits of a new window from the window configuration container when the new window is added in an interactive interface of the target application.

[0133] perform a bitwise OR operation on the type description bits of the new window and existing type description bits of the scene integer variable to write the type description bits of the new window into the scene integer variable to update the scene integer variable.

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

[0135] update the scene integer variable based on type description bits of a removed window to obtain a second updated variable value of the scene integer variable when the window is removed in the interactive interface.

[0136] In some embodiments, the interactive interface window management apparatus further comprises a configuration unit (not shown in the figure), and the configuration unit comprises a unit specifically configured to:

[0137] set type description bits of each window type involved in the target application according to that each type description bit occupies one binary bit;

[0138] obtaining a display window list and a mutual exclusion window list of each scene type of the target application;

[0139] 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 display window list of each scene type;

[0140] establishing a mapping relationship between the mutual exclusion 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 mutual exclusion window list of each scene type;

[0141] writing 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 mutual exclusion window list of each scene type and the type description information of each scene type into a file to form the window configuration file.

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

[0143] configuring the type description bit of the window type according to a 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 embodiments, the configuration unit is specifically configured to: set the type description bit of a third-party application window outside the target application to a default value.

[0145] In implementation, each of the above units can be implemented as an independent entity, or can be combined as one or more entities, and the implementation of each of the above units can refer to the implementation of the above interactive interface window management method, which will not be described here.

[0146] Those skilled in the art can understand that all or part of the steps of the above interactive interface window management method can be completed by instructions, or by instructions controlling related hardware, and the instructions can 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, which stores a plurality of computer programs capable of being loaded by a processor to execute any one of the interactive interface window management methods provided by the embodiments of the present application.

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

[0149] In the above-mentioned interactive interface window management apparatus, computer readable storage medium, and terminal device embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-mentioned interactive interface window management apparatus, computer readable storage medium, terminal device and corresponding units and the beneficial effects brought by them can be referred to the description of the above-mentioned interactive interface window management method, and will not be described here in detail.

[0150] The above describes in detail the interactive interface window management method, apparatus, terminal device and computer readable storage medium provided by the embodiments of the present application. The principle and implementation manner of the present application are described by applying specific examples. The above-mentioned embodiment description is only used to help understand the method of the present application and its core idea. Meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed. In summary, the content of the specification should not be understood as a limitation of the present application.

Claims

1. A method for managing windows of an interactive interface, characterized in that, The method comprises: 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, wherein the window configuration file comprises type description bits of each window type and a mutually exclusive window list of each scene type; When a new window is added in an interactive interface of the target application, a 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; According to a first updated variable value of the scene integer variable and the mutually exclusive window list of each scene type, a hidden window list of the scene integer variable is determined; Windows in the hidden window list are removed in the interactive interface; The window configuration file further comprises type description information of each scene type, and the determination of 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 comprises: According to the first updated variable value, the type description information of each scene type in the window configuration container is queried to obtain a 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 the hidden window list of the scene integer variable.

2. The interactive interface window management method of claim 1, wherein, The reading of the type description bit of the new window from the window configuration container to update the scene integer variable of the window management service when the new window is added in the interactive interface of the target application comprises: When the new window is added in 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 subjected to a bitwise OR operation to write the type description bit of the new window into the scene integer variable to update the scene integer variable.

3. The interactive interface window management method of claim 1, wherein, The method further comprises: When a window is removed in 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.

4. The interactive interface window management method of claim 1, wherein, The method further comprises: Type description bits of each window type involved in the target application are set according to one binary bit per type description bit; A display window list and a mutually exclusive window list of each scene type of the target application are obtained; A mapping relationship between the display window list of each scene type and type description information of each scene type is established based on the type description bit of each window in the display 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 based on the type description bit of each window in the mutually exclusive window list 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.

5. The interactive interface window management method of claim 1, wherein, 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.

6. The interactive interface window management method of claim 1, wherein, The method further comprises: setting the type description bit of the third-party application window outside the target application to a default value.

7. An interactive interface window management apparatus, characterized by: The interactive interface window management apparatus comprises: The configuration unit is configured to write 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 comprises type description bits of various window types and a mutual exclusion window list of various scene types; The updating unit is configured to read a type description bit of a new window from the window configuration container and update a scene integer variable of the window management service when the new window is added in an interactive interface of the target application; The management unit is 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 the mutual exclusion window list of the various scene types; The management unit is further configured to remove the windows in the hidden window list in the interactive interface; The window configuration file further comprises type description information of various scene types, and the management unit is specifically configured to: query the type description information of the various scene types in the window configuration container according to the first updated variable value to obtain a matching scene type of the scene integer variable; read a mutual exclusion window list associated with the matching scene type from the window configuration container as the hidden window list of the scene integer variable.

8. A terminal device, comprising: The apparatus comprises a processor and a memory, the memory stores a computer program, and the processor invokes the computer program in the memory to execute the interactive interface window management method in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The apparatus has a computer program stored thereon, and the computer program is loaded by a processor to execute the interactive interface window management method in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Application window display method, system and terminal based on OH system

    CN118819528A

  • Screen display control device

    JP1996212039A