Display method and electronic device

By determining the display hierarchy and overlapping areas, and adjusting the target content of the second application to avoid obstruction, the problem of content occlusion in multi-window display is solved, improving operational efficiency and user experience.

CN123137552APending Publication Date: 2026-11-20LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611140817.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-29
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

When multiple windows of multiple applications are displayed together, the content of different applications may obscure each other. Users need to frequently switch windows or drag and drop to reference content and compare information between different applications, resulting in low operating efficiency.

Method used

By determining the display hierarchy and overlapping area of ​​the first and second applications, the target content of the second application in the target area is adjusted to be outside the target area, while keeping the display area of ​​the second application unchanged. This is achieved by using scrolling, rearranging, or adjusting the display elements to avoid occlusion.

Benefits of technology

Without changing the size and position of the application window, users can easily view the obscured content, reducing interaction costs, improving display efficiency and user experience, and avoiding the destructive impact of the interface layout.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137552A_ABST
    Figure CN123137552A_ABST
Patent Text Reader

Abstract

The application provides a display method and an electronic device. The method comprises the following steps: determining a target region according to obtained display information of a first application and a second application, the display level of the first application being greater than the display level of the second application, the display region of the first application being a first region, the display region of the second application being a second region, and the target region being a region where the first region and the second region overlap; and adjusting target content of the second application in the target region according to the target region, so that the adjusted target content is outside the target region, and the display region of the adjusted second application is the second region.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing, and more particularly to a display method and an electronic device. Background Technology

[0002] When multiple windows of multiple applications are displayed together, the content of different applications may obscure each other. Users need to frequently switch windows or drag and drop to reference content and compare information between different applications, resulting in low operating efficiency. Summary of the Invention

[0003] This application provides a display method and an electronic device.

[0004] One embodiment of this application provides a display method, the method comprising: The target area is determined based on the display information of the first application and the second application. The display level of the first application is greater than that of the second application. The display area of ​​the first application is the first area, the display area of ​​the second application is the second area, and the target area is the area where the first area and the second area overlap. The target content of the second application in the target area is adjusted according to the target area so that the adjusted target content is outside the target area, and the display area of ​​the adjusted second application is the second area.

[0005] The step of controlling the second application to adjust the at least one set of display elements according to the target area includes: The degree of interaction of each display element in the set of display elements is determined based on the historical interaction information. The second application is controlled to adjust at least one display element in the set of display elements whose interaction level is higher than a preset threshold, so that the adjusted at least one display element is outside the target area.

[0006] Another aspect of this application provides an electronic device, including: one or more processors; Storage device for storing one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the following method: determining a target area based on obtained display information of a first application and a second application, wherein the display level of the first application is greater than the display level of the second application, the display area of ​​the first application is a first area, the display area of ​​the second application is a second area, and the target area is the area where the first area and the second area overlap; and adjusting the target content of the second application in the target area according to the target area, so that the adjusted target content is outside the target area, and the adjusted display area of ​​the second application is the second area.

[0007] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description

[0008] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of this application are illustrated in the drawings by way of example and not limitation, in which: In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts.

[0009] Figure 1 A flowchart of a display method according to an embodiment of this application is shown; Figure 2 A schematic diagram of a target area according to an embodiment of this application is shown; Figure 3 A flowchart of a display method according to another embodiment of this application is shown; Figure 4 A flowchart of a display method according to another embodiment of this application is shown; Figure 5 A flowchart of a display method according to another embodiment of this application is shown; Figure 6 A flowchart of a display method according to another embodiment of this application is shown; Figure 7 A flowchart of a display method according to another embodiment of this application is shown; Figure 8A A schematic diagram of a second region and a target region according to an embodiment of this application is shown; Figure 8B A schematic diagram of the second region and the target region according to another embodiment of this application is shown; Figure 9A schematic diagram of the second region and the target region according to another embodiment of this application is shown; Figure 10A A schematic diagram of the second region and the target region according to another embodiment of this application is shown; Figure 10B A schematic diagram of the second region and the target region according to another embodiment of this application is shown; Figure 11 A flowchart of a display method according to another embodiment of this application is shown; Figure 12 A flowchart of a display method according to another embodiment of this application is shown; Figure 13 A schematic diagram of the structure of a display device according to an embodiment of this application is shown; Figure 14 A schematic diagram of the composition structure of an electronic device according to an embodiment of this application is shown. Detailed Implementation

[0010] To make the objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0011] To address the issues of content occlusion between applications and the need for frequent window switching or drag-and-drop for cross-application collaboration in multi-application scenarios, and to improve display efficiency and user experience in such scenarios, this application provides a display method in one embodiment, such as... Figure 1 As shown, the method may include: Step 101: Determine the target area based on the obtained display information of the first application and the second application. The display level of the first application is greater than that of the second application. The display area of ​​the first application is the first area, and the display area of ​​the second application is the second area. The target area is the area where the first area and the second area overlap.

[0012] Both the first application and the second application can be applications running on electronic devices. The first application and the second application can be any one of the following: document editing application, social networking application, calendar application, map application, browser application, video playback application, email application, etc.

[0013] For example, the first application could be a document editing application, and the second application could be a social application.

[0014] For example, the first application could be a calendar application, and the second application could be a map application.

[0015] The display layer of the first application can be greater than that of the second application. The display layer represents the stacking order of application windows on the display interface; the application window with a higher display layer is located on top of the display interface. For example, when the display layer of the first application is 2 and the display layer of the second application is 1, the display layer of the first application is greater than that of the second application, and the first application can cover the second application on the display interface. Part or all of the display area of ​​the first application can overlap with the display area of ​​the second application, that is, the overlapping area of ​​the second application and the first application is covered by the first application.

[0016] Display information describes the application's display status on the display interface. This information can include the application's display area's location, size, display hierarchy, and displayed content. Display information for both the first and second applications can be obtained through components such as the window management module and display management service. For example, if the first application is a document application, the obtained display information includes its position on the screen (top-left corner coordinates: (100, 100)), size (width 800 pixels, height 600 pixels), display hierarchy (3), and the currently displayed document content within the first application.

[0017] The first area can be the display area occupied by the first application on the display screen, and the second area can be the display area occupied by the second application on the display screen, not the final display area after the second application is obscured. The target area can be the area where the first and second areas overlap, that is, the area on the display screen where the first application obscures the second application. Figure 2 As shown, the first area of ​​the first application is Figure 2 The area within the dashed box is the second area of ​​the second application. Figure 2 The area enclosed by the solid line frame has an overlap between the first and second regions; this overlapping area constitutes the target region. Figure 2 The shaded area.

[0018] In this embodiment, the overlapping portion of the two regions can be calculated by comparing the coordinate ranges of the first region and the second region, thereby determining the target region. In other embodiments, the target region can also be obtained through any other method that can determine the overlapping portion of the two display regions.

