Interaction method, electronic device, and computer-readable storage medium

By detecting the scrolling speed on the terminal device and automatically adjusting the window position or shape, the problem of inconvenient window movement on large-screen terminal devices is solved, thus improving the user experience.

WO2026238055A1PCT designated stage Publication Date: 2026-11-19HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/096983
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-15
Filing Date
2026-05-14
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

As terminal device screen sizes increase, users need to drag application windows a considerable distance to move them to their target location, resulting in a poor user experience.

Method used

If the user slides a short distance across the first window and releases their finger, and the sliding speed exceeds a preset speed, the electronic device determines the user's intention and automatically adjusts the window's position or shape, or sends resource information to other devices.

Benefits of technology

It saves user operations, improves user experience, avoids windows pausing or being accidentally touched near the dividing line, and improves the convenience and visual effect of window movement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026096983_19112026_PF_FP_ABST
    Figure CN2026096983_19112026_PF_FP_ABST
Patent Text Reader

Abstract

Provided are an interaction method, an electronic device, and a computer-readable storage medium. In the method, a user can slide a short distance on a first window, and upon releasing a finger, if a sliding speed within a first time period before the finger leaves the first window is greater than a first preset speed, or the user can execute a touchless sliding gesture, if the sliding speed of the touchless sliding operation is greater than a second preset speed, it indicates that the user has an intent to perform a preset operation on the first window. Thus, a first electronic device can determine to perform the preset operation on the first window, for example, changing a display position of the first window in the first electronic device, or the first electronic device changes a display form of the first window, or the first electronic device transmits resource information corresponding to the first window to a second electronic device that has established a communication connection with the first electronic device, etc., thereby saving user operations, and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

An interaction method, an electronic device, and a computer-readable storage medium

[0001] This application claims priority to Chinese Patent Application No. 202510632571.5, filed on May 15, 2025, with the Chinese National Intellectual Property Administration, entitled “An Interaction Method, Electronic Device and Computer-Readable Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to an interaction method, electronic device, and computer-readable storage medium. Background Technology

[0003] With the development of terminal technology, the screen sizes of terminal devices are getting larger and larger. Users can drag application windows to change their display position on the terminal device's screen. The position of the application window moves with the user's finger, and the display position of the application window can be determined based on the ending position of the drag operation, which can be the position where the user releases their finger. However, as the screen size of terminal devices increases, users need to drag the application window a relatively long distance to display it in the target position, resulting in a poor user experience. Summary of the Invention

[0004] This application provides an interaction method, an electronic device, and a computer-readable storage medium. A user can swipe a short distance on a first window and release their finger. If the swipe speed during a first time period before the finger leaves the first window is greater than a preset speed, or if the user performs an air swipe gesture and the swipe speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to perform a preset operation on the first window. This saves user time and improves the user experience.

[0005] In a first aspect, this application provides an interaction method. The method includes: a first electronic device displaying a first window; the first electronic device receiving a first operation gesture, the first operation gesture including a sliding operation of a finger on the first window or a sliding operation in the air; if the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed or the sliding speed of the air operation is greater than a second preset speed, the first electronic device performs a preset operation on the first window.

[0006] The first electronic device performs a preset operation on the first window, including: the first electronic device changes the display position of the first window in the first electronic device, or the first electronic device changes the display form of the first window, or the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device, the resource information corresponding to the first window is used by the second electronic device to display the second window or the resource information corresponding to the first window is used by the second electronic device to play the first media content, and the content of the second window is the same as or partially the same as the content of the first window.

[0007] Optionally, the sliding distance of the finger on the first window is less than the first distance.

[0008] The swiping speed during the first time period before the finger leaves the first window can refer to the instantaneous swiping speed when the finger leaves the first window, or it can be described as the swiping speed during the last time period before the swiping operation ends. The first time period can refer to a short period of time before the finger leaves the first window or the last period of time before the swiping operation ends. It is necessary to ensure that the instantaneous swiping speed when the finger leaves the first window is greater than a first preset speed, or the instantaneous swiping speed when the swiping operation ends is greater than a first preset speed.

[0009] The sliding speed of the air swipe operation includes the maximum sliding speed or the average sliding speed of the air swipe operation.

[0010] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, it indicates an intention to perform a preset operation on the first window. The first electronic device can then determine that it is performing the preset operation on the first window, saving user operations and improving the user experience.

[0011] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a first display area and a second display area, which are different from each other; the first electronic device displays a first window, specifically including: the first window is displayed in the first display area of ​​the first electronic device; the first electronic device changes the display position of the first window in the first electronic device, specifically including: the first electronic device displays the first window on the second display area.

[0012] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time interval before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to the target position displayed in the second display area. The user does not need to continuously drag the first window to the target position in the second display area. On the one hand, this saves user operations; on the other hand, the user does not need to continuously drag the first window beyond the dividing line between the first and second display areas, thus avoiding the problem of the first window stopping near the dividing line and changing its shape. For example, it avoids the problem of the first window stopping near the dividing line and enlarging its size, reducing accidental touches and improving the user experience.

[0013] In some embodiments, the first display area and the second display area may be two display areas displayed in a split-screen manner on the first display screen of the first electronic device. For example, refer to the descriptions in the embodiments of Figures 4A-4E and Figure 5.

[0014] In some embodiments, the first display area and the second display area may be multiple display areas divided by the first electronic device on the first display screen. For example, refer to the descriptions in the embodiments of Figures 6A-6E and 7.

[0015] In some embodiments, the first electronic device includes a first display screen and a second display screen. The first display area may be the display area of ​​the first display screen, and the second display area may be the display area of ​​the second display screen. For example, refer to the description in the embodiments of Figures 10A-10E and 11.

[0016] In some embodiments, the first electronic device may receive and respond to a first operation gesture on the first window, and move the first window arbitrarily within the first display screen.

[0017] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area is fixed.

[0018] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area is determined based on the sliding speed during a first time period before the finger leaves the first window, or the display position of the first window on the second display area is determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window.

[0019] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area cannot exceed a preset position.

[0020] The method for determining the display position of the first window on the second display area can be referred to the description of S507 in the embodiment of Figure 5, and will not be repeated here.

[0021] In conjunction with the first aspect, in one possible implementation, if the display position of the first window on the second display area exceeds a preset position, the first electronic device can change the display form of the first window. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.

[0022] In conjunction with the first aspect, in one possible implementation, the first electronic device is connected to a second electronic device. If the display position of the first window on the second display area exceeds a preset position, the first electronic device can send the resource information corresponding to the first window to the second electronic device. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.

[0023] Optionally, the first electronic device can also be connected to a second electronic device and a third electronic device simultaneously. If the display position of the first window on the second display area exceeds a preset position, the first electronic device can determine whether to send the resource information corresponding to the first window to the second or third electronic device based on the sliding direction of the finger on the first window. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.

[0024] In conjunction with the first aspect, in one possible implementation, the sliding operation of a finger on the first window includes the sliding operation of three fingers on the first window.

[0025] In conjunction with the first aspect, in one possible implementation, the method further includes, before the first electronic device displays the first window on the second display area, the first electronic device displaying the first window at one or more transition positions.

[0026] In one possible implementation, one or more transition positions are determined based on the display position of the first window in the first display area and the display position of the first window in the second display area.

[0027] By implementing this method, the first window can be moved directly from its initial position in the first display area to its target position in the second display area, avoiding a sudden change in the screen, thereby improving the user's visual experience.

[0028] Optionally, the first electronic device may also change the style of the first window, such as size, shape, size, transparency, or one or more styles, and display the style-changed first window at one or more transition positions.

[0029] Optionally, the styles of the first windows displayed at one or more transition positions can be the same or different.

[0030] In conjunction with the first aspect, in one possible implementation, the first electronic device displays a first window, specifically including: the first electronic device displays the first window in a first display form; the first electronic device changes the display form of the first window, specifically including: the first electronic device displays the first window in a second display form, the second display form being different from the first display form.

[0031] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to change the display mode of the first window, and the first electronic device can switch the display mode of the first window from the first display mode to the second display mode.

[0032] In conjunction with the first aspect, in one possible implementation, when the first window includes multiple different display forms, the electronic device can determine the target display form based on the sliding direction of a finger on the first window.

[0033] For example, the first electronic device changes the display form of the first window, specifically including: when the sliding direction of the finger on the first window is a first direction, the first electronic device displays the first window in a second display form.

[0034] For example, when the finger slides on the first window in the second direction, the first electronic device displays the first window in a third display form. The second direction is different from the first direction, and the third display form is different from the first display form.

[0035] It should be noted that it is not limited to two directions, but may include other directions and other display forms, which this application does not limit.

[0036] In conjunction with the first aspect, in one possible implementation, the first electronic device displays the first window in a second display form, including any of the following: the first electronic device enlarges the size of the first window, the first electronic device shrinks the size of the first window, or the first electronic device runs or closes the first application corresponding to the first window in the background.

[0037] For example, reference can be made to the description in the embodiments of Figures 8A-8F and 9.

[0038] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a foldable screen that forms at least two displays, the at least two displays including a first display and a second display, the first display area being the display area of ​​the first display and the second display area being the display area of ​​the second display.

[0039] For example, the first display screen may be screen A as shown in Figure 10A, and the second display screen may be screen B as shown in Figure 10A.

[0040] In conjunction with the first aspect, in one possible implementation, the angle between the first display screen and the second display screen is greater than a first value and less than a second value. For example, the angle between the first display screen and the second display screen could be 120 degrees, meaning the first electronic device is in a folded state. This method can be applied to non-foldable devices.

[0041] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a first display screen, and both a first display area and a second display area are display areas of the first display screen. This method can also be applied to non-foldable devices.

[0042] In conjunction with the first aspect, in one possible implementation, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device. Specifically, when the sliding direction of the finger on the first window is a first direction, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device.

[0043] In one possible implementation, the method further includes: when the sliding direction of the finger on the first window is the second direction, the first electronic device sends the resource information corresponding to the first window to a third electronic device that has established a communication connection with the first electronic device. The second direction is different from the first direction, and the third electronic device is different from the second electronic device.

[0044] It should be noted that the first electronic device is not limited to two electronic devices; it can also connect to other electronic devices. The first electronic device can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction applied to the first window. Different sliding directions correspond to different electronic devices.

[0045] By implementing this method, when a first electronic device is connected to multiple electronic devices, the electronic devices can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction of the finger on the first window, saving user operations and improving the user experience of sharing data between devices.

[0046] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a laptop computer.

[0047] In a second aspect, this application provides an electronic device, namely a first electronic device, which includes: one or more processors and one or more memories, wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, they execute an interaction method provided in any possible implementation of the first aspect above.

[0048] Thirdly, this application provides a computer-readable storage medium including instructions that, when executed by a processor, implement an interaction method provided in any possible implementation of the first aspect above.

[0049] Fourthly, this application provides a computer program product containing instructions, including a computer program that, when executed by a processor, implements an interaction method provided in any possible implementation of the first aspect above.

[0050] Fifthly, this application provides a chip system including a processing circuit and an interface circuit. The interface circuit is used to receive code instructions and transmit them to the processing circuit. The processing circuit is used to run the code instructions to execute an interaction method provided in any possible implementation of the first aspect above.

[0051] For a description of the beneficial effects in aspects two through five, please refer to the description of the beneficial effects in aspect one; this application will not repeat them here. Attached Figure Description

[0052] Figures 1A-1J show schematic diagrams of the display screen configuration of the first electronic device;

[0053] Figure 2 shows a schematic diagram of the hardware structure of the first electronic device;

[0054] Figure 3 shows a schematic diagram of the software structure of the first electronic device;