[0019] Step 102: Adjust the target content of the second application in the target area according to the target area, so that the adjusted target content is outside the target area, and the display area of ​​the adjusted second application is the second area.

[0020] The target content can be the content displayed by the second application in the target area. The target content can include text data, image data, control elements, list items, etc. Adjusting the target content moves it out of the target area, thus preventing it from being obscured by the first application, allowing the user to view the obscured content in the second application without switching windows.

[0021] It is important to note that the display area of ​​the second application remains the same after the adjustment; that is, the size and / or position of the second application's display area does not change. The obstruction is not avoided by shrinking or moving the second application's display area, but rather by adjusting the content displayed by the second application within the second area.

[0022] For example, the second application can move the target content that was originally displayed in the target area out of the target area by scrolling the display content, rearranging the display content, and adjusting the position of the display elements, while displaying the target content in the area outside the target area in the second area.

[0023] In the above solution, by determining the target area based on the display information of the first and second applications, and adjusting the target content of the second application within the target area to move it out of the target area while keeping the display area of ​​the second application unchanged, the user can see the content of the second application even in areas obscured by the first application without changing the application window size and position. This method avoids frequent window switching or dragging operations, reduces the interaction cost in multi-application collaboration scenarios, and improves display efficiency and user experience. Furthermore, because the display area of ​​the second application remains unchanged, it avoids destructive impacts on the layout of the second application's interface, improving the stability and consistency of the application interface.

[0024] In one example of this application, a display method is also provided, wherein the first area is rendered and generated by display data output by the first application, the second area is rendered and generated by display data output by the second application, and the size and / or position of the second area are the same before and after adjustment.

[0025] Display data can be data output by the application used to render content on the display interface. Display data can include at least one of the following: pixel data of the interface, vector drawing instructions, layout description information, control attribute information, etc. Display data differs from the aforementioned display information, which describes the application's display state on the display interface and can include information such as the position, size, display hierarchy, and content of the display area; it can be descriptive information about the application's display state. Display data can be the underlying data output by the application used to render the aforementioned display content, and can be the direct data source for the rendering engine to generate the display content. Display information can be obtained by parsing display data or through window management components, while display data can be generated internally by the application and output to the rendering engine for rendering.

[0026] The display data output by the first application can be the rendered content generated in the first area, and the display data output by the second application can be the rendered content generated in the second area. The rendering process can be executed by components such as the operating system's rendering engine and graphics processing unit (GPU).

[0027] The size and / or position of the second area remain the same before and after adjustment, meaning that when adjusting the target content of the second application, the size parameters (such as width and height) and position parameters (such as the coordinates of the top left corner) of the second application window will not be changed.

[0028] For example, the width of the second region of the second application is 800 pixels, the height is 600 pixels, and the top-left corner coordinates are (100, 100). Before and after adjusting the target content, the width, height, and top-left corner coordinates of the second region remain unchanged.

[0029] In the above solution, by clearly defining that the first and second regions are generated by rendering display data output by their respective applications, and ensuring that the size and / or position of the second region remain unchanged before and after adjustment, the adjustment of the target content will not affect the window attributes of the second application, thus avoiding problems such as interface jumping and layout chaos caused by changes in window size or position, and improving the stability of display and the continuity of user experience.

[0030] This application also provides a display method in one example, such as Figure 3 As shown, adjusting the target content of the second application in the target area according to the target area includes: Step 201: Determine at least one display element in the target area based on the target area.

[0031] Display elements can be independent units of content presented at the smallest granularity within the content displayed by an application in a target area. Display elements can include text data (such as a paragraph, a line of text, or a phrase) in document-based applications, a message (such as a chat message in WeChat) in social applications, an email summary in email applications, a list item in list-based applications, and a cell in table-based applications, etc.

[0032] For example, when the second application is a document editing application, the displayed element can be a paragraph in the document.

[0033] For example, when the second application is a social application, the displayed element can be a chat message.

[0034] Display elements can be the smallest granular unit of application interface content. By adjusting display elements, fine-grained avoidance control of content in the target area can be achieved.

[0035] In this embodiment, all content elements displayed by the second application in the target area can be traversed based on the coordinate range of the target area to identify the display elements within the target area. In other embodiments, display elements in the target area can also be determined through rendering tree analysis, view hierarchy traversal, or other methods.

[0036] Step 202: Control the second application to adjust the at least one display element according to the target area so that the adjusted display element is outside the target area.

[0037] After determining the display elements in the target area, the second application can be controlled to adjust these display elements so that the adjusted display elements are no longer within the target area.

[0038] Adjustment methods may include scrolling the displayed content, rearranging the position of the displayed elements, and adjusting the size of the displayed elements.

[0039] In the above solution, by adjusting the display elements as the granularity, it is possible to accurately avoid content in the target area and avoid interference with content in non-target areas.

[0040] This application also provides a display method in one example, such as Figure 4 As shown, the method includes: Step 301: Determine that a set of display elements exists in the target area, and determine the historical interaction information of the set of display elements based on the operation data of the second application. The set of display elements includes multiple display elements, and the historical interaction information characterizes the degree of interaction between the user and the set of display elements.

[0041] A display element set can be a combination of multiple display elements that have the same attributes or are related.

[0042] For example, in document editing applications, multiple paragraphs under the same heading can form a set of display elements.

[0043] For example, in social applications, multiple messages in the same conversation can form a set of display elements.

[0044] For example, in list-based applications, multiple list items belonging to the same group can form a set of display elements.

[0045] The division of the display element set can be determined based on at least one of the following: semantic relevance of content, visual grouping relationship, data structure relationship, etc.

[0046] Operational data refers to data generated when a user interacts with a second application. This data can include information such as the operation type, location, duration, and frequency of actions like clicks, swipes, long presses, drags, and inputs. Historical interaction information, obtained statistically from operational data, characterizes the degree of interaction between the user and the set of displayed elements. This degree of interaction can be measured using metrics such as interaction frequency, interaction duration, and interaction type weighting.

[0047] For example, historical interaction information may include the number of times a user clicks on a set of display elements, the duration of browsing, the frequency of replies, and the number of edits.

[0048] Step 302: Determine at least one set of display elements based on the historical interaction information.

[0049] Based on historical interaction information, the set of display elements to be adjusted can be determined, making the adjustment operation more targeted.

[0050] For example, you can prioritize adjusting the set of display elements with a high degree of interactivity, because users pay more attention to these contents, and it will be easier for users to view them after they are moved out of the target area.

[0051] Step 303: Control the second application to adjust the at least one set of display elements according to the target area, so that the adjusted set of display elements is outside the target area.

[0052] After determining the set of display elements to be adjusted, the second application can be controlled to adjust these display element sets so that the adjusted set of display elements is no longer within the target area.

[0053] For example, in social applications, the target area contains multiple messages from a session (i.e., a set of display elements). If the interaction level of the session is determined to be high based on historical interaction information, the second application can be controlled to move all messages in the session downwards, removing them from the target area.