[0055] Figures 4A-4E illustrate a schematic diagram of a group of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed in a second display area;

[0056] Figure 5 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed in a second display area.

[0057] Figures 6A-6E illustrate a schematic diagram of a group of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed on a second display area of ​​multiple display areas;

[0058] Figure 7 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed in a second display area of ​​multiple display areas.

[0059] Figures 8A-8F illustrate a schematic diagram of a set of electronic devices 100 receiving a first operation gesture for a first window and changing the display form of the first window;

[0060] Figure 9 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and change the display form of the first window;

[0061] Figures 10A-10E illustrate a schematic diagram of a group of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed on a second display screen.

[0062] Figure 11 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed on a second display screen.

[0063] Figures 12A-12C illustrate a schematic diagram of a group of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to a position displayed within the electronic device 200.

[0064] Figure 13 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed within the electronic device 200.

[0065] Figure 14 shows a flowchart of an interactive method. Detailed Implementation

[0066] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0067] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0068] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with a user. It realizes the conversion between the internal form of information and the form that the user can accept. The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of a wearable device.

[0069] This application provides an interaction method. In some embodiments, this method can be applied to a first electronic device. The first electronic device displays a first window. The electronic device can receive a first operation gesture on the first window, the first operation gesture including selecting the first window with a finger, sliding a finger on the first window, and removing a finger from the first window. If the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed, the first electronic device can perform a preset operation on the first window, such as changing the display position of the first window, or changing the display form of the first window, or sending resource information corresponding to the first window to a second electronic device that has established a communication connection with the first electronic device. The resource information corresponding to the first window is used by the second electronic device to display a second window, or the resource information corresponding to the first window is used by the second electronic device to play first media content. The content of the second window is the same as or partially the same as the content of the first window.

[0070] In some embodiments, the first operation gesture may also be described as including a sliding operation of a finger on the first window.

[0071] In some embodiments, the sliding speed during the first time period before the finger leaves the first window can refer to the instantaneous sliding speed at which the finger leaves the first window, or it can be described as the sliding speed during the last time period before the end of the sliding operation. The first time period can refer to a short period of time before the finger leaves the first window or the last period of time before the end of the sliding operation, such as 200ms or 500ms. It is necessary to ensure that the instantaneous sliding speed when the finger leaves the first window is greater than a first preset speed or the instantaneous sliding speed at the end of the sliding operation is greater than a first preset speed.

[0072] In other embodiments, the sliding speed of the finger during the first time period before it leaves the first window can also refer to the average sliding speed of the finger on the first window.

[0073] This method allows users to swipe a short distance on a first window. If the swiping speed is greater than a preset speed during the first time interval before the finger leaves the first window, the first electronic device can determine to perform a preset operation on the first window, saving user operations and improving the user experience.

[0074] It should be noted that the first operation gesture is not limited to selecting the first window with a finger, swiping on the first window with a finger, or lifting the finger from the first window; the first operation gesture can also be an air swipe gesture. For example, the first electronic device can determine whether the swiping speed of the air swipe gesture is greater than a second preset speed. If it is greater than the second preset speed, the first electronic device can perform a preset operation on the first window, such as changing its display position, changing its display mode, or sending the resource information of the first window to a second electronic device. When the first operation gesture is an air swipe gesture, the first window can be the focused window, that is, the window most recently interacted with by the user.

[0075] In some embodiments, the sliding speed of the air swipe gesture is greater than the second preset speed, which may refer to the maximum sliding speed of the air swipe gesture being greater than the second preset speed, or the average sliding speed of the air swipe gesture being greater than the second preset speed.

[0076] Not limited to the first operation gesture, the first window can display one or more operation options, and the target position of the second display area is different for different operation options. In this way, the first electronic device can also receive the user's operation on one or more operation options and display the first window at the target position of the second display area. This application embodiment uses the operation gesture of selecting the first window with a finger, the sliding operation of the finger on the first window, and the operation of leaving the first window as examples for illustration.

[0077] It should be noted that the determination of a user's intention to perform a preset operation on the first window is not limited to the sliding speed being greater than a preset value. It can also be based on the sliding acceleration being greater than a preset value, or on both the sliding speed being greater than a preset value and the sliding acceleration being greater than a preset value. This application embodiment only uses the example of the electronic device 100 determining that the user's intention to perform a preset operation on the first window is based on the sliding speed being greater than a preset value for illustration.

[0078] This application uses the following examples to illustrate the first operation gesture: selecting a first window with a finger, sliding a finger on the first window, and leaving the first window.

[0079] First, let's introduce the form of the display screen of the first electronic device.

[0080] The display screen of the first electronic device can include flat screens and foldable screens. Foldable screens can be further divided into bi-fold screens and multi-fold screens. Bi-fold screens can be divided into inward-folding screens, outward-folding screens, etc. Multi-fold screens can be tri-fold screens, etc.

[0081] Figures 1A-1J show schematic diagrams of the display screen configuration of the first electronic device.

[0082] Figures 1A-1C show schematic diagrams of the display form of the inward-folding screen.

[0083] The display forms of inward-folding screens can be divided into folded state, intermediate state, and unfolded state.

[0084] Figure 1A shows a schematic diagram of the display form when the inward-folding screen is in the unfolded state.

[0085] Figure 1A(a) exemplarily shows a front view of the inward-folding screen in its unfolded state. When the inward-folding screen is in its unfolded state, the displayable screens of the folding screen include screen A, screen B, and screen C. Screen A and screen B can be a single, complete display screen or two separate display screens. For example, when the inward-folding screen is in its unfolded state, the angle α between screen A and screen B is greater than or equal to a first value and less than or equal to a second value. For example, the first value can be 160 degrees, and the second value can be 180 degrees. For instance, when the inward-folding screen is in its unfolded state, the angle α between screen A and screen B can be 180 degrees.

[0086] Figure 1A(b) exemplarily shows a rear view of the inward-folding screen in its folded state. When the inward-folding screen is in its folded state, the display also includes screen C. Screen C is a display completely independent of screens A and B.

[0087] Figure 1B shows a schematic diagram of the display form when the inward-folding screen is in the intermediate state.

[0088] The intermediate state refers to the folding shape where the inward-folding screen can be bent at a certain angle towards the facing surfaces of screens A and B. When the inward-folding screen is in this intermediate state, the displayable screens include screens A, B, and C. In this intermediate state, the angle α between screens A and B is greater than or equal to a third value and less than or equal to a first value. For example, the first value could be 160 degrees, and the third value could be 90 degrees. Alternatively, when the inward-folding screen is in its folded state, the angle α between screens A and B could be 120 degrees.

[0089] Optionally, Figure 1B only shows one display form when the inward-folding screen is in the intermediate state. The display form when the inward-folding screen is in the intermediate state is also different when the included angle α between screen A and screen B is different.

[0090] Figure 1C shows a schematic diagram of the display form when the inward-folding screen is in the folded state.

[0091] The inward-folding screen can continue to bend in the direction where screens A and B are facing each other, until the inward-folding screen is in a folded state.

[0092] As shown in Figure 1C, when the inward-folding screen is in the folded state, the only displayable screen includes screen C; screens A and B are hidden and invisible. The angle α between screens A and B is greater than or equal to 0 degrees and less than a third value. For example, the third value can be 90 degrees. For instance, when the inward-folding screen is in the folded state, the angle α between screens A and B can be 0 degrees.

[0093] Figures 1D-1E show schematic diagrams of the display form of the outward-folding screen.

[0094] Similar to inward-folding screens, outward-folding screens can also be divided into three display forms: unfolded, intermediate, and folded.

[0095] For a front view of the outward-folding screen in its unfolded state, please refer to Figure 1A(a). The outward-folding screen may include screen A and screen B, but the display screen of the outward-folding screen does not include screen C.

[0096] Figure 1D shows a schematic diagram of the display form when the outward-folding screen is in the intermediate state.

[0097] The intermediate state refers to the folding shape where the outward-folding screen can bend in a direction opposite to screens A and B, forming a folded shape with a certain angle. In other words, the folding directions of the outward-folding screen and the inward-folding screen are opposite. When the outward-folding screen is in the intermediate state, the displayable screens include screens A and B, and the angle α between screens A and B is greater than or equal to a third value and less than or equal to a first value. For example, the third value could be 90 degrees, and the first value could be 160 degrees. For instance, when the outward-folding screen is in the intermediate state, the angle α between screens A and B could be 120 degrees.

[0098] Optionally, Figure 1D only shows one display form when the outward-folding screen is in the intermediate state. The angle α between screen A and screen B is different, and the display form when the inward-folding screen is in the intermediate state is also different.

[0099] Figure 1E shows a schematic diagram of the display form when the outward-folding screen is in the folded state.

[0100] As shown in Figure 1E, when the outward-folding screen is in the folded state, the displayable screens can be screen A and screen B. The angle α between screen A and screen B is greater than or equal to 0 degrees and less than or equal to a third value, for example, the third value can be 90 degrees. For example, when the outward-folding screen is in the folded state, the angle α between screen A and screen B can be 0 degrees.

[0101] Optionally, the inward-folding and outward-folding screens shown in Figures 1A-1E are illustrated using left-right folding as an example. In some embodiments, the inward-folding and outward-folding screens can also be folded vertically, and this application does not limit this.

[0102] Figures 1F-1G show schematic diagrams of the tri-fold screen display configuration.

[0103] Tri-fold screens can be divided into three display forms: unfolded, intermediate, and folded.

[0104] Figure 1F shows a schematic diagram of the display form of the tri-fold screen when it is in the unfolded state.

[0105] Figure 1F(a) exemplarily shows a front view of the tri-fold screen in its unfolded state. When unfolded, the tri-fold screen includes screens A, B, and C. The tri-fold screen also includes hinges D and E, which are used to rotate screens A, B, and C in the electronic device 100. Screens A and B can rotate along hinge D in opposite directions or facing directions until the back of screen A is flush with the back of screen B, or until the display surface of screen A is flush with the display surface of screen B. With screen C rotating at a constant angle, when screen B rotates along hinge D, screen B can cause screen C to rotate by the same angle along hinge D.

[0106] Screens C and B can rotate along hinge E in opposite directions or facing directions until the back of screen C is flush with the back of screen B, or until the display surface of screen C is flush with the display surface of screen B. With screen A rotating at a constant angle, when screen B rotates along hinge E, screen B can cause screen A to rotate by the same angle along hinge E.

[0107] In some embodiments, the angle between screen A and screen B can be called α, and the angle between screen B and screen C can be called β.

[0108] When the tri-fold screen is in the unfolded state, the display surfaces of screen A, screen B, and screen C of the electronic device 100 can all be on the same plane. The angle α between the display surfaces of screen A and screen B can be close to 180°, and the angle β between the display surfaces of screen B and screen C can be close to 180°.

[0109] In the front view shown in Figure 1F(a), the display screens of the electronic device 100 can be screen A, screen B and screen C from left to right.

[0110] Figure 1F(b) exemplarily shows the rear view of the tri-fold screen in the unfolded state.

[0111] When the tri-fold screen is unfolded, the backs of screen A, screen B, and screen C of electronic device 100 can all be on the same plane. The angle between the back of screen A and the back of screen B can be close to 180°, and the angle between the back of screen B and the back of screen C can also be close to 180°.

[0112] Figure 1G shows a schematic diagram of the display form of the tri-fold screen in its intermediate state.

[0113] Figure 1G shows a front view of the tri-fold screen in its intermediate state. As shown in Figure 1G, when the tri-fold screen is in its intermediate state, the electronic device 100 displays screen A, screen B, and screen C. The angle α between screen A and screen B can be between 180° and 360°. The angle β between screen B and screen C can be between 0° and 180°.

[0114] Optionally, the A, B, and C screens of the tri-fold screen can be a single, complete display screen. The A and B screens can also be a single, complete display screen, as can the B and C screens.

[0115] Figures 1H-1I show schematic diagrams of the display configuration of the vertically folding screen.

[0116] The display forms of vertically folding screens can include, but are not limited to, unfolded, intermediate, and folded states.

[0117] Figure 1H shows a schematic diagram of the vertically folding screen in the unfolded state.

[0118] The vertically folding screen provided in this application can be either an outward-folding or inward-folding screen device. An outward-folding screen device folds the electronic device by folding it outwards, while an inward-folding screen device folds the electronic device by folding it inwards.

[0119] This application uses an inward-folding screen device as an example for illustration.

[0120] Figure 1H shows a front view of the vertically folding screen in its unfolded state. As shown in Figure 1H, the vertically folding screen includes screen A, screen B, and folding line 101.

[0121] Optionally, screen A and screen B can be a single, complete display.

[0122] In the unfolded state, screens A and B face the user, and the angle between them is close to 180°, meaning that the plane containing screen A and the plane containing screen B are on the same horizontal plane. In the unfolded state, the electronic device 100 can display images on both screens A and B simultaneously. This allows the user to view images from both screens at the same time.

[0123] Figure 1I shows a schematic diagram of the vertically folding screen in its intermediate state.

[0124] As shown in Figure 1I, in the intermediate state, there is a certain angle between the plane where screen A is located and the plane where screen B is located, and this angle is greater than 0° and less than 180°.

[0125] Figure 1J shows a schematic diagram of the display form of a candybar screen.

[0126] As shown in Figure 1J, the candybar screen consists of a complete display screen that cannot be folded.

[0127] It should be noted that Figures 1A-1J above only illustrate several display forms of the display screen. The display screen of the electronic device 100 may also include other display forms, and this application does not limit them.

[0128] Referring to Figure 2 below, the structure of the first electronic device to which the method provided in the embodiments of this application is applicable will be described.

[0129] The first electronic device can be electronic device 100, and the structure of the second electronic device can refer to the structure of the first electronic device. The first electronic device can be, for example, a mobile phone, tablet computer, wearable device with wireless communication capabilities (e.g., smartwatch, smart glasses), in-vehicle terminal device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), smart home device (e.g., smart TV, smart speaker), smart robot, workshop equipment, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, or wireless terminal in smart home, or flying device (e.g., smart robot, drone, airplane), etc. Wearable devices are portable devices that users can wear directly on their bodies or integrate into their clothing or accessories. This application does not limit the type of the first electronic device.

[0130] As shown in Figure 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a display screen 194, and a SIM card interface 195, etc.

[0131] The sensor module 180 may include a gyroscope sensor 180B, a magnetic sensor 180D, an accelerometer sensor 180E, a proximity sensor 180F, a touch sensor 180K, etc. The sensor module 180 may also include a temperature sensor, a pressure sensor, a proximity sensor, a fingerprint sensor, an ambient light sensor, a barometric pressure sensor, a bone conduction sensor, etc.

[0132] It is understood that the electronic device 100 shown in Figure 2 is merely an example and does not constitute a limitation on the electronic device. Furthermore, the electronic device may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in Figure 2 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits (ASICs).

[0133] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0134] The processor 110 may also include a memory for storing instructions and data.

[0135] The execution of the display method provided in this application embodiment can be controlled by the processor 110 or by calling other components. For example, it can call the processing program of this application embodiment stored in the internal memory 121, or call the processing program of this application embodiment stored in a third-party device through the external memory interface 120 to control the wireless communication module 160 to perform data communication with other devices, thereby improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 may include different devices. For example, when integrating a CPU and a GPU, the CPU and GPU can cooperate to execute the display method provided in this application embodiment. For example, some algorithms in the display method can be executed by the CPU, and other algorithms can be executed by the GPU to achieve faster processing efficiency.

[0136] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. Display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, display screen 194 can display various interfaces from the embodiments of this application.

[0137] In this embodiment, the display screen 194 may include one or more display screens. The single display screen may be a flexible display screen or a rigid display screen. The multiple display screens may be multiple rigid display screens or multiple flexible display screens, or may include at least one flexible display screen and at least one rigid display screen.

[0138] The electronic device 100 may also include a camera (a front-facing camera or a rear-facing camera, or a camera that can function as both a front-facing and a rear-facing camera), which is used to capture still images or videos.

[0139] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121.

[0140] The internal memory 121 may also store one or more computer programs corresponding to the algorithm of this application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by one or more processors 110. The one or more computer programs include instructions that can be used to perform the various steps in the following embodiments.

[0141] Of course, the algorithm code of the embodiment of this application can also be stored in external memory. In this case, the processor 110 can run the algorithm code of the embodiment of this application stored in external memory through the external memory interface 120.

[0142] A touch sensor, also known as a "touch panel". The touch sensor can be set on the display screen 194, and the touch sensor and the display screen 194 together form a touch display screen, also known as a "touch screen".

[0143] For example, the display screen 194 of the electronic device 100 can display a main interface, which includes icons for multiple applications (such as a gallery application). For instance, a user can tap the gallery application icon on the main interface using a touch sensor, triggering the processor 110 to launch the gallery application, and the display screen 194 will then show the gallery application's interface.

[0144] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0145] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.

[0146] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.

[0147] In addition, the electronic device 100 can implement audio functions such as music playback and recording through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, and an application processor.

[0148] In some embodiments, the electronic device 100 may further include buttons, motors, indicators, etc. The electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 100. The electronic device 100 can utilize a motor to generate vibration alerts (such as vibration alerts for incoming calls). The indicators in the electronic device 100 may be indicator lights, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc.

[0149] The SIM card interface 195 in the electronic device 100 is used to connect a SIM card. The SIM card can be inserted into or removed from the electronic device 100 to achieve contact and separation with the electronic device 100.

[0150] It should be understood that in practical applications, the electronic device 100 may include more or fewer components than those shown in FIG. 2, and the embodiments of this application are not limited thereto. The illustrated electronic device 100 is merely an example, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0151] Please refer to Figure 3, which exemplarily shows a software structure block diagram of electronic device 100.

[0152] The electronic device provided in this application embodiment can run an operating system (OS). This operating system can be various operating systems used in industry, such as operating systems developed based on OpenHarmony, like HarmonyOS; or other operating systems such as Android™, iOS mobile operating systems; it can also be various open-source operating systems or their derivatives, such as Linux OS, and other embedded operating systems; or it can be a future new operating system, such as an AI operating system based on artificial intelligence. An operating system is a set of interconnected system software programs that manage and control the operation of electronic devices, utilize and run hardware and software resources, and provide public services to organize user interaction. In electronic devices, the operating system connects downwards to the physical devices at the hardware layer and provides a runtime environment for application software upwards.

[0153] An operating system typically includes a kernel layer, a middleware layer, and an application layer. The application layer includes applications, which can include system applications and third-party applications. The middleware layer includes a suite of software providing various services to application developers, or frameworks providing services such as databases, multimedia, and graphics, or capabilities such as distributed scheduling and system scaling. For example, the middleware layer may include a framework layer and / or a system service layer. The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The system service layer includes the system's core capabilities, providing services to applications through the framework layer. The kernel layer is the layer between hardware and software. The kernel layer may include hardware drivers and the operating system kernel. In addition to providing hardware drivers, the kernel layer also supports functions such as memory management and system process management.

[0154] The electronic devices we use in our daily lives come in various types and forms, and are applied in a wide range of scenarios. Therefore, based on the different forms and functions of electronic devices, different application scenarios, and different user needs, the operating systems used in these devices may also differ. The basic functions implemented by the electronic device provided in this application can be implemented using a general-purpose operating system or a dedicated operating system. To more clearly illustrate the implementation of the embodiments of this application under a specific operating system, the architecture of HarmonyOS is shown below. Those skilled in the art can deduce the implementation of the embodiments of this application under other specific operating systems, such as AAndroid™.

[0155] As shown in Figure 3, the software architecture of an electronic device can be divided into several layers. In some embodiments, from bottom to top, these layers are: kernel layer, system service layer, framework layer, and application layer. Layers communicate with each other through software interfaces. System functions can be tailored, added, or combined at the subsystem level depending on the deployment scenario of different device forms. Each subsystem can also be tailored, added, or combined at the functional level.

[0156] The Kernel Abstraction Layer (KAL) provides basic kernel capabilities to upper layers by shielding the differences between multiple kernels, including but not limited to process / thread management, memory management, file system, network management, and peripheral device management.

[0157] Kernel Subsystem: Supports the selection of a suitable OS kernel for different resource-constrained devices, including but not limited to Linux kernel, HarmonyOS kernel, LiteOS (Lite Operating System), etc.

[0158] Driver Subsystem: The driver framework is the foundation for the open system hardware ecosystem, providing unified peripheral access capabilities and a framework for driver development and management. The driver framework includes: display drivers, camera drivers, audio drivers, Bluetooth drivers, sensor drivers, etc.

[0159] The system service layer comprises the core capabilities of the system, providing services to applications through the framework layer. This layer includes, but is not limited to, the following subsystems:

[0160] The system's basic capability subsystem set provides fundamental capabilities for the operation, scheduling, and migration of distributed applications across multiple devices. This set may include distributed soft bus, distributed data management, distributed task scheduling, and Ark multi-language runtime; it may also include multi-modal input subsystem, graphics subsystem, security subsystem, and AI sub-business system.

[0161] The multi-mode input subsystem may include a swipe control module, which monitors whether a first operation gesture has ended. The first operation gesture includes selecting a first window, swiping a finger on the first window, and removing a finger from the first window. If the swipe control module determines that the first operation gesture has ended, i.e., that the finger has left the first window, it can determine whether the swiping speed during a first time period before the finger leaves the first window is greater than a first preset speed. If the swipe control module determines that the swiping speed during the first time period before the finger leaves the first window is greater than the first preset speed, it can determine the target position of the first window based on the swiping direction of the finger on the first window and / or the swiping speed during the first time period before the finger leaves the first window. The electronic device 100 can display the first window based on the target position of the first window.

[0162] The graphics subsystem may include a graphics rendering module. The electronic device 100 can display the first window based on a target location, including: the graphics rendering module rendering the first window, the GPU compositing the first window based on the rendered first window, and displaying the first window at the target location.

[0163] Optionally, the multi-modal input subsystem can also determine one or more transition positions. The graphics rendering module can render the first window, and the GPU can composite the first window based on the rendered first window, displaying the first window at one or more transition positions. Optionally, the style of the first window displayed at different transition positions can be different. The window style can include, but is not limited to, size, shape, transparency, color, etc.

[0164] Basic software service subsystem set: provides public and general software services; the basic software service subsystem set may include event notification subsystem, telephone service subsystem, multimedia subsystem, etc.

[0165] Enhanced software service subsystem suite: Provides differentiated enhanced software services for different devices; the enhanced software service subsystem suite may include smart screen proprietary business subsystem, wearable proprietary business subsystem, IoT proprietary business subsystem, etc.

[0166] Hardware service subsystem set: Provides hardware services; the hardware service subsystem set may include location service subsystem, user IAM (Identity and Access Management) subsystem, wearable proprietary hardware service subsystem, biometric identification, IoT proprietary hardware service subsystem, etc.

[0167] Distributed task scheduling enables distributed service management (discovery, synchronization, registration, and invocation), supporting remote startup, remote invocation, remote connection, and migration of applications across devices.

[0168] Distributed data management enables data synchronization, data storage, data sharing, and data access across all scenarios and devices.