[0054] For example, in a document application, the target area contains multiple paragraph groups (i.e., a set of display elements). Based on historical interaction information, it is determined that two paragraph groups have a higher degree of interaction. The second application can then be controlled to adjust these two paragraph groups to outside the target area.

[0055] Similarly, adjustment methods can include scrolling the displayed content, rearranging the position of the displayed element set, and adjusting the size of the displayed element set.

[0056] In the above solution, by introducing a set of display elements and historical interaction information, the scope of content to be adjusted can be determined based on the degree of user interaction with the display elements. This makes content avoidance more aligned with the user's actual usage habits and focus. It not only avoids the problem of important content being obscured in the target area but also adaptively adjusts the content according to the user's interaction habits, further improving the display effect and user experience in multi-application collaboration scenarios.

[0057] This application also provides a display method in one example, such as Figure 5 As shown, controlling the second application to adjust the at least one set of display elements according to the target area includes: Step 401: Determine the display information associated with the target region in the second application based on the target region.

[0058] After adjusting the target content of the second application in the target area according to the target area, so that the adjusted target content is outside the target area, since the target content is the part of the second application that was originally in the target area and was obscured by the first application, the display information of the second application associated with the target area can be further determined.

[0059] The display information associated with the target area can include information about the display elements originally present in the target area. This information can include text paragraphs, image content, table data, interactive controls, list items, etc. It can also include information related to the original display elements in the target area, such as other display elements belonging to the same set of display elements but not located within the target area. Furthermore, it can include the position information of display elements moved out of the target area after adjustment. This position information could be the chapter number of the moved-out text paragraph in the document, or the time interval of the moved-out schedule bar on the calendar timeline. Finally, it can include the size and / or position information of the target area, such as the pixel range or coordinate range it occupies in the display coordinate system between the first and second areas. Finally, it can include the positional relationship between the target area and the overall layout of the second application, such as whether the target area is located in the upper or lower half of the second application's display area, or which page or screen of the second application's display content the target area covers. The display information associated with the target area may also include semantic type information of the elements displayed in the target area, such as whether the content in the target area is a body paragraph, heading text, list item, quotation block, or code block.

[0060] For example, the second application can be a document editing application, while the first application can be an AI (Artificial Intelligence) application. The AI ​​application can be a target model, an agent, etc. The target model can be a generative model or a generative language model (GLM). Specifically, it can include large language models (LLMs) and GPT (Generative Pre-trained Transformer). The models involved in this application's embodiments can be general-purpose large models or expert large models obtained by fine-tuning based on requirements; this application's embodiments do not limit this. An agent can be an application of artificial intelligence technology, implemented based on a target model (such as a large language model). The agent's behavior is determined by the target model within the agent based on the current state and external input, and can be used to specifically solve a certain type of problem. The target model provides the decision-making basis through learning and training on a large amount of data; the agent can also call tools, plugins, and knowledge bases to provide reasoning, decision-making, and execution capabilities. Simply put, the target model provides decision support, and the agent continuously optimizes the performance of its internal target model through feedback data from actual applications (such as prompt words).

[0061] The display area of ​​the first application (i.e., the first area) overlaps with a portion of the text content in the display area of ​​the second application (i.e., the second area); this overlapping area is the target area. After adjusting the target content, the portion of text content within the target area is moved out of the target area. At this point, the display information associated with the target area may include the specific text data of that portion of text content, the paragraph number information of that portion of text content in the document, the chapter structure information of that portion of text content in the document, and the semantic relationship information between that portion of text content and its surrounding text.

[0062] For example, the second application is a calendar application, and the first application is an AI application. The display area of ​​the first application (i.e., the first area) covers multiple schedule bars in the display area of ​​the second application (i.e., the second area). After the target content is adjusted, the multiple schedule bars that were covered are moved out of the target area. At this time, the display information associated with the target area may include meeting time information, meeting topic information, attendee information, meeting location information, meeting type tags, etc., corresponding to the multiple schedule bars that were moved out.

[0063] For example, the second application is a code editing application, and the first application is an AI application. The display area of ​​the first application (i.e., the first area) covers a section of code in the display area of ​​the second application (i.e., the second area). After adjusting the target content, the code section is moved out of the target area. At this time, the display information associated with the target area can include the code text content of the code section, the name of the function or class to which the code belongs, the path of the file where the code is located, the programming language type of the code, and the call relationship information between the code and its context.

[0064] Before adjusting the target content, the original content in the second area can be cached. The cached original content records which display elements originally existed in the target area, as well as the layout, structural relationships, and content summary of these display elements. Based on this cached original content, the display information associated with the target area can be quickly determined without performing an additional full scan or traversal of the second application.

[0065] Step 402: Control the first application to read the display information so that the first application performs target processing on the display information and transmits the output data generated after target processing to the second application.

[0066] After determining the display information associated with the target area, the second application can be controlled to store this display information in memory, and the first application can be controlled to read this display information from memory. The first application can be an AI application, which can use an AI model to perform target processing on this display information, generate corresponding output data, and transmit the output data back to the second application, realizing the automatic feedback of the AI ​​model processing results.

[0067] Target processing can include translation, such as translating text content in the target area from a source language to a target language. It can also include summarization, such as extracting the core content of longer text in the target area to generate a summary. Furthermore, it can include content analysis, such as analyzing time conflicts between multiple schedules in the target area. It can also include code review, such as performing static analysis, specification checks, and / or detecting potential defects in the code within the target area. It can further include content rewriting, such as polishing, rewriting, or style-shifting the text content in the target area. Target processing can also include format conversion, such as converting tabular data in the target area to chart formats or structured data. It can also include information extraction, such as extracting key entity information such as names, locations, times, and values ​​from the text in the target area. Finally, it can include intelligent annotation, such as automatically generating annotations, comments, or modification suggestions for the content in the target area. Finally, it can include content completion, such as automatically completing incomplete content such as code snippets or unfinished sentences in the target area.

[0068] The output data generated by the first application can be in the form of structured data. The output data may include operation type information, indicating the type of operation the second application needs to perform, such as insertion, replacement, deletion, annotation, rewriting, highlighting, and formatting adjustments. The output data may also include target scope information, indicating the effective location and range of the output data in the second application, such as the paragraph range, time range, or line number range corresponding to the target area within the second application. The output data may also include generated content data, i.e., the result content after AI model processing, such as translated text, conflict analysis conclusions, and code improvement suggestions. The output data may also include confidence parameters, characterizing the AI ​​model's confidence level in the processing results. Finally, the output data may include an undo flag, allowing the second application to roll back the changes if the user is dissatisfied with the results.

[0069] For example, when the first application is an AI application and the second application is a document editing application, the first application reads the adjusted text content in the target area as associated display information, translates the text content, and generates corresponding translated text as output data. The output data also includes the correspondence information between the translated text and the original paragraph, as well as the confidence score of the translation model. The second application can decide whether to directly use the translation result or prompt the user for confirmation based on the confidence score.