[0169] The distributed soft bus provides communication-related capabilities for seamless interconnection between multiple devices, including: WLAN service capabilities, Bluetooth service capabilities, soft bus, inter-process communication (IPC), and StarFlash communication capabilities.

[0170] Ark Multilingual Runtime is a unified compilation runtime platform designed to support the joint compilation and execution of multiple programming languages ​​and multiple chip platforms.

[0171] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The framework layer includes: the ArkUI framework (which provides a complete infrastructure for UI development of system applications, including UI functions such as components, layouts, animations, and interactive events, as well as a real-time interface preview tool), the user application framework, and the Ability framework (an Ability is a lightweight application; the Ability framework schedules and manages the operation and lifecycle of Abilities). Different devices may have different operating systems, and the APIs they support may also differ.

[0172] The HarmonyOS API is a series of open capabilities provided to support HarmonyOS application development. The HarmonyOS API can be set at the framework layer or independently of the framework layer. The HarmonyOS API includes the Audio API (audio service), Push API (push service), and Account API (account service), among others.

[0173] Applications can include system apps and extended / third-party apps. System apps can include the desktop, control bar, settings, contacts, phone, camera, gallery, etc., while extended / third-party apps can include, but are not limited to, social apps, travel apps, etc.

[0174] The following section provides a detailed description of an interactive method provided in this application, in conjunction with the accompanying drawings and flowchart.

[0175] Scenario 1: Single-display application scenario

[0176] In a single-display application scenario, the electronic device 100 includes a first display screen, on which a first window is displayed.

[0177] Optionally, the first display screen can be a rigid display screen or a flexible display screen. When the first display screen is a flexible screen, it can be an inward-folding screen as shown in Figures 1A-1C, an outward-folding screen as shown in Figures 1D-1E, a tri-folding screen as shown in Figures 1F-1G, or a vertically folding screen as shown in Figures 1H-1I. When the first display screen is a flexible screen, it can be a flat screen as shown in Figure 1J. The first display screen can also be other types of screens, such as extended screens; this application does not limit the form of the first display screen.

[0178] Example 1: The first display screen is split-screen, with a first display area and a second display area. A first window is displayed in the first display area. The electronic device 100 can receive and respond to a first operation gesture targeting the first window, moving the first window to be displayed in the second display area.

[0179] Figures 4A-4E illustrate a schematic diagram of a set of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed in a second display area.

[0180] As shown in Figure 4A, the electronic device 100 displays a split screen with a display area 410 and a display area 420, separated by a dividing line 430. Display area 410 displays a music playback interface provided by a music application, while display area 420 displays a note-taking interface provided by a memo application. Display area 410 also displays a window 440, which displays a chat interface provided by an instant messaging application. The initial position of window 440 within display area 410 can be the display position shown in Figure 4A.

[0181] Optionally, display areas 410 and 420 may also display other content.

[0182] The display position of window 440 can refer to the position of the center point of window 440, the position of the center point of the top edge of window 440, the position of the center point of the bottom edge of window 440, or the position of any vertex of window 440. This application does not limit the definition of the display position of window 440. In this embodiment, the display position of window 440 refers to the position of the center point of window 440 as an example for illustration.

[0183] Optionally, window 440 can be a floating window or a free window. When window 440 is a floating window, it is always displayed on top of other application windows. When window 440 is a free window, its display hierarchy can change according to user operations. For example, when window 440 is the focused window, it can be displayed on top of the music playback interface; similarly, when the music playback interface is the focused window, it can be displayed on top of window 440.

[0184] The electronic device 100 can receive a user's first operation gesture on the window 440 and move the window 440 to be displayed in the second display area.

[0185] As shown in Figures 4A and 4B, the electronic device 100 can receive a user's three-finger touch operation on window 440. Then, the electronic device 100 can receive a sliding operation of the user's three fingers on window 440; for example, the user's three fingers can slide from the dotted line position in Figure 4B to the solid line position in Figure 4B. Afterwards, the user's three fingers leave window 440. In response to the user's three fingers leaving window 440, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to move window 440, and the electronic device 100 can move window 440 and display window 440 in display area 420. If the electronic device 100 determines that the sliding speed of the user's three fingers in the first time period before leaving the window 440 is less than the first preset speed, then the electronic device 100 can determine that the user has no intention of moving the window 440. The electronic device 100 can continue to display the window 440 in the display area 410 without changing the display position of the window 440.

[0186] Optionally, when a user slides three fingers on window 440, window 440 can move along with the user's three fingers, and the display position of window 440 can remain unchanged. This application does not limit this.

[0187] Optionally, it is not limited to three fingers; it can also be one finger, two fingers, more fingers, or finger joints, etc. This application only uses three fingers as an example for illustration, and this application does not limit it.

[0188] Optionally, if the electronic device 100 determines that the sliding speed of the user's three fingers during a first time period before leaving the window 440 is greater than a first preset speed, the electronic device 100 can determine the target position of the window 440 in the display area 420. For example, the target position of the window 440 in the display area 420 can be the display position of the window 440 shown in FIG4E.

[0189] Optionally, the target position of window 440 in display area 420 can be fixed, or it can be determined based on the sliding speed of the user's three fingers in the first time period before leaving window 440, or it can be determined based on the sliding speed and sliding direction of the user's three fingers in the first time period before leaving window 440.

[0190] In some embodiments, the electronic device 100 can determine one or more transition positions based on the initial position of the window 440 in the display area 410 and the target position of the window 440 in the display area 420. The electronic device 100 can sequentially display the window 440 at one or more transition positions until the window 440 is displayed at the target position in the display area 420. In this way, the window 440 can transition from its initial position in the display area 410 to its target position in the display area 420, avoiding abrupt screen changes as the window 440 moves directly from its initial position in the display area 410 to its target position in the display area 420, thereby improving the user's visual experience.

[0191] Optionally, the electronic device 100 may also change the style of the window 440, such as size, shape, transparency, color, or one or more other styles, and display the style-changed window 440 at one or more transition positions.

[0192] Optionally, the styles of windows 440 displayed at one or more transition positions can be the same or different.

[0193] For example, as shown in Figures 4C and 4D, one or more transition positions may be the display position of window 440 shown in Figure 4C and the display position of window 440 shown in Figure 4D.

[0194] Optionally, one or more transition positions may not be included, and window 440 may also move directly from its initial position in display area 410 to its target position in display area 420.

[0195] Figure 5 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed in a second display area.

[0196] S501, the first electronic device includes a first display screen, which is divided into a first display area and a second display area, and a first window is displayed in the first display area.

[0197] The display position of the first window in the first display area can be referred to as the initial position of the first window.

[0198] The display position of the first window can refer to the position of the center point of the first window, the position of the center point of the top edge of the first window, the position of the center point of the bottom edge of the first window, or the position of any vertex of the first window. This application does not limit the definition of the display position of the first window. In this embodiment, the display position of the first window refers to the position of the center point of the first window as an example for illustration.

[0199] Optionally, the second display area can be located above or below the first display area, or to the left or right of the first display area.

[0200] For example, the first display area can be display area 410 as shown in Figure 4A, and the second display area can be display area 420 as shown in Figure 4A. The first display area displays a music playback interface provided by a music application, and the second display area displays a note editing interface provided by a memo application. The first window can be window 440 as shown in Figure 4A.

[0201] S502, the first electronic device receives a first operation gesture for the first window, the first operation gesture including the operation of selecting the first window with a finger, the operation of sliding the finger on the first window, and the operation of leaving the first window with a finger.

[0202] Optionally, the finger can be a single finger, two fingers, three or more fingers, or a finger joint.

[0203] The electronic device 100 can receive a first operation gesture for the first window and change the display position of the first window.

[0204] S503, The first electronic device determines whether the first operation gesture has ended.

[0205] In response to a first gesture toward the first window, the first electronic device needs to determine whether the first gesture has ended. The end of the first gesture can be determined by whether the finger has left the first window.

[0206] Upon determining that the first operation gesture has ended, the first electronic device can determine whether the user intends to move the display position of the first window, i.e., execute S504.

[0207] If it is determined that the first operation gesture has not ended, the first electronic device can continue to monitor whether the first operation gesture has ended, that is, execute S503.

[0208] S504, The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.

[0209] Upon determining that the first operation gesture has ended, the first electronic device can determine whether the user intends to move the display position of the first window, that is, whether the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed.

[0210] If the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, that is, if the user intends to move the display position of the first window, the first electronic device can move the first window to the target position in the second display area, and the first electronic device executes S506-S507.

[0211] If the sliding speed is less than the first preset speed during the first time period before the finger leaves the first window, that is, if the user has no intention to move the display position of the first window, the first electronic device may not change the display position of the first window and continue to display the first window at the initial position of the first display area. The first electronic device executes S505.

[0212] S505, The first electronic device continues to display the first window in the first display area.

[0213] If the sliding speed is less than the first preset speed during the first time period before the finger leaves the first window, the first electronic device may continue to display the first window at the initial position of the first display area without changing the display position of the first window.

[0214] S506, The first electronic device determines the target position of the first window in the second display area.

[0215] S507, The first electronic device displays a first window at a target position in the second display area.

[0216] If the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed, the first electronic device can determine the target position of the first window in the second display area.

[0217] Optionally, the target position of the first window in the second display area can be fixed, or it can be determined based on the sliding speed during a first time period before the finger leaves the first window, or it can be determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window.

[0218] Optionally, the target position of the first window in the second display area is determined based on the sliding speed during a first time period before the finger leaves the first window, or, if determined based on the sliding speed and direction during the first time period before the finger leaves the first window, the greater the sliding speed during the first time period before the finger leaves the first window, the greater the distance between the target position of the first window in the second display area and the initial position of the first window in the first display area; conversely, the smaller the sliding speed during the first time period before the finger leaves the first window, the smaller the distance between the target position of the first window in the second display area and the initial position of the first window in the first display area. The distance between the target position of the first window in the second display area and the initial position of the first window in the first display area can refer to the vertical distance between the center point of the first window at the target position in the second display area and the center point of the first window at the initial position in the first display area.

[0219] Optionally, if the target position of the first window in the second display area is determined based on the sliding speed during a first time period before the finger leaves the first window, or based on the sliding speed and direction during the first time period before the finger leaves the first window, the target position of the first window in the second display area cannot exceed a preset position to avoid the first window exceeding the second display area and resulting in incomplete display of the first window. In other words, after the first electronic device determines the target position of the first window in the second display area, it needs to determine whether the target position of the first window in the second display area exceeds the preset position. If the target position of the first window in the second display area does not exceed the preset position, the first electronic device can display the first window at the target position in the second display area. If the target position of the first window in the second display area has exceeded the preset position, the first electronic device can display the first window at the preset position in the second display area.

[0220] Specifically, when the first window is displayed at a preset position in the second display area, the distance between the edge of the first window and the edge of the second display area is greater than or equal to the preset distance (e.g., 0).

[0221] For example, when the second display area is located below the first display area, the distance between the edge of the first window and the edge of the second display area can refer to the distance between the bottom edge of the first window and the bottom edge of the second display area, the distance between the left edge of the first window and the left edge of the second display area, or the distance between the bottom edge of the first window and the bottom edge of the second display area, or the distance between the right edge of the first window and the right edge of the second display area.

[0222] For example, when the second display area is located above the first display area, the distance between the edge of the first window and the edge of the second display area can refer to the distance between the top edge of the first window and the top edge of the second display area, the distance between the left edge of the first window and the left edge of the second display area, or the distance between the top edge of the first window and the top edge of the second display area, or the distance between the right edge of the first window and the right edge of the second display area.

[0223] For example, when the second display area is located to the left of the first display area, the distance between the edge of the first window and the edge of the second display area can refer to the distance between the upper edge of the first window and the upper edge of the second display area, the distance between the left edge of the first window and the left edge of the second display area, or it can refer to the distance between the lower edge of the first window and the lower edge of the second display area, or the distance between the left edge of the first window and the left edge of the second display area.

[0224] For example, when the second display area is located to the right of the first display area, the distance between the edge of the first window and the edge of the second display area can refer to the distance between the top edge of the first window and the top edge of the second display area, the distance between the right edge of the first window and the right edge of the second display area, or it can refer to the distance between the bottom edge of the first window and the bottom edge of the second display area, or the distance between the right edge of the first window and the right edge of the second display area.

[0225] Optionally, after determining the target position of the first window in the second display area, the first electronic device can determine one or more transition positions based on the initial position of the first window in the first display area and the target position of the first window in the second display area. The first electronic device can sequentially display the first window at one or more transition positions until the first window is displayed at the target position in the second display area. In this way, the first window can transition from its initial position in the first display area to its target position in the second display area via one or more transition positions, avoiding abrupt screen transitions and thus improving the user's visual experience.

[0226] Optionally, the first electronic device may also change the style of the first window, such as size, shape, size, transparency, or one or more styles, and display the style-changed first window at one or more transition positions.

[0227] Optionally, the styles of the first windows displayed at one or more transition positions can be the same or different.

[0228] Optionally, one or more transition positions may not be included, and the first window may move directly from its initial position in the first display area to its target position in the second display area.

[0229] By implementing the method shown in Figures 4A-4E and 5, a user can slide a short distance on the first window. After releasing their finger, if the sliding speed during the first time interval before the finger leaves the first window is greater than a first preset speed, the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to the target position displayed in the second display area. The user does not need to continuously drag the first window to the target position in the second display area. On the one hand, this saves user operations. On the other hand, the user does not need to continuously drag the first window beyond the dividing line between the first and second display areas, thus avoiding the problem of the first window stopping near the dividing line and changing its shape. For example, it avoids the problem of the first window stopping near the dividing line and enlarging its size, reducing accidental touches and improving the user experience.

[0230] Example 2: A first window is displayed on a first display screen. The first electronic device can divide the first display screen into two, three, four, or more display areas. If the first window is displayed in the first display area, the first electronic device can receive and respond to a first operation gesture for the first window, moving the first window to be displayed in any other display area.

[0231] The difference between Example 2 and Example 1 is that in Example 2, the first display screen is not split-screen, while in Example 1, the first display screen is split-screen.

[0232] When the first electronic device divides the first display screen into two display areas, the description in Example 1 can be referred to, and will not be repeated here.

[0233] The following explanation will focus on Example 2, where the first electronic device divides the first display screen into four display areas.

[0234] Figures 6A-6E illustrate a schematic diagram of a group of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed on a second display area of ​​multiple display areas.

[0235] As shown in Figure 6A, the electronic device 100 includes a first display screen, which can divide the first display screen into four display areas, such as display area 610, display area 620, display area 630, and display area 640. Window 440 is displayed in display area 610.

[0236] Optionally, a window 440 is displayed in the display area 610, which may refer to the ratio between the size of the window 440 displayed in the display area 610 and the total size of the window 440 exceeding a preset ratio (e.g., 50%).

[0237] The electronic device 100 can receive the user's first operation gesture on the window 440 and move the window 440 to be displayed in the other three of the four display areas.

[0238] As shown in Figures 6A and 6B, the electronic device 100 can receive a user's three-finger touch operation on window 440. Then, the electronic device 100 can receive a sliding operation of the user's three fingers on window 440; for example, the user's three fingers can slide from the dotted line position in Figure 6B to the solid line position in Figure 6B. Afterwards, the user's three fingers leave window 440. In response to the user's three fingers leaving window 440, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to move window 440. The electronic device 100 can move window 440, and based on the sliding direction of the user's three fingers on window 440, it can determine which of the multiple display areas to move and display window 440 on.

[0239] It should be noted that different sliding directions correspond to different target display areas.

[0240] For example, as shown in Figure 6B, when the user's three fingers slide downwards on window 440, the target display area can be display area 630.

[0241] For example, when a user slides three fingers on window 440 in the right direction, the target display area can be display area 620.

[0242] For example, when a user slides three fingers on window 440 in the direction of downward right, the target display area can be display area 640.

[0243] Example 2 uses a target display area of ​​display area 630 as an example for illustration.

[0244] Optionally, when a user slides three fingers on window 440, window 440 can move along with the user's three fingers, and the display position of window 440 can remain unchanged. This application does not limit this.

[0245] Optionally, it is not limited to three fingers; it can also be one finger, two fingers, more fingers, or finger joints, etc. This application only uses three fingers as an example for illustration, and this application does not limit it.

[0246] After the electronic device 100 determines that the target display area is the display area 630 based on the sliding direction of the user's three fingers on the window 440, the electronic device 100 can determine the target position of the window 440 in the display area 630. For example, the target position of the window 440 in the display area 630 can be the display position of the window 440 shown in FIG6E.

[0247] In some embodiments, the target position of window 440 on display area 630 may be fixed. In other embodiments, the target position of window 440 on display area 630 may also be determined based on the sliding speed of the user's three fingers during a first time period before the user's three fingers leave window 440, or based on the sliding speed and sliding direction of the user's three fingers during the first time period before the user's three fingers leave window 440.

[0248] In some embodiments, the electronic device 100 may determine one or more transition positions based on the initial position of the window 440 in the display area 410 and the target position of the window 440 in the display area 420. These one or more transition positions may be the display position of the window 440 shown in FIG. 6C or the display position of the window 440 shown in FIG. 6D. Specifically, please refer to the description in Example 1, which will not be repeated here.

[0249] Figure 7 illustrates a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to a second display area in a plurality of display areas.

[0250] S701, the first electronic device includes a first display screen, the first display screen includes multiple display areas, and a first window is displayed in the first display area of ​​the multiple display areas.

[0251] For example, the multiple display areas can be display area 610, display area 620, display area 630 and display area 640 as shown in FIG. 6A. The first window can be window 440 as shown in FIG. 6A.

[0252] S702, the first electronic device receives a first operation gesture for the first window, the first operation gesture including an operation of selecting the first window with a finger, a sliding operation of a finger on the first window, and an operation of leaving the first window with a finger.

[0253] S703, The first electronic device determines whether the first operation gesture has ended.

[0254] S704, The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.

[0255] For a description of S702-S704, please refer to the descriptions in S502-S504; this application will not repeat them here.

[0256] The difference between S704 and S504 is that in S704, if the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, indicating that the user intends to move the display position of the first window, the first electronic device can move the first window to another display area in the multiple display areas based on the sliding direction of the finger on the first window, and the first electronic device executes S706-S710. If the sliding speed during the first time period before the finger leaves the first window is less than the first preset speed, indicating that the user does not intend to move the display position of the first window, the first electronic device can maintain the display position of the first window and continue to display the first window at its initial position in the first display area, and the first electronic device executes S705.

[0257] S705, The first electronic device continues to display the first window in the first display area.

[0258] For an introduction to S705, please refer to the description in S505; this application will not repeat it here.

[0259] S706, The first electronic device determines the target display area based on the sliding direction of a finger on the first window.

[0260] If the sliding speed of the finger is greater than a first preset speed during a first time period before the finger leaves the first window, the first electronic device can determine the target display area based on the sliding direction of the finger on the window 440. Different sliding directions of the finger on the window 440 result in different target display areas.

[0261] For example, the target display area may include a second display area and a third display area. When the finger slides on the window 440 in a first direction, the target display area may be the second display area. When the finger slides on the window 440 in a second direction, the target display area may be the third display area.

[0262] For example, when the first direction can be downward, the second display area can be the display area 630 shown in Figure 6A. As another example, when the first direction can be to the right, the third display area can be the display area 620 shown in Figure 6A.

[0263] It should be noted that the multiple display areas are not limited to the second and third display areas; they may include other display areas as well, and this application does not limit this.

[0264] When the target display area is the second display area, the first electronic device executes S707-S708.

[0265] When the target display area is the third display area, the first electronic device executes S709-S710.

[0266] S707, The first electronic device determines the target position of the first window in the second display area.

[0267] S708, The first electronic device displays a first window at a target position in the second display area.

[0268] S709, The first electronic device determines the target position of the first window in the third display area.

[0269] S710, The first electronic device displays a first window at a target position in the third display area.

[0270] For a description of S707 and S708, or S709 and S710, please refer to the descriptions in S506 and S507; these will not be repeated here.

[0271] Example 3: A first window is displayed on the first screen. The first electronic device can receive and respond to a first operation gesture targeting the first window, and move the first window arbitrarily within the first screen. The target position of the first window on the first screen cannot exceed a preset position.

[0272] Example 3 is similar to Example 2, except that in Example 3, the first electronic device does not divide the first display screen into multiple display areas. The first electronic device can receive and respond to a first operation gesture for the first window. The target position of the first window in the first display screen is determined based on the sliding direction of the finger on the first window and the sliding speed in the first time period before the finger leaves the first window. For details, please refer to the descriptions in Example 1 and Example 2, which will not be repeated here.

[0273] Example 4: A first window is displayed on a first screen. A first electronic device can receive and respond to a first operation gesture on the first window. The first electronic device can change the display form of the first window based on the sliding direction of the finger on the first window. Different sliding directions of the finger on the first window result in different display forms of the first window. The display form of the first window may include, but is not limited to, any of the following: the first application corresponding to the first window is running in the background or closed; the first window is enlarged (e.g., full-screen display or maximized display); the first window is shrunk (e.g., minimized display).

[0274] For example, when the finger slides on the first window in a first direction, the first electronic device can display the first window in a first configuration. When the finger slides on the first window in a second direction, the first electronic device can display the first window in a second configuration.

[0275] It should be noted that it is not limited to two directions, but may include other directions and other display forms, which this application does not limit.

[0276] Figures 8A-8F illustrate a schematic diagram of a set of electronic devices 100 receiving a first operation gesture for a first window and changing the display form of the first window.

[0277] As shown in Figure 8A, the electronic device 100 includes a first display screen, on which a window 440 is displayed.

[0278] For example, as shown in Figures 8A and 8B, electronic device 100 can receive a user's three-finger touch operation on window 440. Then, electronic device 100 can receive a sliding operation of the user's three fingers on window 440; for example, the user's three fingers can slide from the dotted line position in Figure 8B to the solid line position in Figure 8B. Afterwards, the user's three fingers leave window 440. In response to the user's three fingers leaving window 440, electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then electronic device 100 can determine that the user intends to change the display mode of window 440. Then, electronic device 100 can determine the display mode of window 440 based on the sliding direction of the fingers on window 440.

[0279] It should be noted that the display appearance of window 440 will vary depending on the direction in which the finger slides on the window.

[0280] As shown in Figure 8C, when the user slides three fingers on window 440 to the left (or right), the electronic device 100 can close the process of the first application corresponding to window 440 or send the first application to the background, and the electronic device 100 will stop displaying window 440.

[0281] For example, as shown in Figures 8D and 8E, electronic device 100 can receive a user's three-finger touch operation on window 440. Then, electronic device 100 can receive a sliding operation of the user's three fingers on window 440; for example, the user's three fingers can slide from the dotted line position in Figure 8E to the solid line position in Figure 8E. Afterwards, the user's three fingers leave window 440. In response to the user's three fingers leaving window 440, electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then electronic device 100 can determine that the user intends to change the display mode of window 440. Then, electronic device 100 can determine the display mode of window 440 based on the sliding direction of the fingers on window 440.