[0070] For example, when the first application is an AI application and the second application is a calendar application, the first application reads the adjusted meeting time, attendees, meeting location, and other schedule information in the target area as associated display information, and performs conflict detection and schedule analysis on this schedule information. The first application detects that there is a time overlap between two adjacent meetings involved in the schedule information, generates corresponding output data, and transmits it to the second application. The second application can then use the output data to alert the user to the risk of meeting time overlap.

[0071] For example, when the first application is an AI application and the second application is a code editing application, the first application reads the adjusted code content in the target area as associated display information, and performs static analysis, code style checks, and potential defect detection on that part of the code, generating code review suggestions as output data. The second application can then adjust that part of the code based on the code review suggestions.

[0072] Step 403: Control the second application to adjust at least one display element in the second application according to the output data.

[0073] After receiving the output data transmitted by the first application, the second application can adjust at least one of its own display elements according to the output data, so that the processing result of the first application can be fed back to the display interface of the second application.

[0074] Adjusting display elements can include inserting new content into them, such as inserting the translated text from the first model into the corresponding position in a second application belonging to the document editing category. Adjusting display elements can also include replacing existing content in the display elements, such as replacing the original text with the optimized text rewritten by the first application in a second application belonging to the document editing category. Adjusting display elements can also include adding visual markers to the display elements, such as adding a red exclamation mark icon or a highlighted background to the corresponding schedule bar in a second application belonging to the calendar category, as a conflict warning marker. Adjusting display elements can also include adding annotations or comments next to the display elements, such as displaying a sidebar marker or inline comment from the first application next to the corresponding line of code in a second application belonging to the code editing category, indicating a review suggestion from the first application. Adjusting display elements can also include adjusting the display attributes of the display elements, such as changing the color, size, font style, transparency, and other visual attributes of the corresponding display elements in the second application. Adjusting display elements can also include adjusting the layout and position of the display elements in the second application, such as rearranging the vertical position of the schedule bar on the timeline.

[0075] After receiving the output data, the second application can also validate the output data according to its own permission policy. Validation of the output data may include verifying whether the scope of operation indicated in the output data is within the second application's legal editable range, verifying whether the operation type belongs to the set of operation types supported by the second application, and verifying whether the generated content conforms to the second application's content format specifications. After confirming that the scope, type, and content of the output data all comply with permission constraints, the second application can execute the corresponding display element adjustment operation. The second application retains final execution rights; that is, for operations that may modify the core content of the second application, the second application can display a confirmation prompt before execution, allowing the user to decide whether to accept. Simultaneously, the second application can generate a reversible record, supporting one-click rollback to the state before the adjustment if the user is dissatisfied with the adjustment result.

[0076] The above solution further introduces the ability of the first application to read and process information associated with the target content, and automatically feeds the processing results back to the second application to adjust its display elements. When a user needs to process part of the content in the second application using the first application, there is no need to manually copy that part of the content to the first application for processing, nor is there a need to manually feed the processing results of the first application back to the second application. The first application can be overlaid on the content associated with that part of the content. The system can automatically identify the part of the content to be processed that is associated with the overlaid part of the content, and control the first application to automatically read and process the part of the content to be processed, and feed the processing results back to the second application. The second application can then automatically adjust its display elements based on the processing results. This significantly reduces the user's operational costs in cross-application collaboration scenarios and improves the interaction efficiency and information flow speed in multi-application nested collaboration scenarios.

[0077] This application also provides a display method in one example, such as Figure 6 As shown, controlling the second application to adjust the at least one set of display elements according to the target area includes: Step 501: Determine the interaction level of each display element in the display element set based on the historical interaction information.

[0078] The degree of interaction among various display elements in a set of display elements can be calculated based on historical interaction information. This degree of interaction can be quantified in several ways.

[0079] The interactivity of each display element can be calculated by weighting metrics such as the number of clicks, browsing time, number of edits, and reply frequency.

[0080] You can set range mapping data for at least one indicator, and then sum the mapping values ​​corresponding to the ranges to which these indicators of the displayed element belong to obtain the interactivity of the displayed element.

[0081] Step 502: Control the second application to adjust at least one display element in the set of display elements whose interaction level is higher than a preset threshold, so that the adjusted at least one display element is outside the target area.

[0082] Preset thresholds can be set according to actual needs. For example, preset thresholds can be set to an interaction frequency of 5 times per minute or a browsing duration of 10 seconds. By setting preset thresholds, display elements that users pay high attention to can be accurately identified, and these display elements can be moved out of the target area first, allowing users to obtain important information more efficiently.

[0083] For example, in social applications, if the target area contains multiple messages from a conversation (i.e., a set of display elements), and based on historical interaction information, it is determined that the interaction frequency with 3 of these messages reaches 11 times / minute, which is higher than a preset threshold, then the second application can be controlled to adjust these 3 messages to outside the target area.

[0084] For example, in a document application, if the target area contains multiple paragraphs under the same heading (i.e., a set of display elements), and based on historical interaction information it is determined that two users have viewed these paragraphs for 15 seconds or more, which is higher than a preset threshold, then the second application can be controlled to move these two paragraphs outside the target area.

[0085] In the above solution, by adjusting content at the granularity of displayed elements and sets of displayed elements, and combining historical interaction information to prioritize the adjustment of content with high user attention, accurate content avoidance in the target area can be achieved. This not only avoids the problem of important content in the target area being obscured, but also adaptively adjusts the content layout according to the user's interaction habits, improving the targeting and efficiency of content avoidance and enhancing the user experience in multi-application collaboration scenarios.

[0086] This application also provides a display method in one example, such as Figure 7 As shown, controlling the second application to adjust the at least one display element according to the target area includes at least one of the following: Step 601: Invoke the first target interface of the second application to make the second application adjust its application data according to the at least one display element, and re-render the second area according to the adjusted application data, wherein the at least one display element after re-rendering is outside the target area.

[0087] The first target interface can be an interface provided by the second application for adjusting application data. The first target interface may include interfaces for adjusting layout parameters, rearranging display content, etc. By calling the first target interface, information about the target area and the display elements to be adjusted can be passed to the second application. After receiving the call request, the second application can adjust application data such as layout parameters and display content data based on this information.

[0088] For example, if the second application is a document-type application, it can call the layout parameter adjustment interface of the second application, pass in the coordinate range of the target area and the paragraph identifier to be adjusted, and the second application can adjust the layout parameters of the paragraph according to the received information, so that the target paragraph moves out of the target area.

[0089] For example, if the second application is a list application, the content rearrangement interface of the second application can be called, and the identifier of the list item to be adjusted can be passed in. The second application can rearrange the order of the list items in the displayed content data according to the received information, so that the target list item is moved out of the target area.

[0090] After adjusting the application data, the second application can re-render the display content of the second area based on the adjusted application data, so that the adjusted display elements are displayed outside the target area. The re-rendering process is completed by the second application's own rendering engine.

[0091] For example, the second application is a document application. After adjusting the layout parameters of the paragraph, the second application can re-render the document interface so that the target paragraph is displayed below the target area.

[0092] For example, if the second application is a list application, after rearranging the order of list items in the displayed content data, the second application can re-render the list interface so that the target list item is displayed outside the target area.

[0093] Step 602: Generate a simulated operation instruction based on the at least one display element; send the simulated operation instruction to the second application so that the second application scrolls the display content in the second area according to the simulated operation instruction, and the at least one display element in the scrolled second area display content is outside the target area.

[0094] Simulated operation commands can be commands used to simulate user interaction operations, such as simulated scrolling, simulated dragging, and simulated swiping.

[0095] The operation direction and operation distance can be calculated based on the current position and target position of the displayed elements, and corresponding simulated operation instructions can be generated.

[0096] For example, if a display element in the target area needs to be adjusted, the distance between the current position coordinates of this display element and the boundary of the target area can be calculated to determine that it needs to be scrolled up by 200 pixels, and a simulated operation command to scroll up by 200 pixels can be generated.

[0097] For example, if a display element in the target area needs to be adjusted, the distance between the current position coordinates of this display element and the boundary of the target area can be calculated to determine that it needs to be dragged 200 pixels to the left, and a simulated operation command to drag 200 pixels to the left can be generated.

[0098] After generating the simulated operation command, the generated simulated operation command can be sent to the second application. After receiving the simulated operation command, the second application can execute the corresponding interactive operation according to the command, so that the display elements in the target area are moved out of the target area.

[0099] Step 603: Generate a first size parameter based on the target area; send the first size parameter to the second application so that the second application can rearrange the display content of the second area according to the first size parameter. The rearranged target content is outside the target area. The size of the second area is determined by a second size parameter, which is different from the first size parameter.

[0100] The first size parameter can be a parameter generated based on the target area to guide the layout of the second application content. The first size parameter can include width and height. The second size parameter can be the actual size parameter of the second area. The second size parameter is different from the first size parameter. That is, the first size parameter is a constraint on the content layout area within the second area, rather than a modification of the size of the second area itself.

[0101] For example, such as Figure 8A As shown, Figure 8A The second region in the image has a width of 800 pixels and a height of 500 pixels. The target region is located to the upper right of the second region, and its width is 300 pixels and its height is 200 pixels. The first size parameter is determined to be a width of 500 pixels and a height of 500 pixels.

[0102] In the example above, the first size parameter can be determined based on either the width difference or the height difference between the second region and the target region. The first size parameter can be a width of 500 pixels and a height of 500 pixels, representing the area on the left side of the second region that is 500 pixels wide and 500 pixels high. Alternatively, the first size parameter can be a width of 800 pixels and a height of 300 pixels, representing the area at the bottom of the second region that is 800 pixels wide and 300 pixels high. In this case, the final first size parameter can be determined based on the area size. Since a width of 500 pixels and a height of 500 pixels results in a larger area, the final first size parameter is determined to be a width of 500 pixels and a height of 500 pixels.

[0103] It should be noted that when the target area is located in the middle of the second area, multiple first size parameters can be determined based on the width difference or height difference between the second area and the target area. At this time, the final first size parameter can also be determined based on the area size of the region represented by the first size parameter.

[0104] After determining the first size parameter, it can be sent to the second application. The second application can then rearrange its display content according to the first size parameter, ensuring that the content is displayed only within the area specified by the first size parameter in the second area, thus preventing the content from appearing in the target area. The size of the second area is determined by the second size parameter and is not affected by the first size parameter; that is, the window size and position of the second area remain unchanged.

[0105] Continuing from the above examples, such as Figure 8B As shown, the generated first size parameters are 500 pixels wide and 500 pixels high. This is sent to the second application. The second application can rearrange its display content according to the area represented by the first size parameter, so that the display content is only displayed in the left area of ​​the second area with a width of 500 pixels and a height of 500 pixels, and no content is displayed in the target area on the right with a width of 300 pixels and a height of 500 pixels.

[0106] The above solution provides three different adjustment methods: API calls, simulated operation commands, and size parameters, to adapt to the content adjustment needs of different types of applications. The API call method is suitable for applications that support layout adjustment interfaces, enabling accurate content rearrangement. The simulated operation command method is suitable for applications where content scrolling can be controlled interactively, offering good versatility and compatibility. The size parameter method is suitable for applications with adaptive content adjustment capabilities, allowing flexible adjustment of the content displayed in the second area without modifying the window size, solely through size parameters. This provides flexible technical means for content avoidance in different scenarios.

[0107] In one example of this application, a display method is also provided, wherein adjusting the target content of the second application in the target area according to the target area includes: A placeholder area is inserted at the location of the target area. The placeholder area has the same size as the target area. The newly added display content in the second application can cause the original display content that overlaps with its location to be displaced. After the displacement, the location of the original display content and the location of the newly added display content do not overlap.

[0108] The placeholder area can be a blank or transparent area inserted into the location of the target area in the second area. The size of the placeholder area can be the same as the size of the target area, so that the placeholder area exactly covers the location range of the target area.

[0109] When the second application is an editable application, the newly added display content can be moved in other directions from the area where the original display content was located. Furthermore, the area where the original display content was moved does not overlap with the area where the newly added display content was located; that is, the original display content will be moved out of the area where the newly added display content was located.

[0110] Therefore, a placeholder area with the same size as the target area can be inserted into the target area. When the placeholder area is inserted into the target area, it becomes a new display content and will push the original display content in the target area to other directions. The original display content after being pushed will not overlap with the placeholder area, that is, the original display content has been pushed out of the target area.

[0111] For example, such as Figure 8A As shown, the second application is an editable application, and the target area is located in the upper right corner of the document interface of the second application. Figure 9 As shown, a placeholder area of ​​the same size as the target area is inserted at the location of the target area. In the second application, the paragraph content originally located at this position and the content after this paragraph content are all pushed to the right in sequence. The pushed paragraph content is displayed in the next line, outside the target area.

[0112] For example, such as Figure 10A As shown, the second application is a list application, and the target area is located in the center of the list interface of the second application. Figure 10B As shown, a placeholder area of ​​the same size as the target area is inserted at the location of the target area. In the second application, the list items that were originally located at this position are pushed down, and the pushed list items are displayed below the placeholder area, outside the target area.

[0113] Placeholder areas function similarly to inserting an invisible placeholder element in a flow layout. This placeholder element occupies the space of the target area, causing subsequent content to automatically arrange itself after the placeholder area.

[0114] In the above solution, a placeholder area of ​​the same size as the target area is inserted at the target area's location. The application's own layout engine then automatically moves the original displayed content outside the placeholder area, achieving content avoidance. This method does not require modification of the application's rendering logic or calling specific interfaces, making it suitable for various applications based on fluid layout or automatic layout, and possessing wide applicability and good compatibility.