[0282] As shown in Figure 8F, when the user slides three fingers on window 440 in a downward (or upward) direction, the electronic device 100 can display window 440 in full screen.

[0283] Figure 9 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and change the display form of the first window.

[0284] S901, the first electronic device includes a first display screen, on which a first window is displayed.

[0285] For example, the first window can be window 440 as shown in Figure 8A.

[0286] S902, the first electronic device receives a first operation gesture for the first window, the first operation gesture including an operation of selecting the first window with a finger, a sliding operation of a finger on the first window, and an operation of leaving the first window with a finger.

[0287] S903, The first electronic device determines whether the first operation gesture has ended.

[0288] S904, The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.

[0289] For a description of S902-S904, please refer to the description in S502-S504. This application will not repeat it here.

[0290] The difference between S904 and S504 is that in S904, if the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, indicating that the user intends to change the display form of the first window, the first electronic device can determine the display form of the first window based on the sliding direction of the finger on the first window, and the first electronic device executes S906-S908. If the sliding speed during the first time period before the finger leaves the first window is less than the first preset speed, indicating that the user does not intend to change the display form of the first window, the first electronic device may not change the display form of the first window, and the first electronic device executes S905.

[0291] S905, The first electronic device continues to display the first window in the first display area.

[0292] For an introduction to S905, please refer to the description in S505; this application will not repeat it here.

[0293] S906, The first electronic device determines the sliding direction of the finger on the first window.

[0294] If the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed, the first electronic device can determine the display form of the first window based on the sliding direction of the finger on the window 440. Different sliding directions of the finger on the window 440 result in different display forms of the first window.

[0295] For example, the display mode of the first window may include a second display mode and a third display mode. When the finger slides on the window 440 in the first direction, the display mode of the first window may be the second display mode. When the finger slides on the window 440 in the second direction, the display mode of the first window may be the third display mode.

[0296] It should be noted that the scope is not limited to the first and second directions, the second display form and the third display form, but may include other directions and other display forms, which are not limited in this application.

[0297] S907, The first electronic device displays the first window in a second display format.

[0298] When the first electronic device determines that the sliding direction of the finger on the first window is the first direction, the first electronic device can display the first window in a second display mode.

[0299] For example, when the first direction can be left or right, the second display mode can be to close the process of the first application corresponding to the first window or to run the first application in the background.

[0300] S908, The first electronic device displays the first window in a third display format.

[0301] When the first electronic device determines that the sliding direction of the finger on the first window is the second direction, the first electronic device can display the first window in a third display mode.

[0302] For example, when the second direction can be downward or upward, the second display mode can be to display the first window in full screen.

[0303] Example 5: A first window is displayed within a first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the display position of the first window within the display area of ​​the first electronic device.

[0304] If the target position of the first window in the display area of ​​the first electronic device does not exceed the preset position, the first electronic device may display the first window at the target position in the display area of ​​the first electronic device.

[0305] If the target position of the first window in the display area of ​​the first electronic device exceeds a preset position, the first electronic device can change the display form of the first window. Optionally, if the first window includes multiple display forms, the electronic device can determine the target display form of the first window based on the sliding direction of the user's finger on the first window. Different sliding directions of the finger on the first window result in different target display forms of the first window.

[0306] For details, please refer to the descriptions in Examples 1, 2, 3 and 4, which will not be repeated here.

[0307] Optionally, the first electronic device includes a foldable screen, which forms at least two displays, including a first display and a second display. The display area of ​​the first electronic device may include the display area of ​​the first display and the display area of ​​the second display.

[0308] Optionally, the first electronic device may include a non-foldable screen, such as a first display screen, and the display area of ​​the first electronic device may include the display area of ​​the first display screen.

[0309] Scenario 2: Multi-display application scenario

[0310] Example 1: A first electronic device includes a first display screen and a second display screen. The first display screen of the first electronic device displays a first window, and the first electronic device can receive and respond to a first operation gesture for the first window, moving the first window to be displayed on the second display screen of the second electronic device.

[0311] Optionally, the first display screen and the second display screen can be a single, integrated display screen, and the first and second display screens can be folded and unfolded along the folding lines. The first electronic device can be an inward-folding screen as shown in Figures 1A-1C, or an outward-folding screen as shown in Figures 1D-1E, or a tri-folding screen as shown in Figures 1F-1G, or a vertically folding screen as shown in Figures 1H-1I.

[0312] Optionally, the first and second displays can also be two separate displays.

[0313] This application uses a laptop computer as an example, with the first and second displays being vertically folding screens.

[0314] Figures 10A-10E illustrate a schematic diagram of a group of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to be displayed on a second display screen.

[0315] As shown in Figure 10A, the electronic device 100 includes screen A and screen B, with a folding edge between them. Screens A and B can be folded in opposite directions along the folding edge, and they can also be unfolded in opposite directions along the folding edge. Screens A and B can both be on, or screen A can be on while screen B is off. Screen A displays icons for multiple applications (such as the This PC application icon and the Recycle Bin application icon), file icons, image icons, and window 440.

[0316] The electronic device 100 can receive the user's first operation gesture on the window 440 and move the window 440 to be displayed on the B screen.

[0317] As shown in Figures 10A and 10B, the electronic device 100 can receive a user's three-finger touch operation on window 440. Then, the electronic device 100 can receive a sliding operation of the user's three fingers on window 440; for example, the user's three fingers can slide from the dotted line position in Figure 10B to the solid line position in Figure 10B. Afterwards, the user's three fingers leave window 440. In response to the user's three fingers leaving window 440, the electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If the electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then the electronic device 100 can determine that the user intends to move window 440, and the electronic device 100 can move window 440 and display window 440 on screen B. If the electronic device 100 determines that the sliding speed of the user's three fingers in the first time period before leaving the window 440 is less than the first preset speed, then the electronic device 100 can determine that the user has no intention of moving the window 440, and the electronic device 100 can continue to display the window 440 on screen A without changing the display position of the window 440.

[0318] Optionally, when a user slides three fingers on window 440, window 440 can move along with the user's three fingers, and the display position of window 440 can remain unchanged. This application does not limit this.

[0319] Optionally, it is not limited to three fingers; it can also be one finger, two fingers, more fingers, or finger joints, etc. This application only uses three fingers as an example for illustration, and this application does not limit it.

[0320] Optionally, if the electronic device 100 determines that the sliding speed of the user's three fingers during a first time period before leaving the window 440 is greater than a first preset speed, the electronic device 100 can determine the target position of the window 440 on the B screen. For example, the target position of the window 440 on the B screen can be the display position of the window 440 shown in Figure 10E.

[0321] In some embodiments, the target position of window 440 in screen B can be fixed, or it can be determined based on the sliding speed of the user's three fingers in the first time period before leaving the first window, or it can be determined based on the sliding speed and sliding direction of the user's three fingers in the first time period before leaving the first window.

[0322] In some embodiments, the electronic device 100 may determine one or more transition positions based on the initial position of the window 440 on screen A and the target position of the window 440 on screen B. These one or more transition positions may be the display position of the window 440 shown in FIG10C or the display position of the window 440 shown in FIG10D. Specifically, please refer to the description in Example 1 of Scenario 1; this application will not repeat it further here.

[0323] Figure 11 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed on a second display screen.

[0324] S1101, the first electronic device includes a first display screen and a second display screen, wherein a first window is displayed on the first display screen.

[0325] For example, the first display screen can be screen A as shown in Figure 10A, and the second display screen can be screen B as shown in Figure 10A. The first window can be window 440 as shown in Figure 10A.

[0326] S1102, The first electronic device receives a first operation gesture for the first window, the first operation gesture including the operation of selecting the first window with a finger, the operation of sliding the finger on the first window, and the operation of leaving the first window with a finger.

[0327] S1103, The first electronic device determines whether the first operation gesture has ended.

[0328] S1104. The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.

[0329] For a description of S1102-S1104, please refer to the description in S502-S504. This application will not repeat it here.

[0330] The difference between S1104 and S504 is that in S1104, if the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, indicating that the user intends to move the display position of the first window, the first electronic device can move the first window to the target position on the second display screen, and the first electronic device executes S1106-S1107. If the sliding speed during the first time period before the finger leaves the first window is less than the first preset speed, indicating that the user does not intend to move the display position of the first window, the first electronic device can maintain the display position of the first window and continue to display the first window at the initial position on the first display screen, and the first electronic device executes S1105.

[0331] S1105, The first electronic device continues to display the first window in the first display area.

[0332] For a description of S1105, please refer to the description in S505; this application will not repeat it here.

[0333] S1106, The first electronic device determines the target position of the first window on the second display screen.

[0334] S1107, The first electronic device displays a first window at the target position on the second display screen.

[0335] S1106 and S1107 are similar to S506 and S507, except that in S1106 and S1107, the first electronic device determines the target position of the first window in the second display screen, while in S506 and S507, the first electronic device determines the target position of the first window in the second display area. The implementation is similar, and you can refer to the description in S506 and S507. This application will not repeat it here.

[0336] Implementing the method shown in Figures 10A-10E and 11, a user can slide a short distance on the first window. After releasing their finger, if the sliding speed during the first time interval before the finger leaves the first window is greater than a first preset speed, the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to the target position displayed on the second display screen. The user does not need to continuously drag the first window to the target position on the second display screen. On the one hand, this saves user operation. On the other hand, when the first and second displays form a certain angle (e.g., 120 degrees), when the user drags the first window beyond the fold line between the first and second displays, accidental touches are likely to occur, such as the failure to drag the first window to the second display screen after releasing the finger. With this method, the user does not need to continuously drag the first window beyond the fold line between the first and second displays, and the problem of accidental touches when the user drags the first window near the fold line is avoided, thus improving the user experience.

[0337] Example 2: A first electronic device and a second electronic device establish a communication connection. The first electronic device includes a first display screen, and the second electronic device includes a second display screen. A first window is displayed on the first display screen of the first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the first window to be displayed on the second display screen of the second electronic device.

[0338] Optionally, the first display screen can be an inward-folding screen as shown in Figures 1A-1C, an outward-folding screen as shown in Figures 1D-1E, a tri-folding screen as shown in Figures 1F-1G, an up-and-down folding screen as shown in Figures 1H-1I, or a flat screen as shown in Figure 1J.

[0339] Figures 12A-12C illustrate a schematic diagram of a set of electronic devices 100 receiving a first operation gesture for a first window and moving the first window to a position displayed within the electronic device 200.

[0340] As shown in Figure 12A, electronic device 100 includes screen A, electronic device 200 includes screen B, electronic device 100 and electronic device 200 establish a communication connection, and window 440 is displayed on screen A.

[0341] Electronic device 100 can receive the user's first operation gesture on window 440 and move window 440 to be displayed on screen B of electronic device 200.

[0342] As shown in Figures 12A and 12B, electronic device 100 can receive a user's three-finger touch operation on window 440. Then, electronic device 100 can receive a sliding operation of the user's three fingers on window 440; for example, the user's three fingers can slide from the dotted line position in Figure 10B to the solid line position in Figure 10B. Afterwards, the user's three fingers leave window 440. In response to the user's three fingers leaving window 440, electronic device 100 can determine whether the sliding speed of the user's three fingers during a first time period before leaving window 440 is greater than a first preset speed. If electronic device 100 determines that the sliding speed of the user's three fingers during the first time period before leaving window 440 is greater than the first preset speed, then electronic device 100 can determine that the user intends to move window 440, and electronic device 100 can move window 440 and display window 440 on screen B of electronic device 200. If the electronic device 100 determines that the sliding speed of the user's three fingers in the first time period before leaving the window 440 is less than the first preset speed, then the electronic device 100 can determine that the user has no intention of moving the window 440. The electronic device 100 can continue to display the window 440 on the A screen of the electronic device 100 without changing the display position of the window 440.