[0115] In one example of this application, a display method is also provided, the method comprising: The original content in the second region is cached.

[0116] Before adjusting the target content of the second application, the original content in the second area can be cached. The original content can be all the content displayed in the second area before the target content is adjusted, including the original position information of the displayed elements, original layout parameters, and original rendering data. Caching can be implemented through memory caching, temporary file caching, snapshot saving, etc.

[0117] Wherein, after adjusting the target content of the second application in the target area according to the target area, the method includes: If it is determined that there is no overlap between the first region and the second region, the display content of the second region is adjusted to the original content.

[0118] After adjusting the target content, it is possible to continuously monitor whether there is any overlap between the first and second regions. When it is determined that there is no overlap between the first and second regions, that is, the first application no longer obscures any area of ​​the second application, the display content of the second region can be restored to the cached original content.

[0119] For example, if a user closes or moves the first application to another location, causing the first area of ​​the first application to no longer overlap with the second area of ​​the second application, the previously adjusted content in the second area can be restored to its original display state after the overlapping area is detected to have disappeared.

[0120] In the above solution, by caching the original content before adjusting the target content and automatically restoring the original content when the overlapping area is detected to have disappeared, the display content of the second application can be restored to a normal state after the occlusion is removed, avoiding layout residue issues caused by content adjustment operations. This improves the reversibility of content avoidance operations, allowing users to immediately see the complete original content of the second application after the occlusion is removed, further enhancing the user experience and the usability of content avoidance.

[0121] This application also provides a display method in one example, such as Figure 11 As shown, the method includes: Step 701: Determine whether the target conditions are met based on the user operation, and determine the user intent information based on the user operation. The target conditions include at least the existence of an overlapping area between the first area and the second area after the user operation.

[0122] User actions can be at least one of the following: long press, drag, click, gesture, etc. Target conditions can be conditions that trigger content adjustments and permission management; target conditions may include the existence of overlapping areas between the first and second areas after the user action.

[0123] For example, a user drags a first application onto a second application, causing the first area of ​​the first application to overlap with the second area of ​​the second application, thus satisfying the target condition.

[0124] User intent information can be a description of the user's intent inferred from user actions. It may include the type of task the user wishes to perform, the collaboration mode, and the direction of information interaction. User intent information can be determined through methods such as gesture recognition, operation pattern analysis, and context inference.

[0125] For example, if a user drags a map app onto a calendar app, it can be inferred that the user intends to plan their schedule and map together.

[0126] For example, if a user drags a translation app onto a document editing app, it can be inferred that the user intends to translate the document content.

[0127] Step 702: Determine the target task based on the user intent information.

[0128] The target task can be a specific task determined based on the user's intent information, such as "rewrite this chapter", "find a new meeting time slot", or "generate a summary based on web page information".

[0129] For example, when the user's intent is identified as requiring collaborative planning of schedules and maps, the target task can be a route planning task.

[0130] Step 703: Generate a data identifier based on the target task.

[0131] A data identifier can be a unique identifier generated based on the target task. It can be used to establish temporary data channels and permission associations between a first application and a second application. The data identifier may include a task identifier, permission scope identifier, validity period identifier, security verification information, etc. When generating a data identifier, the corresponding data identifier can be generated based on information such as the task type, target scope, and required permissions of the target task.

[0132] Continuing with the example above, the target task is a route planning task, which can generate a data identifier that includes a task identifier of "ROUTE_PLAN_001", a permission scope identifier of "{Read schedule information, read location information}", and an expiration date identifier that expires after the task ends.

[0133] Step 704: The data identifier is transmitted to the first application so that the first application can obtain the permissions of the second application within the target scope corresponding to the target task based on the data identifier. The data identifier becomes invalid after the target task ends.

[0134] Data identifiers can be transmitted to a first application, which can then use these identifiers to obtain permissions from a second application within the target scope corresponding to the target task. These permissions can include at least one of the following: read permissions, reference permissions, synchronization permissions, delegated execution permissions, and control request permissions. The target scope can limit the content and operational range to which the permissions apply.

[0135] Continuing with the example above, the first application is a calendar application, the second application is a map application, the target task is a route planning task, a data identifier corresponding to the route planning task is generated and transmitted to the calendar application, the calendar application obtains the permission of the map application to read information such as the city of business trip, hotel location, and meeting location based on the data identifier, and the calendar application performs collaborative planning of schedule and map based on the obtained information.

[0136] Data identifiers can become invalid after the target task is completed, meaning that data identifiers can have a lifecycle limitation.

[0137] Furthermore, when conditions such as target task completion, user cancellation, permission timeout, or security policy denial are detected, the data identifier can be deregistered and rendered invalid.

[0138] In the above scheme, by determining user intent information based on user actions and further identifying the target task, a temporary data identifier is generated, and a permission channel is established between the first and second applications, enabling context sharing and collaboration between applications. The data identifier expires after the task is completed, improving the security of cross-application data access and avoiding the security risks associated with long-term permissions. Through a dynamic permission management approach based on task semantics, collaboration between applications becomes more flexible, secure, and controllable.

[0139] This application also provides a display method in one example, such as Figure 12 As shown, the method includes: Step 801: Determine if the target conditions are met, and determine the target area based on the display information of the first application and the second application.

[0140] Whether the target conditions are met can be determined based on the user's actions on the first application. If the target conditions are met, the target area can be determined based on the display information of the first and second applications.

[0141] For example, it can detect that a user drags a first application onto a second application, causing an overlap between the first area of ​​the first application and the second area of ​​the second application, which is the target area.

[0142] Step 802: Adjust the target content according to the target area.

[0143] The target content of the second application within the target area can be adjusted according to the target area, so that the adjusted target content is outside the target area, while the overall size and / or position of the adjusted second area remains unchanged. In other words, visual avoidance adjustments are made to the target content in the second application that is obscured by the first application, causing the target content to move out of the target area.

[0144] Step 803: Obtain the user's target operation.

[0145] The target action could be a long press on the status bar or dragging the first application to a non-existent target area.

[0146] For example, if the system detects that the user drags the first application above the second application by long-pressing its status bar and triggers visual avoidance, and the user continues to long-press the first application's status bar, the system can determine the user's intent and target task, and control the first application to execute the target task. If the system detects that the user drags the first application outside the display area of ​​the second application, eliminating the target area between them, the system can restore the display content of the second application to its original state. If the system detects that the user releases their finger and stops long-pressing, the system can maintain the adjustment of the target content.

[0147] Step 804: Adjust the displayed content of the second area to the original content.

[0148] If the user's target action is determined to be exiting visual avoidance, the displayed content in the second area can be adjusted to the original content. The original content is the cached display content of the second area before the target content is adjusted.

[0149] Step 805: Maintain adjustments to the target content.

[0150] If the user's target action instruction is to maintain visual avoidance but not to perform a task, then the adjustment of the target content will continue, visual avoidance will not be exited, and there is no need to control the first application to perform the task.

[0151] Step 806: Determine the target task based on the user intent information.

[0152] Determining the user's target action instruction requires controlling the first application to perform a task, and this can be done based on the user's intent information. The user intent information can be determined by the user's actions or by the input data the user enters into the first application.

[0153] Step 807: Generate a data identifier based on the target task and transmit the data identifier to the first application.

[0154] A data identifier can be generated for the target task, and the data identifier can be transmitted to the first application so that the first application can obtain the second application's permissions within the target scope corresponding to the target task based on the data identifier.

[0155] Step 808: The first application executes the target task based on the read display information, obtains output data, and transmits the output data to the second application.

[0156] It can control the first application to read the display information within the target range corresponding to the target task in the second application, so that the first application can execute the target task according to the display information. After the target task is executed, output data is generated and the output data is transmitted to the second application.

[0157] Step 809: The second application adjusts at least one display element in the second application based on the output data.

[0158] The system can control the second application to adjust at least one display element in the second application based on the output data. The second application can perform adjustments such as insertion, replacement, annotation, scrolling, or re-layout on its own display elements based on the structured results output by the first application.

[0159] In one example of this application, a display method is also provided, the method comprising: The data identification is implemented through a Relationship Token (RT). After determining the target area and adjusting the content between the first and second applications, a relationship token can be generated based on the user intent information. The relationship token is used to define the collaboration type, permission boundaries, data flow, result feedback method, and lifecycle between the current first and second applications.

[0160] Relationship tokens may include host application identifier, embedded application identifier, relationship type, allowed read context scope, allowed write-back operation type, event subscription scope, relationship upgrade conditions, relationship downgrade conditions, lifecycle identifier, audit log identifier, and revocation policy.

[0161] The relation type is used to limit the scope of operations that the first application can perform on the second application. The relation type may include at least one of the following: The first type is the Observe Relationship, which allows the first application to observe the state information of the second application, but does not allow modification of the content in the second application or writing back the results. Observable state information can include non-destructive information such as the window size, available layout area, focus changes, scroll position, and occluded areas of the first application.

[0162] The second type is the reference relationship. The first application can read the context snapshot of the second application within the authorized scope. The context snapshot can include the current document structure, selection area, cursor position, topic tags, etc., but cannot directly modify the content in the second application.

[0163] The third type is the Collaborate Relationship, which allows bidirectional communication, bidirectional synchronization, and object reflow between the first and second applications.

[0164] The fourth type is the delegate relationship, where a second application can delegate a specific task to a first application. The first application performs calculations or generates results within the scope of the task and returns structured results to the second application through the operation object. The second application is responsible for verifying the target scope, permissions, and executing the application after handling conflicts, or prompting the user for confirmation.

[0165] The fifth type is the Control Relationship. In this relationship, the first application can send structured control requests to the second application, such as scrolling to a specific paragraph, expanding a chapter, switching views, or highlighting citation sources. When in a control relationship, the first application does not directly manipulate the second application's internal data; instead, it submits constrained control requests, and the second application executes the corresponding actions according to its own policies.

[0166] Relationship types are not fixed but dynamically adjusted based on user intent, task status, authorization scope, and the object of operation. The relationship upgrade path is: Observer → Referrer → Collaborator → Delegator → Control → Terminate. Conditions for relationship upgrades may include user confirmation of nesting, user active authorization to read the context, user drag-and-drop or selection of a backfill target, user submission of explicit task instructions, and embedded application generating an operation object requiring host execution. Conditions for relationship downgrades or termination may include task completion, user cancellation, permission timeout, host context invalidation, embedded application losing focus, nested container being closed, or security policy rejection.

[0167] In one example of this application, a display method is also provided, the method comprising: The original content of the second application can be cached by establishing a Context Binding Token (CBT) between the first application and the second application. The CBT is used to bind the context snapshot of the first application.

[0168] A context snapshot engine can be used to extract structured semantics from the current state of the first application and generate a context snapshot. When the first application is a document-type application, the context snapshot can include at least one of the following: the current full-text data of the document, the current cursor position, the current selection area, the document structure tree (such as paragraph levels, heading levels, list structure), document type tags, and recent editing history. When the first application is a calendar-type application, the context snapshot can include at least one of the following: the current date range, the schedule list, meeting time, and meeting location.

[0169] The CBT can include an application identifier, a current semantic snapshot identifier, an embedded timestamp, permission level information, and a lifecycle management identifier. The first application can access the second application's context data through this CBT during its lifecycle.

[0170] After generating the CBT, the CBT and context snapshot can be injected into the runtime environment of the first application, enabling the first application to enter context-bound mode. In context-bound mode, the first application can use the context snapshot of the second application as an implicit input context. That is, the first application can use the context snapshot as additional information for target processing of the data to be processed by the second application, and the service scope of the first application is automatically limited to the set of functions for the context of the second application.

[0171] This application also provides a display method in one example, using a collaborative scenario of a calendar application and a map application as an example.

[0172] A user is planning a business trip to Beijing using the calendar app and drags a map app into the schedule planning interface. During the dragging process, the first area of ​​the calendar app overlaps with the second area of ​​the map app, thus identifying the target area within the second area. The user then adjusts the target content in the map app within the target area, moving the target content out of the target area while keeping the map app's display area unchanged.

[0173] Based on user actions, the user's intent is determined to be collaborative planning of schedules and maps, and the target task is identified as route planning. A data identifier corresponding to the route planning task is generated and transmitted to the calendar application. The calendar application then uses this data identifier to obtain permissions from the map application within the scope of the route planning task.

[0174] The calendar app provides the map app with information within the authorized scope, including the city of the business trip, hotel location, meeting venue, meeting time, and the user's authorized itinerary. Based on this information, the map app calculates routes between locations, estimated commute times, and real-time traffic conditions, and returns the results to the calendar app.

[0175] After receiving the result, the calendar app performs the corresponding operations, including switching to a weekday view, rendering the visual effect of the result on the view, and scrolling to the time period specified by the result.

[0176] To achieve the above display method, such as Figure 12 As shown, an example of this application provides a display device, including: The calculation module 901 is used to determine a target area based on the obtained display information of the first application and the second application, wherein the display level of the first application is greater than the display level of the second application, the display area of ​​the first application is the first area, the display area of ​​the second application is the second area, and the target area is the area where the first area and the second area overlap. The processing module 902 is used to adjust the target content of the second application in the target area according to the target area, so that the adjusted target content is outside the target area, and the display area of ​​the adjusted second application is the second area.

[0177] The first region is generated by rendering display data output by the first application, and the second region is generated by rendering display data output by the second application. The size and / or position of the second region are the same before and after the adjustment.

[0178] The calculation module 901 is further configured to determine at least one display element in the target area based on the target area; The processing module 902 is further configured to control the second application to adjust the at least one display element according to the target area, so that the adjusted display element is outside the target area.