[0343] Optionally, when a user slides three fingers on window 440, window 440 can move along with the user's three fingers, and the display position of window 440 can remain unchanged. This application does not limit this.

[0344] Optionally, it is not limited to three fingers; it can also be one finger, two fingers, more fingers, or finger joints, etc. This application only uses three fingers as an example for illustration, and this application does not limit it.

[0345] If the electronic device 100 determines that the sliding speed of the user's three fingers during a first time period before leaving the window 440 is greater than a first preset speed, the electronic device 100 can determine the target position of the window 440 on the B screen of the electronic device 200. For example, the target position of the window 440 on the B screen of the electronic device 200 can be the display position of the window 440 shown in Figure 12C.

[0346] In some embodiments, the target position of window 440 in the B screen of electronic device 200 may be fixed, or it may be determined based on the sliding speed of the user's three fingers in a first time period before leaving window 440, or it may be determined based on the sliding speed and sliding direction of the user's three fingers in a first time period before leaving window 440.

[0347] In some embodiments, the electronic device 100 may determine one or more transition positions based on the initial position of the window 440 on screen A of the electronic device 100 and the target position of the window 440 on screen B of the electronic device 200. Specifically, please refer to the description in Example 1 of Scenario 1, which will not be repeated here.

[0348] Figure 13 shows a flowchart of a method for an electronic device 100 to receive a first operation gesture for a first window and move the first window to be displayed within the electronic device 200.

[0349] S1301, the first electronic device and the second electronic device establish a communication connection.

[0350] The communication connection can include, but is not limited to, wired connections (such as USB connections) and wireless connections. Wireless connections can include short-range communication connections or long-range connections. Short-range communication connections include, but are not limited to, any one or more of the following: Bluetooth, Wi-Fi, NFC, IR, UWB, ZigBee, etc. Long-range connections include, but are not limited to, server connections, etc.

[0351] S1302, The first electronic device includes a first display screen, on which a first window is displayed.

[0352] For example, the first display screen may be screen A as shown in Figure 12A, and the first window may be window 440 as shown in Figure 12A.

[0353] S1303, The first electronic device receives a first operation gesture for the first window, the first operation gesture including the operation of selecting the first window with a finger, the operation of sliding the finger on the first window, and the operation of leaving the first window with a finger.

[0354] S1304, The first electronic device determines whether the first operation gesture has ended.

[0355] S1305, The first electronic device determines whether the sliding speed of the finger during a first time period before leaving the first window is greater than a first preset speed.

[0356] For a description of S1302-S1305, please refer to the descriptions in S501-S504; this application will not repeat them here.

[0357] The difference between S1305 and S504 is that in S1305, if the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed, indicating that the user intends to move the display position of the first window, the first electronic device can move the first window to the target position on the second display screen of the second electronic device, and the first electronic device executes S1307-S1308. If the sliding speed during the first time period before the finger leaves the first window is less than the first preset speed, indicating that the user does not intend to move the display position of the first window, the first electronic device can maintain the display position of the first window and continue to display the first window at the initial position of the first display area of ​​the first electronic device, and the first electronic device executes S1306.

[0358] S1306, The first electronic device continues to display the first window on the first display screen.

[0359] For a description of S1306, please refer to the description in S505; this application will not repeat it here.

[0360] S1307, The first electronic device sends the resource information corresponding to the first window to the second electronic device.

[0361] S1308. The second electronic device displays a second window on a second display screen based on the resource information of the first window. The content of the second window is the same as or partially the same as the content of the first window.

[0362] For example, the second display screen may be screen B as shown in Figure 12C.

[0363] If the swiping speed of the finger exceeds a preset speed within a first time interval before leaving the first window, the first electronic device can send the resource information corresponding to the first window to the second electronic device. The second electronic device can then display a second window on a second display screen based on the resource information of the first window. The content of the second window may be the same as or partially the same as the content of the first window. For example, if a video is playing in the first window, the playback progress and content of the video displayed in the second window may differ from those displayed in the first window.

[0364] In some embodiments, after receiving resource information corresponding to the first window of the first electronic device, the second electronic device may not display the second window, but instead play the first media content based on the resource information corresponding to the first window. For example, the first media content may include audio. For instance, the second electronic device may be a speaker, and the resource information corresponding to the first window may be playback resource information for the first music. After the speaker receives the playback resource information for the first music sent by the first electronic device, the second electronic device can play the first music.

[0365] In some embodiments, after receiving resource information corresponding to the first window of the first electronic device, the second electronic device may also change the style of the first window to adapt the first window to the screen resolution of the second electronic device. The style of the first window may include, but is not limited to, any of the following: size, shape, transparency, color, etc.

[0366] In some embodiments, the target position of the second window on the second display screen of the second electronic device can be fixed, or it can be determined based on the sliding speed during a first time period before the finger leaves the first window, or it can be determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window. For details, please refer to the description in S507, which will not be repeated here.

[0367] By implementing the method shown in the embodiments of Figures 12A-12C and 13, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to a target position in the second display area of ​​the second electronic device that has established a communication connection with the first electronic device. Alternatively, the first electronic device can send the resource information corresponding to the first window to the second electronic device, and the second electronic device can play the first media content based on the resource information corresponding to the first window. This saves user operations and improves the user experience of sharing data between devices.

[0368] Example 3: A first electronic device establishes communication connections with a second electronic device and a third electronic device. The first electronic device includes a first display screen, the second electronic device includes a second display screen, and the third electronic device includes a third display screen. A first window is displayed on the first display screen of the first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the first window to be displayed on the second display screen of the second electronic device or the third display screen of the third electronic device.

[0369] For example, a first electronic device can receive and respond to a first operation gesture on a first window, determining which electronic device to send the resource information corresponding to the first window to based on the sliding direction of the finger on the first window. For instance, if the sliding direction of the finger on the first window is a first direction, the first electronic device can send the resource information corresponding to the first window to a second electronic device. If the sliding direction of the finger on the first window is a second direction, the first electronic device can send the resource information corresponding to the first window to a third electronic device. The specific implementation of how the first electronic device sends the resource information corresponding to the first window to the second or third electronic device is similar to the method shown in the embodiments of Figures 12A-12C and Figure 13, and can be referred to the description in the embodiments of Figures 12A-12C and Figure 13, which will not be repeated here.

[0370] It should be noted that the first electronic device is not limited to two electronic devices; it can also connect to other electronic devices. The first electronic device can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction applied to the first window. Different sliding directions correspond to different electronic devices.

[0371] Example 4: A first electronic device and a second electronic device establish a communication connection. A first window is displayed within the first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the display position of the first window within the display area of ​​the first electronic device.

[0372] If the target position of the first window in the display area of ​​the first electronic device does not exceed the preset position, the first electronic device may display the first window at the target position in the display area of ​​the first electronic device.

[0373] If the target position of the first window in the display area of ​​the first electronic device exceeds a preset position, the first electronic device can send the resource information corresponding to the first window to the second electronic device. When the first electronic device is connected to multiple electronic devices, it can also determine which electronic device to send the resource information to based on the direction of the finger's swipe on the first window. Different swipe directions on the first window result in different target devices receiving the resource information.

[0374] Optionally, the first electronic device includes a foldable screen, which forms at least two displays, including a first display and a second display. The display area of ​​the first electronic device may include the display area of ​​the first display and the display area of ​​the second display.

[0375] Optionally, the first electronic device may include a non-foldable screen, such as a first display screen, and the display area of ​​the first electronic device may include the display area of ​​the first display screen.

[0376] Example 5: A first electronic device and a second electronic device establish a communication connection. A first window is displayed within the first electronic device. The first electronic device can receive and respond to a first operation gesture targeting the first window, moving the display position of the first window within the display area of ​​the first electronic device.

[0377] If the target position of the first window in the display area of ​​the first electronic device does not exceed the preset position, the first electronic device may display the first window at the target position in the display area of ​​the first electronic device.

[0378] If the target position of the first window in the display area of ​​the first electronic device exceeds the preset position, the first electronic device can determine whether to send the resource information corresponding to the first window to the second electronic device or change the display form of the first window based on the sliding direction of the finger on the first window.

[0379] If the direction of the finger sliding on the first window is the first direction, the first electronic device can send the resource information corresponding to the first window to the second electronic device.

[0380] If the direction of the finger sliding on the first window is the second direction, then the first electronic device can change the display form of the first window, and the first direction and the second direction are different.

[0381] Alternatively, if the first electronic device is connected to multiple electronic devices, and the finger slides in a first direction on the first window, the first electronic device can send the resource information corresponding to the first window to the second electronic device. If the finger slides in a third direction on the first window, the first electronic device can send the resource information corresponding to the first window to the third electronic device. The first direction, second direction, and third direction are all different.

[0382] Optionally, the first electronic device includes a foldable screen, which forms at least two displays, including a first display and a second display. The display area of ​​the first electronic device may include the display area of ​​the first display and the display area of ​​the second display.

[0383] Optionally, the first electronic device may include a non-foldable screen, such as a first display screen, and the display area of ​​the first electronic device may include the display area of ​​the first display screen.

[0384] It should be noted that one or more examples in Scenario 1 can also be applied to the multi-display application scenario in Scenario 2. Please refer to the description of one or more examples in Scenario 1, which will not be repeated here.

[0385] Figure 14 shows a flowchart of an interactive method.

[0386] S1401, The first electronic device displays a first window; the first electronic device receives a first operation gesture, the first operation gesture including a sliding operation of a finger on the first window or a sliding operation in the air.

[0387] S1402. If the sliding speed during the first time period before the finger leaves the first window is greater than the first preset speed or the sliding speed of the air swipe operation is greater than the second preset speed, the first electronic device performs a preset operation on the first window.

[0388] The first electronic device performs a preset operation on the first window, including: the first electronic device changes the display position of the first window in the first electronic device, or the first electronic device changes the display form of the first window, or the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device, the resource information corresponding to the first window is used by the second electronic device to display the second window or the resource information corresponding to the first window is used by the second electronic device to play the first media content, and the content of the second window is the same as or partially the same as the content of the first window.

[0389] Optionally, the sliding distance of the finger on the first window is less than the first distance.

[0390] The swiping speed during the first time period before the finger leaves the first window can refer to the instantaneous swiping speed when the finger leaves the first window, or it can be described as the swiping speed during the last time period before the swiping operation ends. The first time period can refer to a short period of time before the finger leaves the first window or the last period of time before the swiping operation ends. It is necessary to ensure that the instantaneous swiping speed when the finger leaves the first window is greater than a first preset speed, or the instantaneous swiping speed when the swiping operation ends is greater than a first preset speed.

[0391] The sliding speed of the air swipe operation includes the maximum sliding speed or the average sliding speed of the air swipe operation.

[0392] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, it indicates an intention to perform a preset operation on the first window. The first electronic device can then determine that it is performing the preset operation on the first window, saving user operations and improving the user experience.

[0393] In one possible implementation, the first electronic device includes a first display area and a second display area, which are different from each other; the first electronic device displays a first window, specifically including: the first window is displayed in the first display area of ​​the first electronic device; the first electronic device changes the display position of the first window in the first electronic device, specifically including: the first electronic device displays the first window on the second display area.

[0394] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time interval before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to move the display position of the first window. The first electronic device can then move the first window to the target position displayed in the second display area. The user does not need to continuously drag the first window to the target position in the second display area. On the one hand, this saves user operations; on the other hand, the user does not need to continuously drag the first window beyond the dividing line between the first and second display areas, thus avoiding the problem of the first window stopping near the dividing line and changing its shape. For example, it avoids the problem of the first window stopping near the dividing line and enlarging its size, reducing accidental touches and improving the user experience.

[0395] In some embodiments, the first display area and the second display area may be two display areas displayed in a split-screen manner on the first display screen of the first electronic device. For example, refer to the descriptions in the embodiments of Figures 4A-4E and Figure 5.

[0396] In some embodiments, the first display area and the second display area may be multiple display areas divided by the first electronic device on the first display screen. For example, refer to the descriptions in the embodiments of Figures 6A-6E and 7.

[0397] In some embodiments, the first electronic device includes a first display screen and a second display screen. The first display area may be the display area of ​​the first display screen, and the second display area may be the display area of ​​the second display screen. For example, refer to the description in the embodiments of Figures 10A-10E and 11.

[0398] In some embodiments, the first electronic device may receive and respond to a first operation gesture on the first window, and move the first window arbitrarily within the first display screen.

[0399] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area is fixed.

[0400] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area is determined based on the sliding speed during a first time period before the finger leaves the first window, or the display position of the first window on the second display area is determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window.

[0401] In conjunction with the first aspect, in one possible implementation, the display position of the first window on the second display area cannot exceed a preset position.

[0402] The method for determining the display position of the first window on the second display area can be referred to the description of S507 in the embodiment of Figure 5, and will not be repeated here.

[0403] In one possible implementation, if the display position of the first window on the second display area exceeds a preset position, the first electronic device can change the display form of the first window. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.

[0404] In conjunction with the first aspect, in one possible implementation, the first electronic device is connected to a second electronic device. If the display position of the first window on the second display area exceeds a preset position, the first electronic device can send the resource information corresponding to the first window to the second electronic device. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.

[0405] Optionally, the first electronic device can also be connected to a second electronic device and a third electronic device simultaneously. If the display position of the first window on the second display area exceeds a preset position, the first electronic device can determine whether to send the resource information corresponding to the first window to the second or third electronic device based on the sliding direction of the finger on the first window. If the display position of the first window on the first display screen does not exceed the preset position, the first electronic device can display the first window on the second display area.

[0406] In one possible implementation, the sliding operation of a finger on the first window includes the sliding operation of three fingers on the first window.

[0407] In one possible implementation, the method further includes, before the first electronic device displays the first window on the second display area, the first electronic device displaying the first window at one or more transition positions.

[0408] In one possible implementation, one or more transition positions are determined based on the display position of the first window in the first display area and the display position of the first window in the second display area.

[0409] By implementing this method, the first window can be moved directly from its initial position in the first display area to its target position in the second display area, avoiding a sudden change in the screen, thereby improving the user's visual experience.

[0410] Optionally, the first electronic device may also change the style of the first window, such as size, shape, size, transparency, or one or more styles, and display the style-changed first window at one or more transition positions.

[0411] Optionally, the styles of the first windows displayed at one or more transition positions can be the same or different.

[0412] In one possible implementation, the first electronic device displays a first window, specifically including: the first electronic device displays the first window in a first display mode; the first electronic device changes the display mode of the first window, specifically including: the first electronic device displays the first window in a second display mode, the second display mode being different from the first display mode.

[0413] By implementing this method, a user can slide a short distance on the first window and release their finger. If the sliding speed during the first time period before the finger leaves the first window is greater than a first preset speed, or if the user performs an air swipe gesture and the sliding speed of the air swipe operation is greater than a second preset speed, then the first electronic device can determine that the user intends to change the display mode of the first window, and the first electronic device can switch the display mode of the first window from the first display mode to the second display mode.

[0414] In one possible implementation, when the first window includes multiple different display forms, the electronic device can determine the target display form based on the sliding direction of a finger on the first window.

[0415] For example, the first electronic device changes the display form of the first window, specifically including: when the sliding direction of the finger on the first window is a first direction, the first electronic device displays the first window in a second display form.

[0416] For example, when the finger slides on the first window in the second direction, the first electronic device displays the first window in a third display form. The second direction is different from the first direction, and the third display form is different from the first display form.

[0417] It should be noted that it is not limited to two directions, but may include other directions and other display forms, which this application does not limit.

[0418] In conjunction with the first aspect, in one possible implementation, the first electronic device displays the first window in a second display form, including any of the following: the first electronic device enlarges the size of the first window, the first electronic device shrinks the size of the first window, or the first electronic device runs or closes the first application corresponding to the first window in the background.

[0419] For example, reference can be made to the description in the embodiments of Figures 8A-8F and 9.

[0420] In one possible implementation, the first electronic device includes a foldable screen that forms at least two displays, the at least two displays including a first display and a second display, the first display area being the display area of ​​the first display and the second display area being the display area of ​​the second display.

[0421] For example, the first display screen may be screen A as shown in Figure 10A, and the second display screen may be screen B as shown in Figure 10A.

[0422] In conjunction with the first aspect, in one possible implementation, the angle between the first display screen and the second display screen is greater than a first value and less than a second value. For example, the angle between the first display screen and the second display screen could be 120 degrees, meaning the first electronic device is in a folded state. This method can be applied to non-foldable devices.

[0423] In conjunction with the first aspect, in one possible implementation, the first electronic device includes a first display screen, and both a first display area and a second display area are display areas of the first display screen. This method can also be applied to non-foldable devices.

[0424] In one possible implementation, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device. Specifically, when the sliding direction of the finger on the first window is a first direction, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device.

[0425] In one possible implementation, the method further includes: when the sliding direction of the finger on the first window is the second direction, the first electronic device sends the resource information corresponding to the first window to a third electronic device that has established a communication connection with the first electronic device. The second direction is different from the first direction, and the third electronic device is different from the second electronic device.

[0426] It should be noted that the first electronic device is not limited to two electronic devices; it can also connect to other electronic devices. The first electronic device can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction applied to the first window. Different sliding directions correspond to different electronic devices.

[0427] By implementing this method, when a first electronic device is connected to multiple electronic devices, the electronic devices can determine which electronic device to send the resource information corresponding to the first window to based on the sliding direction of the finger on the first window, saving user operations and improving the user experience of sharing data between devices.

[0428] In one possible implementation, the first electronic device includes a laptop computer.

[0429] This application provides an electronic device, a first electronic device, which includes: one or more processors and one or more memories, wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, they perform the steps in the above-described method embodiments.

[0430] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.

[0431] This application also provides a computer program product, including a computing program, which, when run on a computer, enables the computer to perform the steps in the various method embodiments described above.

[0432] This application also provides a chip system, which includes a processing circuit interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.

[0433] It should be noted that the multiple embodiments provided in this application can be combined in any two or more combinations to achieve the interactive method provided in this application.

[0434] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. An interaction method, characterized in that, The method includes: The first electronic device displays a first window; The first electronic device receives a first operation gesture, which includes a sliding operation of a finger on the first window or a sliding operation in the air. If the sliding speed during a first time period before the finger leaves the first window is greater than a first preset speed, or if the sliding speed of the air swipe operation is greater than a second preset speed, the first electronic device performs a preset operation on the first window.

2. The method of claim 1, wherein, The sliding speed during the first time period before the finger leaves the first window, including the instantaneous sliding speed when the finger leaves the first window; or, The sliding speed of the air-to-slide operation includes the maximum sliding speed or the average sliding speed of the air-to-slide operation.

3. The method according to claim 1 or 2, characterized in that, The first electronic device performs a preset operation on the first window, including: The first electronic device changes the display position of the first window in the first electronic device, or the first electronic device changes the display form of the first window, or the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device. The resource information corresponding to the first window is used by the second electronic device to display the second window or the resource information corresponding to the first window is used by the second electronic device to play the first media content. The content of the second window is the same as or partially the same as the content of the first window.

4. The method of claim 3, wherein, The first electronic device includes a first display area and a second display area, wherein the first display area and the second display area are different; The first electronic device displays a first window, which specifically includes: The first window is displayed in the first display area of ​​the first electronic device; The first electronic device changes the display position of the first window within the first electronic device, specifically including: The first electronic device displays the first window on the second display area.

5. The method of claim 4, wherein, The display position of the first window on the second display area is fixed.

6. The method of claim 4, wherein, The display position of the first window on the second display area is determined based on the sliding speed during the first time period before the finger leaves the first window, or the display position of the first window on the second display area is determined based on the sliding speed and sliding direction during the first time period before the finger leaves the first window.

7. The method of claim 6, wherein, The display position of the first window on the second display area cannot exceed a preset position.

8. The method of claim 3, wherein, The first electronic device displays a first window, which specifically includes: The first electronic device displays the first window in the first display format; The first electronic device changes the display format of the first window, specifically including: The first electronic device displays the first window in a second display mode, which is different from the first display mode.

9. The method of claim 8, wherein, The first electronic device changes the display format of the first window, specifically including: When the finger slides on the first window in the first direction, the first electronic device displays the first window in the second display mode.

10. The method of claim 9, wherein, The method further includes: When the finger slides on the first window in the second direction, the first electronic device displays the first window in a third display mode. The second direction is different from the first direction, and the third display mode is different from the first display mode.

11. The method according to any one of claims 8-10, characterized in that, The first electronic device displays the first window in a second display format, including any of the following: the first electronic device enlarges the size of the first window, the first electronic device shrinks the size of the first window, or the first electronic device runs or closes the first application corresponding to the first window in the background.

12. The method according to any one of claims 4-7, characterized in that, The first electronic device includes a foldable screen, which forms at least two displays, including a first display and a second display, wherein the first display area is the display area of ​​the first display and the second display area is the display area of ​​the second display.

13. The method of claim 12, wherein, The angle between the first display screen and the second display screen is greater than a first value and less than a second value.

14. The method according to any one of claims 4-7, characterized by, The first electronic device includes a first display screen, and both the first display area and the second display area are display areas of the first display screen.

15. The method of claim 2, wherein, The first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device, specifically including: When the finger slides on the first window in the first direction, the first electronic device sends the resource information corresponding to the first window to the second electronic device that has established a communication connection with the first electronic device.

16. The method of claim 14, wherein, The method further includes: When the finger slides on the first window in the second direction, the first electronic device sends the resource information corresponding to the first window to a third electronic device that has established a communication connection with the first electronic device. The second direction is different from the first direction, and the third electronic device is different from the second electronic device.

17. The method of any one of claims 2-15, wherein, A sliding operation on the first window using a finger includes a sliding operation using three fingers on the first window.

18. The method according to any of claims 4-7 or claims 12-14, characterized by, Before the first electronic device displays the first window on the second display area, the method further includes: The first electronic device displays the first window at one or more transition positions.

19. The method of claim 18, wherein, The one or more transition positions are determined based on the display position of the first window in the first display area and the display position of the first window in the second display area.

20. The method of any one of claims 1-19, wherein, When the first gesture includes an air swipe, the first window is the focus window.

21. The method of any one of claims 1-20, wherein, The first electronic device includes a laptop computer.

22. An electronic device, being a first electronic device, characterized in that The first electronic device includes: one or more processors and one or more memories, wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store a computer program, which, when the one or more processors execute the computer program, performs the interactive method as described in any one of claims 1-21.

23. A computer-readable storage medium, characterized in that, Includes instructions that, when executed by a processor, implement the interaction method as described in any one of claims 1-21.

24. A computer program product, characterised in that, A computer program product comprising a computer program which, when executed by a processor, implements the interaction method of any of claims 1-21.

25. A chip system, characterized by An apparatus comprising processing circuitry and interface circuitry, the interface circuitry to receive code instructions and transmit to the processing circuitry, the processing circuitry to execute the code instructions to perform the interaction method of any of claims 1-21.