[0179] The calculation module 901 is further configured to determine that a set of display elements exists in the target area, and to determine the historical interaction information of the set of display elements based on the operation data of the second application. The set of display elements includes multiple display elements, and the historical interaction information characterizes the degree of interaction between the user and the set of display elements. The calculation module 901 is further configured to determine at least one set of display elements based on the historical interaction information; The processing module 902 is further configured to control the second application to adjust the at least one set of display elements according to the target area, so that the adjusted set of display elements is outside the target area.

[0180] The processing module 902 is further configured to determine display information associated with the target area in the second application based on the target area; The processing module 902 is further configured to control the first application to read the display information, so that the first application performs target processing on the display information and transmits the output data generated after target processing to the second application; The processing module 902 is further configured to control the second application to adjust at least one display element in the second application according to the output data.

[0181] The calculation module 901 is further configured to determine the degree of interaction of each display element in the display element set based on the historical interaction information. The processing module 902 is further configured to control the second application to adjust at least one display element in the set of display elements whose interaction level is higher than a preset threshold, so that the adjusted at least one display element is outside the target area.

[0182] The processing module 902 is further configured to call the first target interface of the second application so that the second application adjusts its application data according to the at least one display element, and re-renders the second area according to the adjusted application data, wherein the at least one display element after re-rendering is outside the target area; The processing module 902 is further configured to generate a simulated operation instruction based on the at least one display element; and send the simulated operation instruction to the second application so that the second application scrolls the display content in the second area according to the simulated operation instruction, wherein the at least one display element in the scrolled second area display content is outside the target area; The processing module 902 is further configured to generate a first size parameter based on the target area; send the first size parameter to the second application so that the second application can rearrange the display content of the second area based on the first size parameter, the rearranged target content is outside the target area, and the size of the second area is determined by a second size parameter, which is different from the first size parameter.

[0183] The processing module 902 is further configured to insert a placeholder area at the location of the target area. The placeholder area has the same size as the target area. The newly added display content in the second application can cause the original display content that overlaps with its location to be displaced. The area where the original display content is located after the displacement does not overlap with the area where the newly added display content is located.

[0184] The processing module 902 is further configured to cache the original content in the second region; The processing module 902 is further configured to determine that there is no overlapping area between the first area and the second area, and adjust the display content of the second area to the original content.

[0185] The processing module 902 is further configured to determine whether the target conditions are met based on the user operation, and to determine user intent information based on the user operation. The target conditions include at least an overlapping area between the first area and the second area after the user operation. The processing module 902 is further configured to determine the target task based on the user intent information; The processing module 902 is further configured to generate a data identifier based on the target task; The processing module 902 is further configured to transmit the data identifier to the first application, so that the first application can obtain the permissions of the second application within the target scope corresponding to the target task based on the data identifier, and the data identifier becomes invalid after the target task ends.

[0186] An electronic device is also provided in one example of this application. Figure 13 A schematic block diagram of an example electronic device 1000 that can be used to implement embodiments of this application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.

[0187] like Figure 13 As shown, the electronic device 1000 includes one or more processors 1001; Storage device 1002, for storing one or more programs, When the one or more programs are executed by the one or more processors 1001, the one or more processors 1001 execute the display method described above.

[0188] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application can be achieved, and this is not limited herein.

[0189] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.

[0190] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A display method, comprising: The target area is determined based on the display information of the first application and the second application. The display level of the first application is greater than that of the second application. The display area of ​​the first application is the first area, the display area of ​​the second application is the second area, and the target area is the area where the first area and the second area overlap. The target content of the second application in the target area is adjusted according to the target area so that the adjusted target content is outside the target area, and the display area of ​​the adjusted second application is the second area.

2. The method according to claim 1, wherein the first region is generated by rendering display data output by the first application, the second region is generated by rendering display data output by the second application, and the size and / or position of the second region are the same before and after adjustment.

3. The method according to claim 1, wherein adjusting the target content of the second application in the target area according to the target area includes: Determine at least one display element in the target area based on the target area; The second application is controlled to adjust the at least one display element according to the target area, so that the adjusted display element is outside the target area.

4. The method according to claim 3, wherein the method comprises: It is determined that a set of display elements exists in the target area, and the historical interaction information of the set of display elements is determined based on the operation data of the second application. The set of display elements includes multiple display elements, and the historical interaction information characterizes the degree of interaction between the user and the set of display elements. Determine at least one set of display elements based on the historical interaction information; The second application is controlled to adjust the at least one set of display elements according to the target area, so that the adjusted set of display elements is outside the target area.

5. The method according to claim 1, wherein the method comprises: Based on the target area, determine the display information associated with the target area in the second application; The first application is controlled to read the display information, so that the first application performs target processing on the display information and transmits the output data generated after target processing to the second application; The second application is controlled to adjust at least one display element in the second application based on the output data.

6. The method of claim 3, wherein controlling the second application to adjust the at least one display element according to the target area includes at least one of the following: The first target interface of the second application is invoked so that the second application adjusts its application data according to the at least one display element, and re-renders the second area according to the adjusted application data, wherein the at least one display element after re-rendering is outside the target area; Generate simulated operation instructions based on at least one of the display elements; The simulated operation command is sent to the second application so that the second application scrolls the display content in the second area according to the simulated operation command, and at least one display element in the scrolled second area display content is outside the target area; A first size parameter is generated based on the target area; the first size parameter is sent to the second application so that the second application can rearrange the display content of the second area according to the first size parameter. The rearranged target content is outside the target area. The size of the second area is determined by a second size parameter, which is different from the first size parameter.

7. The method according to claim 3, wherein adjusting the target content of the second application in the target area according to the target area includes: A placeholder area is inserted at the location of the target area. The placeholder area has the same size as the target area. The newly added display content in the second application can cause the original display content that overlaps with its location to be displaced. After the displacement, the location of the original display content and the location of the newly added display content do not overlap.

8. The method according to claim 1, wherein the method comprises: Cache the original content in the second area; After adjusting the target content of the second application in the target area according to the target area, the method includes: If it is determined that there is no overlap between the first region and the second region, the display content of the second region is adjusted to the original content.

9. The method according to claim 1, wherein the method comprises: Based on the user operation, the target conditions are determined to be met, and the user intent information is determined based on the user operation. The target conditions include at least an overlapping area between the first area and the second area after the user operation. Determine the target task based on the user intent information; Generate data identifiers based on the target task; The data identifier is transmitted to the first application so that the first application can obtain the permissions of the second application within the target scope corresponding to the target task based on the data identifier. The data identifier becomes invalid after the target task ends.

10. An electronic device, comprising: One or more processors; Storage device for storing one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the following method: determining a target area based on the obtained display information of a first application and a second application, wherein the display level of the first application is greater than the display level of the second application, the display area of ​​the first application is a first area, the display area of ​​the second application is a second area, and the target area is the area where the first area and the second area overlap. And adjust the target content of the second application in the target area according to the target area, so that the adjusted target content is outside the target area, and the display area of ​​the adjusted second application is the second area.