Dragging method and related equipment

By calling out the bar on the mobile phone or foldable phone and dragging the full screen window to the PC, the problem of single functions in device interconnection is solved, rich interactive experience and heterogeneous screen projection are achieved, and user experience and operation accuracy are improved.

CN119225610APending Publication Date: 2024-12-31HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310801786.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the prior art, the functions achieved by the mouse between the mobile phone and the PC are relatively single, which limits the user experience when the device is interconnected, especially when dragging and dropping files and pictures, lacks rich interactive scenarios.

Method used

It provides a drag and drop method, which allows the full screen window to be dragged to the PC by calling out the bar on a mobile phone or a foldable phone, and dragging the bar to achieve full screen window, supporting heterogeneous screen projection, increasing the richness of device interaction and user experience. The method includes in the communication system, controlling the cursor by inputting the device, detecting the drag-able area, displaying the drag-able logo, and calling out or hiding the bar when the multi-dimensional conditions are met, realizing drag-and-drop and projecting of the full-screen window.

Benefits of technology

Improves the richness of interaction between devices and user experience, supports cross-drawing and heterogeneous screen projection in full-screen windows, enhances the accuracy and aesthetics of mouse operations, and avoids the user's accuracy of drag position due to the punching position. Sexual problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225610A_ABST
    Figure CN119225610A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a dragging method and related equipment, and is applied to the technical field of terminals. According to the method, the draggable identifier can be called out on the first electronic equipment, and when the dragging operation for the draggable identifier is received, the first electronic equipment can realize dragging of the full-screen window. In this way, the first electronic device can project the full-screen window to the second electronic device in a different-source mode based on the draggable identifier, and the richness of device interaction is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a dragging method and related equipment. Background Art

[0002] With the development of communication technology, some electronic devices can share input devices after being interconnected, and the input devices may include a mouse, a touchpad, etc. For example, after a mobile phone and a personal computer (PC) are interconnected, the content displayed on the mobile phone interface can be triggered by the mouse connected to the PC.

[0003] In some implementations, after the mobile phone is connected to the PC, it is also possible to support dragging files and pictures in the PC to the mobile phone through the mouse connected to the PC. However, the functions achieved by the mouse between the mobile phone and the PC are relatively simple, which is not conducive to the user experience in device interconnection. Summary of the invention

[0004] An embodiment of the present application provides a dragging method and related devices, which are applied to the field of terminal technology. In the embodiment of the present application, it is possible to call out a bar on a mobile phone, a vertical screen PAD or a folded foldable mobile phone, and drag the full-screen window by dragging the bar, so that the full-screen window can be dragged to the PC, and a heterogeneous screen projection process can be performed in the PC, thereby increasing the richness of device interaction.

[0005] In the first aspect, an embodiment of the present application proposes a dragging method and related equipment. The method is applied to a communication system, the communication system includes a first electronic device installed with a first operating system and a second electronic device installed with a second operating system, the first electronic device or the second electronic device is connected to an input device, the first operating system is different from the second operating system, and the method includes: the first electronic device displays a first cursor and a full-screen window of a first application, the first cursor is located on the full-screen window, and the full-screen window is in a non-draggable state; when the user controls the first cursor to move to the first position through the input device, the first electronic device displays the first cursor, the full-screen window of the first application, and a draggable flag, the draggable flag is used to indicate that the full-screen window is in a draggable state; when the user controls the first cursor to move to the first position through the input device, the first electronic device displays the first cursor, the full-screen window of the first application, and a draggable flag, and ... When the device controls a first cursor to select and drag a draggable area of ​​a full-screen window, the first electronic device displays a reduced full-screen window; when it is detected that the user releases the first cursor in the first electronic device through an input device, the first electronic device displays the full-screen window; when the user controls the first cursor to move to a second position through the input device, the first electronic device displays the first cursor, the full-screen window of the first application, and does not display the draggable mark; when the user controls the first cursor to select and drag the full-screen window at the second position through the input device, the first electronic device displays the full-screen window; wherein the first position and the draggable mark are included in the draggable area, and the second position is not included in the draggable area.

[0006] In this way, it is possible to support calling out the bar in the first electronic device and dragging the full-screen window by dragging the bar, thereby increasing the richness of device interaction and improving the user experience.

[0007] In a possible implementation, the display position of the draggable mark does not overlap with the punch hole position in the screen of the first electronic device. In this way, the aesthetics of the draggable area can be improved, and the accuracy of the drag bar can be improved, so that the user is not affected by the punch hole and cannot accurately drag the position of the bar.

[0008] In a possible implementation, the first electronic device registers input device monitoring, registers mouse event monitoring, registers foldable state monitoring, and registers screen state rotation monitoring; wherein the input device monitoring is used to monitor the plug-in and unplug state of the input device, the mouse event monitoring is used to monitor the coordinates of the mouse in the first electronic device, the foldable state monitoring is used to monitor the folding and unfolding state of the foldable electronic device, and the screen state rotation monitoring is used to monitor the horizontal and vertical screen state of the first electronic device; when the first electronic device monitors that the mouse is connected to the first electronic device and / or the second electronic device, the electronic device sets the first information to the first value, and the first information is used to indicate whether the mouse is connected to the communication system; when the first electronic device is a straight screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical screen state, the first electronic device sets the second information to the second value, and the second information is used to indicate whether the first electronic device is a straight screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical screen state; when the first electronic device monitors that the coordinates of the mouse are located in the draggable area, the first electronic device displays the draggable mark according to the value of the first information and the value of the second information. In this way, the first electronic device can determine the execution of the call-out bar process through multi-dimensional determination conditions, thereby improving the accuracy of the call-out bar process.

[0009] In a possible implementation, before the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, it also includes: the first electronic device determines that the first electronic device displays a full-screen window; the first electronic device determines that the first electronic device is not in immersive mode; and the first electronic device determines that the first application supports dragging. In this way, the first electronic device can determine the process of executing the call-out bar through multi-dimensional determination conditions, further improving the accuracy of the call-out bar process.

[0010] In a possible implementation, after the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, the following steps are performed: when the first electronic device detects that the mouse is unplugged from the first electronic device and / or the second electronic device, the electronic device sets the first information to a third value; and the first electronic device hides the draggable indicator according to the value of the first information. In this way, the first electronic device can hide the bar in a timely and accurate manner after the mouse is removed, thereby improving the aesthetics of the interface and the user experience.

[0011] In a possible implementation, after the first electronic device displays the reduced full-screen window, the method further includes: when the first cursor drags the full-screen window to a third position, the first electronic device displays the wallpaper, displays the first motion effect window at the third position, and stops displaying the full-screen window, the first motion effect window includes a first identifier of a first application, the first motion effect window is located in an upper layer of the wallpaper, and the size of the first motion effect window is smaller than the size of the full-screen window; in the process of the first cursor dragging the first motion effect window to move, when the first cursor moves from a first screen edge of the first electronic device to a second screen edge of the second electronic device, the first electronic device displays the wallpaper, stops displaying the first motion effect window, and the second electronic device displays the second motion effect window dragged by the first cursor, the second motion effect window includes the second identifier of the first application; in the process of the first cursor dragging the second motion effect window to move, when it is detected that the user releases the first cursor at a fourth position through an input device, the second electronic device displays a projection window at the fourth position and stops displaying the second motion effect window, and when part or all of the content of the full-screen window is not displayed in the projection window of the second electronic device, the first electronic device displays the wallpaper, and sets the layer where the full-screen window is located to the lower layer of the wallpaper. In this way, after the full-screen window of the first electronic device is dragged to the second electronic device, the process of heterogeneous screen projection can be supported in the second electronic device, increasing the richness of device interaction. In addition, when the user releases the mouse in the second electronic device and the real screen projection content is displayed in the screen projection window of the second electronic device, the wallpaper is displayed in the first electronic device, so that the user does not perceive the process of the window of the first application switching to full screen in the first electronic device, thereby improving the user experience.

[0012] In a possible implementation, the method further includes: when part or all of the content of the full-screen window is displayed in the projection window, the first electronic device stops displaying the wallpaper and displays the desktop. In this way, after the heterogeneous projection is implemented in the second electronic device, the first electronic device can support the user to implement other functions.

[0013] In the second aspect, the embodiment of the present application proposes a dragging method and related equipment. The method is applied to an electronic device, and the electronic device is connected to an input device, and the method includes: the electronic device displays a first cursor and a full-screen window of a first application, the first cursor is located on the full-screen window, and the full-screen window is in a non-draggable state; when the user controls the first cursor to move to the first position through the input device, the electronic device displays the first cursor, the full-screen window of the first application, and a draggable mark, and the draggable mark is used to indicate that the full-screen window is in a draggable state; when the user controls the first cursor to select and drag the draggable area of ​​the full-screen window through the input device, the electronic device displays a reduced full-screen window; after detecting that the user releases the first cursor through the input device, the electronic device displays the full-screen window; when the user controls the first cursor to move to the second position through the input device, the electronic device displays the first cursor, the full-screen window of the first application, and does not display the draggable mark; when the user controls the first cursor to select and drag the full-screen window at the second position through the input device, the electronic device displays the full-screen window; wherein the first position and the draggable mark are included in the draggable area, and the second position is not included in the draggable area.

[0014] In this way, it is possible to support calling out the bar in the first electronic device and dragging the full-screen window by dragging the bar, thereby increasing the richness of device interaction and improving the user experience.

[0015] In one possible implementation, the display position of the draggable mark does not overlap with the punch hole position in the screen of the electronic device. In this way, the aesthetics of the draggable area can be improved, and the accuracy of the drag bar can be improved, so that the user is not affected by the punch hole and cannot accurately drag the position of the bar.

[0016] In a possible implementation, the first electronic device registers input device monitoring, registers mouse event monitoring, registers foldable state monitoring, and registers screen state rotation monitoring; wherein the input device monitoring is used to monitor the plug-in and unplug state of the input device, the mouse event monitoring is used to monitor the coordinates of the mouse in the first electronic device, the foldable state monitoring is used to monitor the folding and unfolding state of the foldable electronic device, and the screen state rotation monitoring is used to monitor the horizontal and vertical screen state of the first electronic device; when the first electronic device monitors that the mouse is connected to the first electronic device and / or the second electronic device, the electronic device sets the first information to the first value, and the first information is used to indicate whether the mouse is connected to the communication system; when the first electronic device is a straight screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical screen state, the first electronic device sets the second information to the second value, and the second information is used to indicate whether the first electronic device is a straight screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical screen state; when the first electronic device monitors that the coordinates of the mouse are located in the draggable area, the first electronic device displays the draggable mark according to the value of the first information and the value of the second information. In this way, the first electronic device can determine the execution of the call-out bar process through multi-dimensional determination conditions, thereby improving the accuracy of the call-out bar process.

[0017] In a possible implementation, before the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, it also includes: the first electronic device determines that the first electronic device displays a full-screen window; the first electronic device determines that the first electronic device is not in immersive mode; and the first electronic device determines that the first application supports dragging. In this way, the first electronic device can determine the process of executing the call-out bar through multi-dimensional determination conditions, further improving the accuracy of the call-out bar process.

[0018] In a possible implementation, after the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, the following steps are performed: when the first electronic device detects that the mouse is unplugged from the first electronic device and / or the second electronic device, the electronic device sets the first information to a third value; and the first electronic device hides the draggable indicator according to the value of the first information. In this way, the first electronic device can hide the bar in a timely and accurate manner after the mouse is removed, thereby improving the aesthetics of the interface and the user experience.

[0019] In a possible implementation, the method further includes: when the user uses the input device to control the first cursor to select and drag the draggable area of ​​the full-screen window, the electronic device displays the floating window of the first application. In this way, the first electronic device can achieve the effect of switching the full-screen window to the floating window by dragging the bar.

[0020] In a possible implementation, the method further includes: when the user uses the input device to control the first cursor to select and drag the draggable area of ​​the full-screen window, the electronic device displays the split-screen window of the first application. In this way, the first electronic device can achieve the effect of cutting the full-screen window into a split-screen window by dragging the bar.

[0021] In a third aspect, an embodiment of the present application provides a communication system, which may include a first electronic device and a second electronic device of the first aspect or the second aspect, wherein the first electronic device may implement a method performed by the first electronic device as described in any possible implementation of the first aspect, the second aspect, or any one of the first and second aspects, and the second electronic device may implement a method performed by the second electronic device as described in any possible implementation of the first aspect, the second aspect, or any one of the first and second aspects.

[0022] In a fourth aspect, an embodiment of the present application provides a dragging device, which may be an electronic device, or a chip or chip system in an electronic device. The dragging device may include a display unit and a processing unit. When the dragging device is an electronic device, the display unit may be a display screen. The display unit is used to perform the display step so that the electronic device implements the method performed by the first electronic device or the second electronic device described in the first aspect or any possible implementation of the first aspect. When the dragging device is an electronic device, the processing unit may be a processor. The dragging device may also include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit so that the electronic device implements the method performed by the first electronic device or the second electronic device described in the first aspect or any possible implementation of the first aspect. When the dragging device is a chip or chip system in an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit so that the electronic device implements the method performed by the first electronic device or the second electronic device described in the first aspect, the second aspect, or any possible implementation of any of the first and second aspects. The storage unit may be a storage unit within the chip (eg, a register, a cache, etc.), or a storage unit within the electronic device that is located outside the chip (eg, a read-only memory, a random access memory, etc.).

[0023] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, the memory being used to store code instructions, and the processor being used to run the code instructions to execute a method executed by a first electronic device described in any possible implementation of the first aspect or the second aspect, or to execute a method executed by a second electronic device described in any possible implementation of the first aspect or the second aspect.

[0024] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method performed by the first electronic device as described in any possible implementation of the first aspect or the second aspect is implemented, or the method performed by the second electronic device as described in any possible implementation of the first aspect or the second aspect is implemented.

[0025] In the seventh aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run, it enables the computer to execute a method executed by a first electronic device described in any possible implementation of the first aspect or the second aspect, or execute a method executed by a second electronic device described in any possible implementation of the first aspect or the second aspect.

[0026] In an eighth aspect, the present application provides a chip or a chip system, the chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute a method performed by a first electronic device described in any possible implementation of the first aspect or the second aspect, or to execute a method performed by a second electronic device described in any possible implementation of the first aspect or the second aspect. The communication interface in the chip may be an input / output interface, a pin, or a circuit, etc.

[0027] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).

[0028] It should be understood that the third to eighth aspects of the present application correspond to the technical solutions of the first or second aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of a keyboard and mouse interconnection scenario in an embodiment of the present application;

[0030] Figure 2 This is a schematic diagram of another keyboard and mouse interconnection scenario according to an embodiment of the present application;

[0031] Figure 3 A schematic diagram of the hardware structure of a first electronic device 100 provided in an embodiment of the present application;

[0032] Figure 4 A schematic diagram of the hardware structure of the second electronic device 200 provided in an embodiment of the present application;

[0033] Figure 5 A schematic diagram of the software structure of a first electronic device 100 and a second electronic device 200 provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of software module interaction provided in an embodiment of the present application;

[0035] Figure 7 A schematic diagram of a mobile phone displaying a full-screen window provided in an embodiment of the present application;

[0036] Figure 8 A schematic diagram of an outgoing call bar on the top of a mobile phone provided in an embodiment of the present application;

[0037] Fig. 9 A schematic diagram of a hidden bar on the top of a mobile phone provided in an embodiment of the present application;

[0038] Fig.10 Another software module interaction diagram provided in an embodiment of the present application;

[0039] Fig.11 A schematic diagram of a mobile phone displaying a full-screen window shrinking animation provided in an embodiment of the present application;

[0040] Fig.12 A schematic diagram of displaying a dynamic effect window and a wallpaper mask in a mobile phone provided in an embodiment of the present application;

[0041] Fig.13 A schematic diagram of a mobile phone displaying a partial dynamic effect window and a wallpaper mask provided in an embodiment of the present application;

[0042] Fig.14 A schematic diagram of a PC displaying a partial dynamic effect window and a wallpaper mask provided in an embodiment of the present application;

[0043] Fig.15 A schematic diagram of a PC displaying a dynamic effect window provided in an embodiment of the present application;

[0044] Fig.16 A schematic diagram of displaying a heterogeneous screen projection window in a PC provided in an embodiment of the present application;

[0045] Fig.17 A schematic diagram of displaying a same-source screen projection window in a PC provided in an embodiment of the present application;

[0046] Fig.18 A schematic diagram of displaying a dynamic effect window and a wallpaper mask in a mobile phone provided in an embodiment of the present application;

[0047] Fig.19 A schematic diagram of a mobile phone restored to a full-screen window provided in an embodiment of the present application;

[0048] Fig. 20 A schematic diagram of a mobile phone displaying a floating window provided in an embodiment of the present application;

[0049] Fig.21 A schematic diagram of a mobile phone displaying a split-screen window provided in an embodiment of the present application;

[0050] Fig. 22 A schematic diagram of a scenario of connecting a mobile phone to a mouse provided in an embodiment of the present application;

[0051] Fig.23 This is a schematic diagram of another keyboard and mouse interconnection scenario in an embodiment of the present application;

[0052] Fig.24 This is a schematic diagram of another keyboard and mouse interconnection scenario in an embodiment of the present application;

[0053] Fig.25 A flowchart of a dragging method provided in an embodiment of the present application;

[0054] Fig.26 A flowchart of another dragging method provided in an embodiment of the present application;

[0055] Fig. 27 A schematic diagram of the structure of a towing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0057] 1. Same-source screen projection: It can be understood that the content displayed in the screen projection interface of the projected device is the same or basically the same as the content displayed on the screen projection device interface. For example, when a mobile phone or PAD is used as a screen projection device to project the same-source screen to the projected device PC, the interface displayed by the mobile phone or PAD is the same as the content displayed in the screen projection display window on the PC. Of course, the screen projection display window on the PC can also display a title bar (such as maximize and minimize buttons), or the screen projection display window on the PC may not display the content in the status bar of the mobile phone or PAD. When the interface in the mobile phone or PAD changes from the first interface to the second interface, the content displayed in the screen projection display window on the PC may also change from the first interface to the second interface.

[0058] 2. Heterogeneous screen projection: It can be understood that the content displayed in the projection interface of the projected device may be different from the content displayed on the projection device interface. For example, when a mobile phone or PAD is used as a projection device to project the screen to the projected device PC, the mobile phone or PAD can display the interface of the first application, and the projection display window on the PC can display the interface of the second application. When the interface in the mobile phone or PAD changes from the first interface to the second interface, the interface displayed in the projection display window on the PC may remain unchanged.

[0059] 3. Keyboard and mouse sharing technology: It can be understood as a technology that uses the input device of an electronic device to control the electronic device and other electronic devices interconnected with the electronic device.

[0060] 4. Other terms

[0061] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0062] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0063] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.

[0064] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or can be a period of time before or after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.

[0065] In some implementations, only dragging and dropping of files, pictures, and application icons is supported between devices that establish communication based on keyboard and mouse sharing technology, and after dragging files, pictures, and application icons from one device to another, dragging the files, pictures, and application icons back to the original device is not supported.

[0066] In some implementations, horizontal PADs, unfolded foldable phones, etc. support dragging and dropping of full-screen windows of files, pictures, and applications; while mobile phones, vertical PADs, and folded foldable phones, etc. do not support dragging and dropping of full-screen windows of files, pictures, and application icons; the interaction scenarios are relatively limited, affecting the user experience.

[0067] In view of this, the dragging method provided in the embodiment of the present application supports dragging of windows between communication devices, for example, the window can be in the form of a full-screen window. The mobile phone can call out a bar, and when a drag operation for the bar is received, the mobile phone can drag the window. Among them, the operating systems installed on the two electronic devices can be different, for example, device 1 is an Android operating system, and device 2 is a Windows operating system. For example, after the full-screen window of device 1 is dragged to device 2, it can also support dragging the full-screen window from device 2 back to device 1, or, after the full-screen window of device 1 is dragged to device 2, heterogeneous screen projection is implemented on device 2, enriching the interaction scenarios between devices and improving user experience.

[0068] The dragging method provided in the embodiment of the present application may be applied in a communication system, which may include a first electronic device 100 and a second electronic device 200.

[0069] For example, Figure 1As shown, an input device 300 may be connected to the first electronic device 100, and the first electronic device 100 and the second electronic device 200 may establish a communication connection. After the first electronic device 100 and the second electronic device 200 turn on the keyboard and mouse sharing function, the user can not only use the input device 300 of the first electronic device 100 to control the first electronic device 100, but also pass the input device 300 to the screen of the second electronic device 200 to control the second electronic device 200. In an embodiment of the present application, the user can drag the full-screen window in the first electronic device 100 to the second electronic device 200, and then display the content of the full-screen window of the first electronic device 100 on the screen of the second electronic device 200 through the same-source screen projection or the different-source screen projection. In this way, the scene of interaction after the first electronic device 100 and the second electronic device 200 are interconnected can be enriched, and the user experience can be improved.

[0070] Or, if Figure 2 As shown, the second electronic device 200 may be connected to an input device 300, and the first electronic device 100 and the second electronic device 200 may establish a communication connection. After the first electronic device 100 and the second electronic device 200 turn on the keyboard and mouse sharing function, the user can not only use the input device 300 of the second electronic device 200 to control the second electronic device 200100, but also pass the input device 300 to the screen of the first electronic device 100 to control the first electronic device 100. In an embodiment of the present application, the user can drag the full-screen window in the first electronic device 100 to the second electronic device 200, and then display the content of the full-screen window of the first electronic device 100 on the screen of the second electronic device 200 through the same-source screen projection or the different-source screen projection. In this way, the scene of interaction after the first electronic device 100 and the second electronic device 200 are interconnected can be enriched, and the user experience can be improved.

[0071] Among them, the first electronic device 100 and the second electronic device 200 may enable the keyboard and mouse functions in the following ways, including but not limited to: using the input device 300 to touch the edge of the first electronic device 100 or the edge of the second electronic device 200 a preset number of times, and / or, the second electronic device 200 provides an interface for establishing keyboard and mouse sharing with the first electronic device 100, and the user chooses to share the keyboard and mouse with the first electronic device 100 in the interface.

[0072] Understandably, Figure 1 and Figure 2 The first electronic device 100 is a mobile phone, the second electronic device 200 is a PC, and the input device 300 is a mouse. This example does not limit the first electronic device 100, the second electronic device 200, and the input device 300.

[0073] The first electronic device 100 and the second electronic device 200 can be devices of the same type or devices of different types. Exemplarily, the first electronic device 100 and the second electronic device 200 can be any of the following electronic devices: a mobile phone, a tablet computer, a PDA, a laptop computer, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a wireless communication device, ... assistant, PDA), handheld devices with wireless communication functions, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, electronic devices in 5G networks or electronic devices in future public land mobile networks (PLMN), electronic devices in Internet of Things (IoT) systems, etc., which are not limited in the embodiments of the present application. Among them, the mobile phone can be a straight-screen mobile phone or a folding screen mobile phone.

[0074] The input device 300 may include a mouse, a touch pad, a touch screen, or the like.

[0075] It should be noted that when the input device 300 is connected to the first electronic device 100 or the second electronic device 200, it can be a wired connection or a wireless connection. When the input device 300 is wiredly connected to a device such as a mobile phone or a PAD, an adapter can be used to convert the interface of the input device 300 into a type that can be inserted into the interface of the mobile phone or PAD to achieve a wired plug-in connection.

[0076] In order to better understand the embodiment of the present application, the structure of the first electronic device 100 and the structure of the second electronic device 200 in the embodiment of the present application are exemplarily introduced below:

[0077] Figure 3 The structure diagram of the first electronic device 100 is shown. The first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0078] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0079] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0080] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0081] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0082] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuits sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

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

[0084] The first electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for window dragging, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0085] Figure 4 FIG. 2 shows a schematic diagram of the structure of the second electronic device 200. Figure 4, the second electronic device 200 may include multiple subsystems that cooperate to perform, coordinate or monitor one or more operations or functions of the electronic device 202. The second electronic device 200 includes a processor 210, an input surface 220, a coordination engine 230, a power subsystem 240, a power connector 250, a wireless interface 260 and a display 270.

[0086] Exemplarily, the coordination engine 230 can be used to communicate and / or process data with other subsystems of the second electronic device 200; for example, communicate and / or trade data with the stylus 100; measure and / or obtain the output of one or more analog or digital sensors (such as a touch sensor), etc.

[0087] The processor 210 may be used to execute, coordinate and / or manage functions of the second electronic device 200. Such functions may include, but are not limited to, communicating with other subsystems of the second electronic device 200 and / or transaction data, etc.

[0088] The processor 210 may be used to process, receive or send data or instructions. For example, the processor may be a microprocessor, a central processing unit, an application specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit or a combination of these devices. The processor may be a single-threaded or multi-threaded processor. The processor may be a single-core or multi-core processor.

[0089] During use, the processor 210 may be configured to access a memory storing instructions that may be configured to cause the processor to execute, coordinate or monitor one or more operations or functions of the second electronic device 200 .

[0090] The wireless interface 260 may be used to communicate with the first electronic device 100 .

[0091] It is understandable that some of the specific details presented above regarding the first electronic device 100 and the second electronic device 200 may not be necessary, and the embodiments of the present application do not limit the specific structures of the first electronic device 100 and the second electronic device 200.

[0092] In the embodiment of the present application, the first electronic device 100 and the second electronic device 200 may use different operating systems, and the operating system may include, for example, any of the following operating systems: Linux operating system, Unix operating system, Android operating system, iOS operating system or Windows operating system, etc.

[0093] For example, Figure 5Taking the case where the operating system of the first electronic device 100 is the Android system and the operating system of the second electronic device 200 is the Windows system as an example, partial software architectures of the first electronic device 100 and the second electronic device 200 are exemplified.

[0094] like Figure 5 As shown, the operating system of the first electronic device 100 may include an application layer and an application framework layer (framework, FWK).

[0095] The application layer may include a keyboard and mouse module, which may also be called a virtual input android package (VIAPK), a keyboard and mouse APK, and the like.

[0096] The keyboard and mouse module can be used for device connection management, drag status update and synchronization, keyboard and mouse event interception and injection, mouse crossing identification, etc. Among them, device connection management is used to realize discovery and communication connection between devices, drag status update and synchronization is used to update and synchronize whether there is a drag event in the device, whether there is a cursor in the device, etc., keyboard and mouse event interception and injection is used to intercept and inject keyboard and mouse parameters when it is determined that a keyboard and mouse event occurs, etc., and mouse crossing identification is used to identify whether the mouse cursor crosses the edge of the display screen of the electronic device.

[0097] FWK may include a variety of system services (system servers), including, for example, mouse event monitoring, multi-window framework, and SystemUI.

[0098] Mouse event monitoring can be used for mouse insertion and removal, hot zone initialization, input event listening, internal and external screen switching and screen rotation, etc., wherein mouse insertion and removal, for example, is used to identify and manage the insertion and removal of the mouse into the first electronic device 100; the hot zone in the hot zone initialization can be understood as the draggable area in the dynamic effect interface, and the hot zone initialization is used to initialize the draggable area; input event listening is used to listen to input events; internal and external screen switching is used to manage the screen switching of a foldable electronic device in a folded state and an unfolded state; screen rotation is used to manage the horizontal and vertical screen display of an electronic device.

[0099] The multi-window framework can be used to determine whether the bar is displayed, bar display and hiding, and bar information sequence list. Determining whether the bar is displayed can be understood as: determining whether to display the bar based on multi-dimensional judgment conditions. For example, the judgment conditions include: device type, device status (horizontal or vertical screen, unfolded or folded state, etc.), whether the application supports displaying the bar, whether the cursor is in the draggable area, and whether the mouse is connected to the device. Bar display and hiding are used, for example, to display the bar at the top of the device when the mouse is connected to the device and the judgment conditions are met, and to hide the bar when the mouse is unplugged from the device. The bar information sequence list is used, for example, to serialize and deserialize information such as mouse access information and face screen display bar information.

[0100] SystemUI can be used to load layout files and draw, switch to dark mode / avoid holes and add windows. Among them, the layout files loaded and drawn can be the layout files of the bar, and SystemUI can draw the bar according to the layout files. The dark mode switch can be understood as the different shapes of the draggable area and bar in normal mode and dark mode. When the normal mode is switched to dark mode, the draggable area and bar change accordingly; avoiding holes can be understood as some devices have a camera hole on the top, and the bar cannot overlap with the hole area. The window in the added window can be an animated window. The animated window will be explained later in this application and will not be explained here.

[0101] It is understandable that the application framework layer may also include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc., which is not specifically limited in the embodiments of the present application.

[0102] Of course, the operating system of the first electronic device 100 may also include a hardware abstract layer (HAL), a driver layer, and a hardware layer, etc. Each layer has its own role and division of labor, which is not limited in the embodiment of the present application.

[0103] like Figure 5 As shown, the operating system of the second electronic device 200 may include an application layer, and the application layer may include applications such as PC Manager.

[0104] PC Butler can be installed in the operating system of the PC in the form of a system application or a third-party application. For example, PC Butler can be used for device connection management, drag status update and synchronization, keyboard and mouse event management, heterogeneous screen projection, etc. Among them, device connection management is used to realize discovery and communication connection between devices, drag status update and synchronization is used to update and synchronize whether there is a drag event in the device, whether there is a cursor in the device, etc., keyboard and mouse event management is used to realize the management of mouse pressing, moving, and lifting events, etc., heterogeneous screen projection is used to manage the stacking and projection between the first electronic device 100 and the second electronic device 200, etc. Optionally, PC Butler can also be used for animation start and stop, animation resource management. Animation start and stop are used to manage the timing of displaying or not displaying animations, etc., and animation resource management is used to manage the resources required for the display of animations, etc.

[0105] Of course, the operating system of the second electronic device 200 may also include other layers such as a kernel and a driver, which are used to implement various functions of the second electronic device 200 together with the application layer, and this embodiment of the present application does not limit this.

[0106] When the first electronic device 100 and the second electronic device 200 implement the dragging method of the embodiment of the present application, the modules in the operating systems of each device may interact with each other. The following will combine the possible software module interactions and possible interface displays in the window dragging process implemented by the first electronic device 100 and the second electronic device 200 to exemplify the dragging method provided by the embodiment of the present application.

[0107] For ease of description, in the embodiments of the present application and the related drawings, the first electronic device 100 is a mobile phone, the second electronic device 200 is a PC, and the input device 300 is a mouse. This example does not constitute a specific limitation on the first electronic device 100, the second electronic device 200, and the input device 300. For example, the first electronic device 100 can also be replaced by a PAD, a foldable mobile phone, etc. In order to clearly illustrate the technical solution of the present application, the mobile phone in the embodiments of the present application may refer to a straight-plate mobile phone, and the foldable mobile phone may refer to a mobile phone that can switch between a folded state and an unfolded state.

[0108] It is understandable that before the mobile phone and the PC drag the window, the mobile phone and the PC can first connect the keyboard and mouse. During the keyboard and mouse connection stage between the mobile phone and the PC, the mobile phone can bind the communication service between the application framework layer and the keyboard and mouse module for mutual communication between subsequent modules. In addition, when a bar is displayed on the screen, the mobile phone can drag the window by dragging the bar with the mouse. If the mobile phone cannot display the bar, the dragging method of the embodiment of the present application can be executed to call out the bar and realize the window dragging scenario.

[0109] For example, Figure 6A schematic diagram of the interaction process of each module in the first electronic device 100 when calling out a bar is shown.

[0110] like Figure 6 As shown, the modules involved on the first electronic device 100 side may include the following modules in the application framework layer: PC manager service, virtual input manager, multi window manager, handler and task organizer; and the following modules in SystemUI: Shell initialization module (shell init impl), shell task organizer, multi window UI drawer, and multi window bar information, etc.

[0111] Among them, the computer management service is used to initialize the virtual input manager at startup; the virtual input manager is used to register multiple monitors, such as registering device plug-in and unplug monitors, registering mouse movement monitors, registering internal and external screen status switching monitors, and registering screen status rotation monitors, etc.; the multi-window manager is used to instruct the systemUI to show or hide the bar; the processor and task manager are used to pass the message or instruction to show or hide the bar issued by the multi-window manager to the systemUI.

[0112] The Shell initialization module is used, for example, to initialize the Shell Task Manager; the Shell Task Manager is used to communicate with the FWK framework and receive messages to show or hide the bar. The multi-window UI drawer is used, for example, to load layout files and show or hide the bar view. The multi-window bar information is used, for example, to serialize and deserialize information such as mouse access information and bar information displayed on the face screen.

[0113] like Figure 6 As shown, the interaction process of each module in the first electronic device 100 may include the following steps:

[0114] S601. The computer management service instructs the virtual input manager to start up and initialize.

[0115] During the booting process of the first electronic device 100, the computer management service may instruct the virtual input manager to initialize. During the initialization process, the virtual input manager may perform the following steps:

[0116] (1) The virtual input manager registers the input device 300 to listen (register input device listener).

[0117] The device may include an input device 300 and an output device, for example, the device may include a mouse, a keyboard, a stylus, etc. The virtual input manager registers the input device 300 for monitoring, so as to be able to monitor the plug-in and unplug-out status of the device.

[0118] (2) The virtual input manager registers mouse event listener.

[0119] After the virtual input manager registers the mouse event listener, the first electronic device 100 can obtain the mouse coordinates.

[0120] (3) The virtual input manager registers the foldable state.

[0121] The foldable state may include a folded state and an unfolded state of the foldable mobile phone, wherein in the unfolded state, the display screen of the foldable mobile phone may be an inner screen, and in the folded state, the display screen of the foldable mobile phone may be an outer screen.

[0122] After the virtual input manager registers the foldable state, the virtual input manager can monitor the state switching of the inner and outer screens of the foldable phone.

[0123] (4) The virtual input manager registers the screen status rotation listener.

[0124] The screen state may include a horizontal screen state and a vertical screen state. After registering the screen state rotation monitoring, the first electronic device 100 can monitor the horizontal and vertical screen states of the screen.

[0125] (5) The virtual input manager initializes the hot zone.

[0126] During the initialization of the virtual input manager, the first electronic device 100 may initialize data such as screen width and height, status bar height, etc. to identify the status bar rectangular area. In the embodiment of the present application, the status bar rectangular area has an overlapping area with the draggable area, for example, the draggable area may include the status bar rectangular area, the width of the draggable area is the same as the width of the status bar rectangular area, and the height of the draggable area is greater than the height of the status bar rectangular area.

[0127] It should be noted that steps (1) to (5) may be performed sequentially in the above order, or may be performed simultaneously, or may be performed sequentially in other orders. The order of registration and monitoring in the embodiment of the present application is not limited.

[0128] S602: When a mouse is connected to the first electronic device 100 or the PC, the virtual input manager identifies the connected device type as a mouse.

[0129] Exemplarily, the virtual input manager may monitor the insertion and removal of devices. When a mouse is detected to be inserted, the virtual input manager calls the function on input device added 300 to identify the device type, which includes a mouse.

[0130] S603: The virtual input manager instructs the multi-window manager to set the mouse device has been added (set is mouseadd) to true.

[0131] Setting the mouse device added may be used to indicate whether a mouse is connected to the first electronic device 100; when a mouse is connected, the virtual input manager may set the value of set is mouse add to true.

[0132] S604: When the first electronic device 100 is a mobile phone, a foldable mobile phone in a folded state, or a PAD in a vertical screen state, the virtual input manager sends an instruction for displaying a bar in the vertical screen to the multi-window manager.

[0133] The instruction for displaying the bar in the direct screen may be set to display the bar in the direct screen (set is showbar in direct screen).

[0134] In the embodiment of the present application, when the first electronic device 100 is a foldable mobile phone in an unfolded state or a PAD in a horizontal screen state, the first electronic device 100 can use the native process to display a bar at the top of the device; when the first electronic device 100 is a mobile phone, a foldable mobile phone in a folded state, or a PAD in a vertical screen state, the first electronic device 100 cannot use the native process to display a bar at the top of the device, and the first electronic device 100 can use the drag method provided in the embodiment of the present application to call out the bar at the top of the device. Therefore, in step S604, the first electronic device 100 needs to determine the device type and device state of the first electronic device 100.

[0135] Exemplarily, when the first electronic device 100 is a mobile phone, a foldable mobile phone in a folded state, or a PAD in a vertical screen state, the virtual input manager can set the value of the set is show bar in direct screen flag to true and instruct the multi-window management to display the bar.

[0136] In a possible implementation, step S604 may include:

[0137] (a) When the first electronic device 100 is a mobile phone, the virtual input manager sends a set isshow bar in direct screen command to the multi-window manager to be true.

[0138] And / or, (b) when the first electronic device 100 is a foldable mobile phone and the first electronic device 100 detects that the foldable state is the folded state, the virtual input manager sends set is show bar in directscreen to true to the multi-window manager.

[0139] And / or, (c) when the first electronic device 100 is a PAD and the first electronic device 100 detects that the screen state is in the vertical state, the virtual input manager sends a message that set is show bar in direct screen is true to the multi-window manager.

[0140] It is understandable that the corresponding determination conditions in (a)-(c) may be set separately in the first electronic device 100, or all of the above determination conditions may be set. For example, for a mobile phone, only the determination strategy of (a) may be set in the first electronic device 100; for a foldable mobile phone, only the determination strategy of (b) may be set in the first electronic device 100; for a PAD, only the determination strategy of (c) may be set in the first electronic device 100. Or, for another example, the determination strategies (a)-(c) are set in the first electronic device 100, and when the virtual input manager monitors that the first electronic device 100 meets any condition, it sends set isshow bar in direct screen to true to the multi-window manager. This embodiment of the application does not limit this.

[0141] It should be noted that a mobile phone, a foldable mobile phone in a folded state, and a PAD in a vertical screen state can be regarded as a straight screen device, and the first electronic device 100 can determine whether the device currently inserted with the mouse is a straight screen device according to step S604, and set set is showbar in direct screen to true. If set is show bar in direct screen is false, the first electronic device 100 does not execute the drag method provided in the embodiment of the present application.

[0142] S605: When the virtual input manager detects that the mouse coordinates are in the draggable area, the virtual input manager instructs the multi-window manager that the mouse is in the draggable area.

[0143] The virtual input manager monitors the mouse coordinates. When the mouse coordinates are in the status bar area, the virtual input manager calls the function is mouse in status bar rect to instruct the multi-window manager to display the bar.

[0144] It should be noted that the draggable area includes the status bar area. When the mouse is located near the status bar, the user has the interactive intention to drag the full-screen window, and the draggable area of ​​the first electronic device 100 can display a bar to achieve full-screen dragging.

[0145] S606: The multi-window manager determines whether the first electronic device 100 displays a full-screen window.

[0146] The full-screen window can be understood as: the first electronic device 100 runs the target application in the foreground, and the screen of the target application fills the screen. The embodiment of the present application can realize the full-screen window drag effect of a mobile phone, a foldable device in a folded state, or a PAD in a vertical screen state. When the first electronic device 100 displays a floating window and / or a split-screen application, after the mouse enters the draggable area, the top of the first electronic device 100 may not call out a bar.

[0147] When the first electronic device 100 displays the full screen window, the multi-window manager executes step S607.

[0148] S607: The multi-window manager determines whether the first electronic device 100 is in the immersive mode.

[0149] After the first electronic device 100 turns on the immersive mode, the status bar is displayed as a transparent bar (translucent bars).

[0150] To enhance the user's immersive experience, after the immersive mode is turned on, the first electronic device 100 will not execute the dragging method provided in the embodiment of the present application. For example, after the immersive mode is turned on, the mouse enters the draggable area, and the top of the first electronic device 100 may not call out a bar.

[0151] When the first electronic device 100 is in the immersive mode, the multi-window manager executes step S608.

[0152] S608: The multi-window manager determines whether the target application running on the first electronic device 100 supports dragging.

[0153] If the application supports dragging, it can be understood as: when the application is displayed in a full-screen window, the user can use the bar to drag the full-screen window. On the contrary, if the application does not support dragging, it can be understood as: when the application is displayed in a full-screen window, the bar is not displayed in the full-screen window.

[0154] In normal scenarios, when a PAD in landscape mode or a foldable phone in unfolded mode is running an application, a bar can be displayed in the full-screen window, indicating that the application supports dragging.

[0155] In other scenarios, when a PAD in landscape mode or a foldable phone in unfolded mode is running an application, no bar is displayed in the full-screen window, indicating that the application does not support dragging.

[0156] The drag method provided in the embodiment of the present application uses the properties of application A. The embodiment of the present application will not force the modification of application properties, and cannot enable full-screen window dragging for applications that do not support dragging. For example, when a mobile phone, a PAD in a vertical screen state, or a foldable mobile phone in a folded state displays an application in a full-screen window, and the application does not support dragging, even if the mouse is placed in the draggable area, the top of the first electronic device 100 cannot call out the bar.

[0157] In an embodiment of the present application, steps S606-S608 can be managed by a multi-window manager. When the above conditions are met, the multi-window manager can call a function to check whether the top bar is locked (check can show top bar locked), set check can show top bar locked to true, and the first electronic device 100 can continue to execute step S609; if the value of check can show top bar locked is false, the process is terminated, and the first electronic device 100 continues to monitor the device status and mouse status, etc.

[0158] It should be noted that after changing the transient bar (on transient bar changed), the multi-window manager can determine whether to call out the bar through the check can show top bar locked function. The check can show top bar locked may include multiple determination conditions, for example, the determination conditions include: the multi-window manager determines whether the display screen displays a full-screen window, the multi-window manager determines whether it is in an immersive state, the multi-window manager determines whether the application in the current full-screen window supports dragging, etc. There are also other check items in the check can show top bar locked function, which are not listed one by one in the embodiments of the present application.

[0159] It should be noted that steps S602-S608 provide a multi-dimensional judgment strategy to reduce the false triggering of the bar. For example, in step S602, the first electronic device 100 needs to be connected to a mouse, or the PC side that shares the keyboard and mouse with the first electronic device 100 needs to be connected to a mouse. In step S604, it is necessary to determine the device type of the first electronic device 100. The first electronic device 100 can be a mobile phone, a foldable mobile phone in a folded state, and a PAD in a vertical screen state. In step S605, the mouse coordinates need to be located in the status bar area. In steps S606-S608, the first electronic device 100 needs to meet multiple conditions of checking that the top bar is locked (checkcan show top bar locked), and the value of the checkcan show top bar locked function is true. In this way, the scenario of false triggering of the bar is reduced through multi-dimensional judgment conditions.

[0160] When the determination conditions of steps S602 to S608 are met, the first electronic device 100 may proceed to step S609.

[0161] S609: The multi-window manager instructs SystemUI to draw a bar.

[0162] When the multi-window manager confirms that the above determination condition is true, the multi-window manager can instruct SystemUI to draw the bar. In the embodiment of the present application, the bar can belong to the systemUI process, and the systemUI can display the bar in the draggable area based on the layout file of the bar.

[0163] Exemplarily, the multi-window manager instructs SystemUI to draw a bar, which may include the following steps:

[0164] (1) The multi-window manager serializes the bar information into multi-window bar information.

[0165] The multi-window bar information can be a serialized, public class. When the framework process and the systemUI process communicate, both processes can call the multi-window bar information. For example, the bar information may include information such as is mouse add and isshow bar in direct screen.

[0166] Specifically, after determining that a bar needs to be displayed on the top, the multi-window manager of the framework layer can serialize information such as ismouse add and is show bar in direct screen into the multi-window bar information, where the value of ismouse add can be true and the value of is show bar in direct screen can be true.

[0167] (2) The multi-window manager sends a message to the processor to confirm updating the top status bar.

[0168] The top status update confirmation message may be MSG_HN_INDEED_UPDATE_TOP_BAR. After the determination in steps S602-S608, the multi-window manager may confirm the top status bar update (real update top bar state) and transmit the top status update confirmation message to the processor.

[0169] It should be noted that step (1) can be performed before step (2) or after step (2), and the embodiment of the present application does not limit the serialization time of the bar information.

[0170] (3) The processor instructs the task manager to add a multi-window status bar.

[0171] The processor can call the function add multi window bar to instruct the task manager to show or hide the bar.

[0172] (4) The Task Manager instructs the Shell Task Manager to add a multi-window status bar.

[0173] (5) The shell task manager obtains the serialized bar information from the multi-window bar information, and deserializes the serialized bar information to obtain the bar information.

[0174] The shell task manager can deserialize the bar information obtained from the multi-window bar information to obtain the values ​​of is mouseadd and is show bar in direct screen. The bar information in step (5) is consistent with that in step (1).

[0175] For example, the bar information obtained by the shell task manager may have the value of is mouse add being true, and the value of is showbar in direct screen being true.

[0176] (6) The shell task manager instructs the multi-window UI drawer to display the multi-window status bar (real show multiwindow bar).

[0177] The shell task manager can confirm whether calling the add multi window bar function hides the bar or shows the bar. For example, when the value of is mouse add is true and the value of is show bar in direct screen is true, the property of add multi window bar corresponds to real show multi window bar; the shell task manager can confirm that calling the add multi window bar function executes real show multi window bar to display the bar in the draggable area.

[0178] (7) The multi-window UI drawer updates the bar view (update bar view).

[0179] (8) The multi-window UI drawer updates the direct screen bar.

[0180] It should be noted that when drawing the bar view, the multi-window UI drawer can load the corresponding layout file according to the multi-window bar information (multiwindow bar info). For example, the layout file may include the layout file of the bar in the drag method provided by this application, and may also include the layout file of the bar in the native process. When the value of is mouse add is true, and the value of isshow bar in direct screen is true, the multi-window UI drawer loads the layout file of the bar provided in the embodiment of this application; when the value of is mouse add is false, or the value of is show bar in direct screen is false, the multi-window UI drawer loads the layout file of the bar in the native process.

[0181] For example, in the embodiment of the present application, the first electronic device 100 is a mobile phone, a foldable mobile phone in a folded state, or a PAD in a vertical screen state. When the cursor enters the draggable area, the first electronic device 100 can display a bar; when the cursor moves out of the draggable area, the first electronic device 100 cancels the display of the bar. In this process, the bar information of the first electronic device 100 is is mouseadd is true, and is show bar in direct screen is true, and the multi-window UI drawer loads the layout file of the bar in the embodiment of the present application to implement this scenario.

[0182] For another example, the first electronic device 100 is a PAD in landscape mode and a foldable mobile phone in unfolded mode. When the first electronic device 100 displays the target application in full screen, the first electronic device 100 displays the bar; when the first electronic device 100 exits the target application, the first electronic device 100 cancels the display of the bar. The cursor leaving the draggable area does not hide the bar. In this process, the bar information of the first electronic device 100 is is mouse add is true, and is show bar in directscreen is false. The multi-window UI drawer can use the layout file of the bar in the native process to implement this scenario.

[0183] Optionally, before step S609, a process of initializing SystemUI is also included, as shown in steps S616 and S617:

[0184] S610: The Shell initialization module instructs the Shell task manager to initialize.

[0185] S611. The shell task manager instructs the multi-window UI drawer to initialize.

[0186] The shell task manager instructs the multi-window UI drawer to initialize through init multi window UI drawer. The embodiment of the present application does not limit the time of initializing the systemUI. The first electronic device 100 can initialize the Shell initialization module and the shell task manager when the device is turned on. The first electronic device 100 can also initialize the Shell initialization module and the shell task manager at any time before serializing the bar information.

[0187] The embodiment of the present application also provides a method for setting the range of a draggable area.

[0188] Exemplarily, after the virtual input manager registers the screen state rotation monitor, it also includes:

[0189] (1) Determine the range of the draggable area based on the device type, screen status, and foldable status.

[0190] Device types may include mobile phones, foldable phones, and PADs, etc., and screen states may include horizontal and vertical states.

[0191] The range of the draggable area varies for different types of devices, and the range of the draggable area varies for the same type of devices in landscape or portrait mode. The range of the draggable area may be related to the status bar, for example, the width of the draggable area is consistent with the width of the status bar, and the height of the draggable area is greater than or equal to the height of the status bar area.

[0192] If the first electronic device 100 is a foldable mobile phone, when displaying the bar, in addition to the screen state, the foldable state also needs to be considered. The form of the draggable area and bar in the folded state is different from that of the draggable area and bar in the unfolded state.

[0193] In a possible implementation, a camera is disposed on the top of the first electronic device 100. When calling out a bar on the top, the bar and the camera may overlap, affecting the aesthetics and operability of the bar. Therefore, when a camera is disposed on the top of the first electronic device 100, the bar may be disposed below the camera. Figure 8 In the video, the phone is displayed in portrait mode, with a camera in the middle of the top of the phone. The position of the bar is lower than that of the camera to avoid the hole at the camera.

[0194] In another possible implementation, no camera is provided on the top of the first electronic device 100, and the embodiment of the present application does not limit the position of the bar in the draggable area.

[0195] (2) When the rotation state and / or foldable state changes, the range of the draggable area is recalculated.

[0196] For example, the range of the draggable area of ​​the mobile phone is different in the horizontal and vertical screen states. When the mobile phone is switched from the horizontal screen to the vertical screen, or from the vertical screen to the horizontal screen, the mobile phone needs to recalculate the range of the draggable area.

[0197] The above embodiment describes the process of calling out the bar, and the following describes the process of canceling the display of the bar. Fig.10 As shown:

[0198] S701: When a mouse is unplugged from the first electronic device 100 or the PC, the virtual input manager identifies the type of the removed device as a mouse.

[0199] Exemplarily, the virtual input manager may monitor the insertion and removal of devices. When the virtual input manager monitors the removal of a mouse, it calls the function on input device removed 300 to identify the device type, which includes a mouse.

[0200] S702: The virtual input manager instructs the multi-window manager to set the mouse device has been added (set is mouseadd) to false.

[0201] When the mouse is removed, the virtual input manager may set set is mouse add to false to indicate that the mouse has been removed or not connected.

[0202] S703: The virtual input manager instructs the multi-window manager to hide the bar.

[0203] In some scenarios, when a mouse is connected to the first electronic device 100 or the PC and the cursor is in the draggable area, the first electronic device 100 may display a bar. After the mouse is removed, the bar is no longer displayed on the first electronic device 100. In this way, the first electronic device 100 may display or hide the bar according to the plug-in and unplug status of the mouse to reduce the scenario where the mouse is removed but the device still displays the bar.

[0204] S704: The multi-window manager instructs SystemUI to hide the bar.

[0205] The multi-window manager instructs SystemUI to hide the bar, which may include the following steps:

[0206] (1) The multi-window manager serializes the bar information into multi-window bar information.

[0207] Bar information may include information such as is mouse added and is show bar in direct screen.

[0208] Specifically, after determining that the bar needs to be displayed at the top, the multi-window manager can serialize the is mouse add information into the multi-window bar information, wherein the value of is mouse add can be false. Optionally, the bar information can also include isshow bar in direct screen, wherein the value of is show bar in direct screen can be true or false.

[0209] (2) The multi-window manager sends a message to the processor to confirm updating the top status bar.

[0210] (3) The processor instructs the task manager to add a multi-window status bar.

[0211] (4) The Task Manager instructs the Shell Task Manager to add a multi-window status bar.

[0212] It is understandable that in the process of calling out the bar or hiding the bar by the first electronic device 100, the add multi window bar function is called through the MSG_HN_INDEED_UPDATE_TOP_BAR message. The shell task manager can further confirm whether the step to be executed is for displaying the bar or hiding the bar according to the serialization information in the multi window bar information. As shown in step (5):

[0213] (5) The shell task manager obtains the serialized bar information from the multi-window bar information, and deserializes the serialized bar information to obtain the bar information.

[0214] The shell task manager can deserialize the bar information obtained from the multi-window bar information to obtain the values ​​of is mouseadd and is show bar in direct screen. The bar information in step (5) is consistent with that in step (1).

[0215] For example, the bar information obtained by the shell task manager may have the value of is mouse add being false and the value of isshow bar in direct screen being true.

[0216] (6) The shell task manager instructs the multi-window UI drawer to hide the multi-window status bar (real hide multiwindow bar).

[0217] The shell task manager can confirm whether calling the add multi window bar function hides the bar or shows the bar. For example, when the value of is mouse add is false and the value of is show bar in direct screen is true, the property of add multi window bar corresponds to hiding the bar (real hide multi window bar); the shell task manager can confirm that calling the add multi window bar function executes real hide multi window bar to hide the bar in the draggable area.

[0218] In some scenarios, the multi-window manager can serialize is mouse add and set is show bar in directscreen into the multi-window bar information. After the mouse is removed, the value of is mouse add is false; the flag of set is showbar in direct screen may be true (for example, mobile phones, foldable phones in folded state, and PADs in portrait mode) or false (for example, foldable phones in unfolded state and PADs in landscape mode), but this does not affect the Shell Task Manager's judgment result of hiding the bar.

[0219] (6)Multi-window UI drawer hides the bar view (hide bar view).

[0220] Step S704 is similar to step S609 and will not be described again here.

[0221] The scenarios of calling out the bar and hiding the bar by the first electronic device 100 may be as follows:

[0222] The scene of calling out bar corresponds to:

[0223] exist Figure 8 In the example, the area from the dotted line to the top of the screen can be set as the draggable area 801. When the mobile phone uses the keyboard and mouse function, the cursor 802 is controlled by the input device 300 such as the mouse to move on the screen of the mobile phone. When the cursor 802 is outside the range covered by the draggable area 801, the draggable area 801 does not display a bar. The cursor can be as follows: Figure 8 The arrow shape shown may also be a circle or any other shape, which is not specifically limited in the embodiments of the present application.

[0224] exist Fig. 9 In the example, the draggable area may include bar 903, the area where the title bar is located, and / or the area near the title bar. When the cursor 902 moves into the draggable area 901, the draggable area 901 may display bar 903. It is understandable that in order to improve the accuracy of calling out the bar, the bar may be displayed when the cursor 902 is located at the edge of the draggable area 901, that is, when the cursor 902 is located at the dotted line, the bar is displayed on the display screen of the mobile phone. After the cursor enters the draggable area, the mobile phone may continue to display the bar until the cursor leaves the draggable area.

[0225] The scene of hiding the bar corresponds to:

[0226] exist Fig. 9 In the figure, a bar is displayed in the draggable area 901 of the mobile phone.

[0227] exist Fig.10 In the example, when the cursor 1002 leaves the draggable area 1001, the mobile phone no longer displays the bar.

[0228] It is understandable that the virtual input manager can monitor the mouse movement position in real time, so that when the cursor moves into the hot zone, the draggable area calls out the bar. When the cursor moves out of the hot zone, the draggable area cancels the display of the bar.

[0229] It should be noted that the present application embodiment takes the mobile phone display mode set to normal mode as an example to illustrate the scene of calling out the bar. For example, in normal mode, the scene of calling out the bar at the top of the mobile phone can be as follows: Figure 8-Figure 10 When the phone's display mode is set to dark mode (also called night mode), the phone can also perform the following Figure 8-Figure 10 In the scenario shown, the draggable area, bar, etc. in the dark mode are different from the draggable area, bar, etc. in the normal mode in terms of color, brightness, etc. The embodiment of the present application does not limit the layout of the draggable area in the dark mode.

[0230] The above embodiment illustrates the process of the first electronic device 100 executing the calling out bar and hiding the bar in the embodiment of the present application. The following describes the scenario in which the dragging method provided in the embodiment of the present application is used.

[0231] The dragging method provided in the embodiment of the present application can be applied to the following scenarios:

[0232] Scenario 1: When the phone and PC are sharing the keyboard and mouse, move the mouse to the draggable area at the top of the phone to call out the top bar. Users can drag the full-screen window on the phone to the PC by dragging the bar, realizing the function of dragging a single application across devices. For example, if the full-screen window is on the PC, the user lifts it up, and the PC can display the full-screen window on the phone, realizing cross-device screen projection.

[0233] Scenario 2: When the phone and PC are sharing the keyboard and mouse, move the mouse to the draggable area at the top of the phone to call out the top bar. Users can also drag the bar to switch window modes: switch from full screen to floating window, switch from full screen to split screen, etc.

[0234] Scenario 3: When the phone and PC are not in keyboard and mouse sharing mode and the phone is connected to an external mouse, the window state switching is achieved by dynamically calling out the bar: switching from full screen to floating window, and switching from full screen to split screen.

[0235] The keyboard and mouse connection relationship between PC and mobile phone can be as follows Figure 1 or Figure 2 As shown, in Figure 1 or Figure 2Based on the above, the scenario of screen projection with different sources in scenario 1 can be as follows:

[0236] exist Fig. 9 In the example, the mouse controls the cursor 902 to the draggable area 901, and the mobile phone calls out the bar. For example, the cursor 902 moves to the position of the bar 903. The user can trigger the mobile phone to monitor the drag bar operation by pressing the mouse and dragging, wherein the drag bar operation can also be called a drag operation.

[0237] exist Fig.11 In the figure, the mobile phone displays an animation of a full-screen window being reduced, and a wallpaper mask 1102 is displayed at the lower layer of the reduced full-screen window 1101. The reduced full-screen window includes a specific application running interface, for example, the mobile phone is running a gallery application.

[0238] exist Fig.12 In the figure, the mobile phone displays a motion effect window 1201, and a wallpaper mask 1202 is displayed under the motion effect window.

[0239] The dynamic effect window 1201 can be understood as a dynamic effect window drawn by the mobile phone according to the package name and icon of the target application in the full screen window of the mobile phone. The dynamic effect window does not include a specific application running interface. For example, the dynamic effect window 1201 displays the application icon of the gallery application, but does not display the gallery application running interface. The size of the dynamic effect window can be a default value or can be related to the resolution of the PAD, etc., which is not specifically limited in the embodiments of the present application.

[0240] exist Fig.13 In the process, the user can continue to drag the animation window to the edge of the phone screen. Fig.13 As shown, the portion of the motion effect window 1301 that exceeds the edge of the mobile phone screen is not displayed, and the portion of the motion effect window 1301 that does not exceed the edge of the mobile phone screen is displayed.

[0241] exist Fig.14 In the process of dragging, the portion of the PC's motion effect window 1401 that exceeds the edge of the PC screen is not displayed, and the portion of the PC's motion effect window 1401 that does not exceed the edge of the PC screen is displayed.

[0242] exist Fig.15 As the dragging operation proceeds, the motion effect window 1501 can be completely displayed on the PC, the wallpaper mask 1502 is displayed on the mobile phone, and the interface of the complete motion effect window 1501 of the PC is displayed on the PC.

[0243] exist Fig.16, the user can lift up to end the drag, and the PC can display a projection window 1601, which can display the running interface of the target application in the mobile phone. The interface displayed by the mobile phone is different from the content displayed in the projection window 1601 of the PC. For example, the mobile phone can display the desktop 1602.

[0244] in, Fig.11 The phase can be very short, after which the reduced full-screen window disappears and the target application's surface is hidden. Fig.12 In the animation, the cursor can be displayed at the top of the animation window, and the animation window moves with the cursor. In this way, the user can experience the smooth process of the full-screen window from shrinking to following the dragging in a continuous drag operation, which improves the user experience.

[0245] In scenario 1, the mobile phone and PC can achieve heterogeneous screen projection or homogeneous screen projection.

[0246] For example, in Fig.16 In the example, the screen projection window 1601 includes a control 1603, which can be called a home button. When the home button is triggered, the PC and the PAD can be projected together. When the PC receives a trigger operation for the control 1603, the PC displays Fig.17 The interface shown.

[0247] exist Fig.17 In the example, the content displayed in the projection window 1701 of the PC is the same as the content displayed on the PAD. For example, the projection window 1701 displays the desktop of the mobile phone. This facilitates the switching from heterogeneous projection to homogeneous projection.

[0248] In scenario 1, when the mouse is dragging the animated window across the PC and the mobile phone, the user may want to cancel the cross-source screen projection and restore the original interface.

[0249] For example, in Fig.15 As the dragging operation proceeds, the motion effect window 1501 can be completely displayed on the PC, the wallpaper mask 1502 is displayed on the mobile phone, and the interface of the complete motion effect window 1501 of the PC is displayed on the PC.

[0250] exist Fig.18 In the example, the mouse drags the motion effect window from the PC side back to the mobile phone side, and the mobile phone displays the motion effect window 1801, and the wallpaper mask 1802 is displayed under the motion effect window.

[0251] exist Fig.19 In the example, the user can lift up to end the dragging, and the mobile phone displays interface 1901.

[0252] exist Figure 1 and Figure 2Based on the connection relationship between the PC, mobile phone and mouse, scenario 2 can realize the switching from full screen window to floating window, and from full screen window to split screen window. The process of switching from full screen window to floating window on mobile phone can be as follows:

[0253] exist Fig. 9 In the example, the mouse controls the cursor 902 to the draggable area 901, and the mobile phone calls out the bar. For example, the cursor 902 moves to the position of the bar 903. The user can trigger the mobile phone to monitor the dragging bar operation by pressing the mouse and dragging.

[0254] exist Fig.11 In the figure, the mobile phone displays an animation of a full-screen window being reduced, and a wallpaper mask 1102 is displayed at the lower layer of the reduced full-screen window 1101. The reduced full-screen window includes a specific application running interface, for example, the mobile phone is running a gallery application.

[0255] exist Fig.12 In the figure, the mobile phone displays a motion effect window 1201, and a wallpaper mask 1202 is displayed under the motion effect window.

[0256] exist Fig. 20 In the figure, the mobile phone receives a lifting operation from the user, and in response to the lifting operation, the mobile phone displays a floating window 2001, and a desktop 2002 is displayed below the floating window 2001.

[0257] In scenario 2, the process of switching the mobile phone from a full-screen window to a split-screen window can be as follows:

[0258] exist Fig. 9 In the example, the mouse controls the cursor 902 to the draggable area 901, and the mobile phone calls out the bar. For example, the cursor 902 moves to the position of the bar 903. The user can trigger the mobile phone to monitor the dragging bar operation by pressing the mouse and dragging.

[0259] exist Fig.11 In the figure, the mobile phone displays an animation of a full-screen window being reduced, and a wallpaper mask 1102 is displayed at the lower layer of the reduced full-screen window 1101. The reduced full-screen window includes a specific application running interface, for example, the mobile phone is running a gallery application.

[0260] exist Fig.12 In the figure, the mobile phone displays a motion effect window 1201, and a wallpaper mask 1202 is displayed under the motion effect window.

[0261] exist Fig.21 In the embodiment of the present invention, the mobile phone receives a lifting operation by the user, and in response to the lifting operation, the mobile phone displays split-screen window 2101 and split-screen window 2102. For example, split-screen window 2101 can be a window of a gallery application, and split-screen window 2102 can select other split-screen applications.

[0262] It should be noted that when the mouse drags the animation window to move on the mobile phone display, the mobile phone can determine whether the animation window is restored to a full-screen window, switched to a floating window, or switched to a split-screen application based on the coordinate position of the user's lift operation. For example, when the animation window is close to the hot zone on the left and right edges of the mobile phone and recognizes the lift operation, the mobile phone switches from a full-screen window to a split-screen window. The embodiment of the present application does not limit the hot zone position for switching window forms.

[0263] The keyboard and mouse connection relationship between PC and mobile phone can be as follows Fig. 22 As shown, the mobile phone 100 is connected to the mouse 300, and the mobile phone 100 has not established a keyboard and mouse sharing with the PC. Fig. 22 Based on Scenario 3, the full-screen window can also be switched to the floating window, the full-screen window can be switched to the split-screen window, etc. The process of switching the mobile phone from the full-screen window to the floating window can be as follows:

[0264] exist Fig. 9 In the example, the mouse controls the cursor 902 to the draggable area 901, and the mobile phone calls out the bar. For example, the cursor 902 moves to the position of the bar 903. The user can trigger the mobile phone to monitor the dragging bar operation by pressing the mouse and dragging.

[0265] exist Fig.11 In the figure, the mobile phone displays an animation of a full-screen window being reduced, and a wallpaper mask 1102 is displayed at the lower layer of the reduced full-screen window 1101. The reduced full-screen window includes a specific application running interface, for example, the mobile phone is running a gallery application.

[0266] exist Fig.12 In the figure, the mobile phone displays a motion effect window 1201, and a wallpaper mask 1202 is displayed under the motion effect window.

[0267] exist Fig. 20 In the figure, the mobile phone receives a lifting operation from the user, and in response to the lifting operation, the mobile phone displays a floating window 2001, and a desktop 2002 is displayed below the floating window 2001.

[0268] In scenario 3, the process of switching the mobile phone from a full-screen window to a split-screen window can be as follows:

[0269] exist Fig. 9 In the example, the mouse controls the cursor 902 to the draggable area 901, and the mobile phone calls out the bar. For example, the cursor 902 moves to the position of the bar 903. The user can trigger the mobile phone to monitor the dragging bar operation by pressing the mouse and dragging.

[0270] exist Fig.11 In the figure, the mobile phone displays an animation of a full-screen window being reduced, and a wallpaper mask 1102 is displayed at the lower layer of the reduced full-screen window 1101. The reduced full-screen window includes a specific application running interface, for example, the mobile phone is running a gallery application.

[0271] exist Fig.12 In the figure, the mobile phone displays a motion effect window 1201, and a wallpaper mask 1202 is displayed under the motion effect window.

[0272] exist Fig.21 In the embodiment of the present invention, the mobile phone receives a lifting operation by the user, and in response to the lifting operation, the mobile phone displays split-screen window 2101 and split-screen window 2102. For example, split-screen window 2101 can be a window of a gallery application, and split-screen window 2102 can select other split-screen applications.

[0273] The present application embodiment takes the first electronic device 100 as a mobile phone as an example to illustrate the application scenarios that can be realized by the dragging method. The first electronic device 100 can also be a PAD in a vertical screen state and a foldable mobile phone in a folded state, such as Fig.23 and Fig.24 shown.

[0274] exist Fig.23 In the embodiment, the PAD and the PC share the keyboard and mouse. When the PAD is in the vertical screen state, the PAD can display the bar at the top based on the method of calling out the bar in the embodiment of the present application. Thus, the scenes shown in scene 1, scene 2 and scene 3 can be realized by dragging the bar. The embodiment of the present application will not be repeated in detail.

[0275] exist Fig.24 In the embodiment, the foldable phone and the PC share the keyboard and mouse. When the foldable phone is in the folded state, the foldable phone can display the bar at the top based on the method of calling out the bar in the embodiment of the present application. Thus, the scenes shown in scene 1, scene 2 and scene 3 can be realized by dragging the bar. The embodiment of the present application will not be repeated in detail.

[0276] Based on the above embodiments, the present application provides a dragging method. For example, Fig.25 A flowchart of a dragging method provided in an embodiment of the present application.

[0277] like Fig.25 As shown, the dragging method can be applied to a communication system, the communication system includes a first electronic device installed with a first operating system and a second electronic device installed with a second operating system, the first electronic device or the second electronic device is connected to an input device, the first operating system is different from the second operating system, for example, the first operating system includes an Android system, and the second operating system includes a Windows system. The dragging method includes the following steps:

[0278] S2501. The first electronic device displays a first cursor and a full-screen window of a first application, where the first cursor is located on the full-screen window, and the full-screen window is in a non-dragable state.

[0279] The first electronic device may be Figure 8 In the mobile phone shown, the first cursor may correspond to cursor 802, the first application may correspond to the gallery application, and the full-screen window may be shown in the interface displayed on the mobile phone. At this time, the first cursor cannot drag the full-screen window.

[0280] S2502. When the user controls the first cursor to move to the first position through the input device, the first electronic device displays the first cursor, the full-screen window of the first application, and a draggable indicator, where the draggable indicator is used to indicate that the full-screen window is in a draggable state.

[0281] Among them, the input device may correspond to a mouse ( Fig. 9 Not shown), Fig. 9 In the figure, the first cursor may correspond to the cursor 902, the first position may be the area where the cursor 902 is located, and the draggable indicator may correspond to the bar 903.

[0282] It is understandable that the first position may be the draggable area 901 , and when the cursor 9002 enters the draggable area 901 , the electronic device displays a bar 903 .

[0283] S2503: When the user controls the first cursor through the input device to select and drag the draggable area of ​​the full-screen window, the first electronic device displays a reduced full-screen window.

[0284] Among them, the first cursor may correspond to Fig.11 The cursor in the reduced full screen window corresponds to Fig.11 A reduced full screen window 1101 in FIG.

[0285] S2504: When detecting that the user releases the first cursor in the first electronic device through the input device, the first electronic device displays a full-screen window.

[0286] Among them, Fig.19 In the embodiment, when the first cursor is located on the display screen of the first electronic device and the input device releases the first cursor, the electronic device displays the following Fig.19 Full screen window 1901 in.

[0287] S2505: When the user controls the first cursor to move to the second position through the input device, the first electronic device displays the first cursor, the full-screen window of the first application, and does not display the draggable mark.

[0288] The first cursor may correspond to Fig.10 For the cursor 1002 in the figure, the second position may correspond to the area where the cursor 1002 is located.

[0289] It can be seen that when the cursor 1002 moves out of the draggable area 1001, the electronic device does not display the draggable indicator (bar).

[0290] S2506. When the user controls the first cursor to select and drag the full-screen window at the second position through the input device, the first electronic device displays the full-screen window; wherein the first position and the draggable indicator are included in the draggable area, and the second position is not included in the draggable area.

[0291] When the first electronic device displays Fig.10 When the interface is shown, the electronic device does not respond to the dragging of the full-screen window by the input device.

[0292] In the embodiment of the present application, the first electronic device displays a first cursor. When the first cursor is located at the first position, the first electronic device can call out the bar, and the first electronic device can drag a full-screen window with the mouse; when the first cursor is located at the second position, the first electronic device will not call out the bar, and the first electronic device cannot drag the full-screen window with the mouse. In this way, after the first electronic device calls out the bar, the process of dragging the full-screen window in the first electronic device can be realized, enriching the device interconnection scene and prompting the user experience.

[0293] Optionally, the display position of the draggable marker does not overlap with the punch hole position in the screen of the first electronic device.

[0294] For example, Fig. 9 The draggable mark corresponds to bar 903, the punch hole position can be a circular hole position displayed in the center of the top of the mobile phone, and the punch hole position can be a camera.

[0295] Optionally, the method includes:

[0296] 1) The first electronic device registers input device monitoring, registers mouse event monitoring, registers foldable state monitoring and registers screen state rotation monitoring; wherein, the input device monitoring is used to monitor the plug-in and unplugging status of the input device, the mouse event monitoring is used to monitor the coordinates of the mouse in the first electronic device, the foldable state monitoring is used to monitor the folding and unfolding state of the foldable electronic device, and the screen state rotation monitoring is used to monitor the horizontal and vertical screen states of the first electronic device.

[0297] The process of registering and monitoring may refer to the relevant description in step S601, which will not be repeated here.

[0298] 2) When the first electronic device monitors that a mouse is connected to the first electronic device and / or the second electronic device, the electronic device sets the first information to a first value, where the first information is used to indicate whether a mouse is connected to the communication system.

[0299] The first information may be set is mouse add, and the first value may be true.

[0300] For step 2), please refer to the relevant description in steps S602-S603, which will not be repeated here.

[0301] 3) When the first electronic device is a straight-screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical state, the first electronic device sets the second information to a second value, and the second information is used to indicate whether the first electronic device is a straight-screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical state.

[0302] The second information may be set is show bar in direct screen, and the second value may be true.

[0303] For step 3), please refer to the relevant description in step S604, which will not be repeated here.

[0304] 4) When the first electronic device detects that the coordinates of the mouse are located in the draggable area, the first electronic device displays a draggable indicator according to the value of the first information and the value of the second information.

[0305] Among them, step 4) can refer to the relevant description in step S609 and will not be repeated here.

[0306] Optionally, before the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, it also includes: the first electronic device determines that the first electronic device displays a full-screen window; the first electronic device determines that the first electronic device is not in immersive mode; and the first electronic device determines that the first application supports dragging.

[0307] The process may refer to the relevant descriptions in steps S606-S608, which will not be repeated here.

[0308] Optionally, after the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, the following includes: when the first electronic device detects that the mouse is unplugged from the first electronic device and / or the second electronic device, the electronic device sets the first information to the second value; and the first electronic device hides the draggable indicator according to the value of the first information.

[0309] The first information can be set is mouse add, and the third value can be false. Figure 7 The relevant descriptions of the steps shown in the

[0310] Optionally, after the first electronic device displays the reduced full-screen window, the method further includes:

[0311] 1) When the first cursor drags the full-screen window to the third position, the first electronic device displays the wallpaper and displays the first motion effect window at the third position, and stops displaying the full-screen window. The first motion effect window includes a first identifier of the first application. The first motion effect window is located on an upper layer of the wallpaper, and a size of the first motion effect window is smaller than a size of the full-screen window.

[0312] Among them, Fig.12 In the embodiment, the wallpaper may correspond to the wallpaper mask 1202, the first motion effect window may correspond to the motion effect window 1201, and the first identifier may include the application name and application icon of the first application. For example, the application icon of the gallery application is displayed in the motion effect window 1201. The motion effect window 1201 is located on the upper layer of the wallpaper mask 1202, and the size of the motion effect window 1201 is smaller than the size of the full screen window.

[0313] 2) During the process of the first cursor dragging the first animation window, when the first cursor moves from the first screen edge of the first electronic device to the second screen edge of the second electronic device, the first electronic device displays the wallpaper and stops displaying the first animation window, and the second electronic device displays the second animation window dragged by the first cursor, and the second animation window includes the second identifier of the first application.

[0314] The process of the first cursor moving from the first screen edge of the first electronic device to the second screen edge of the second electronic device may correspond to: Figure 13-Figure 14 ;exist Fig.14 In the example, the wallpaper may be a wallpaper mask on the mobile phone side, and the second motion effect window may be a motion effect window 1401. The second identifier may include an application icon and an application name of the first application. For example, the icon and name of the gallery application are displayed in the motion effect window 1401.

[0315] 3) During the process of dragging the second animation window with the first cursor, when it is detected that the user releases the first cursor at the fourth position through the input device, the second electronic device displays the projection window at the fourth position and stops displaying the second animation window. When part or all of the content of the full-screen window is not displayed in the projection window of the second electronic device, the first electronic device displays the wallpaper and sets the layer where the full-screen window is located to the lower layer of the wallpaper.

[0316] Among them, Fig.15 In the example, the second dynamic effect window corresponds to the dynamic effect window 1501, and the fourth position may be the position where the dynamic effect window 1501 is located. When the first electronic device detects the operation of releasing the first cursor, it may display Fig.16 In the interface shown, the projection window may correspond to projection window 1601 .

[0317] It is understandable that the process of projecting the full-screen window of the first application to the second electronic device takes a relatively short time. Before the second electronic device displays the interface running the first application, the first electronic device can display the wallpaper, and the layer (surface) of the full-screen window is below the wallpaper.

[0318] Optionally, the method also includes: when part or all of the content of the full-screen window is displayed in the projection window, the first electronic device stops displaying the wallpaper and displays the desktop.

[0319] Among them, Fig.16 In the figure, the projection window 1601 displays the interface of the gallery application, the first electronic device does not display the wallpaper, and displays the desktop 1602.

[0320] Based on the above embodiment, the present application embodiment provides another dragging method. For example, Fig.26 A flowchart of another dragging method provided in an embodiment of the present application.

[0321] like Fig.26 As shown, the dragging method is applied to an electronic device, the electronic device is connected to an input device, and the method includes:

[0322] The scenarios used in steps S2601-S2606 can be as follows: Fig. 22 Shown: A mouse is connected to the mobile phone.

[0323] S2601. The electronic device displays a first cursor and a full-screen window of a first application, wherein the first cursor is located on the full-screen window, and the full-screen window is in a non-dragable state.

[0324] The first electronic device may be Figure 8 In the mobile phone shown, the first cursor may correspond to cursor 802, the first application may correspond to the gallery application, and the full-screen window may be shown in the interface displayed on the mobile phone. At this time, the first cursor cannot drag the full-screen window.

[0325] S2602: When the user controls the first cursor to move to the first position through the input device, the electronic device displays the first cursor, the full-screen window of the first application, and a draggable indicator, where the draggable indicator is used to indicate that the full-screen window is in a draggable state.

[0326] Among them, the input device may correspond to a mouse ( Fig. 9 Not shown), Fig. 9 In the figure, the first cursor may correspond to the cursor 902, the first position may be the area where the cursor 902 is located, and the draggable indicator may correspond to the bar 903.

[0327] It is understandable that the first position may be the draggable area 901 , and when the cursor 9002 enters the draggable area 901 , the electronic device displays a bar 903 .

[0328] S2603: When the user uses the input device to control the first cursor to select and drag the draggable area of ​​the full-screen window, the electronic device displays a reduced full-screen window.

[0329] Among them, the first cursor may correspond to Fig.11 The cursor in the reduced full screen window corresponds to Fig.11 A reduced full screen window 1101 in FIG.

[0330] S2604: When detecting that the user releases the first cursor through the input device, the electronic device displays a full-screen window.

[0331] Among them, Fig.19 In the embodiment, when the first cursor is located on the display screen of the first electronic device and the input device releases the first cursor, the electronic device displays the following Fig.19 Full screen window 1901 in.

[0332] S2605: When the user controls the first cursor to move to the second position through the input device, the electronic device displays the first cursor, the full-screen window of the first application, and does not display the draggable mark.

[0333] The first cursor may correspond to Fig.10 For the cursor 1002 in the figure, the second position may correspond to the area where the cursor 1002 is located.

[0334] It can be seen that when the cursor 1002 moves out of the draggable area 1001, the electronic device does not display the draggable indicator (bar).

[0335] S2606. When the user controls the first cursor to select and drag the full-screen window at the second position through the input device, the electronic device displays the full-screen window; wherein the first position and the draggable indicator are included in the draggable area, and the second position is not included in the draggable area.

[0336] When the first electronic device displays Fig.10 When the interface is shown, the electronic device does not respond to the dragging of the full-screen window by the input device.

[0337] Optionally, the display position of the draggable marker does not overlap with the punch hole position in the screen of the electronic device.

[0338] For example, Fig. 9 The draggable mark corresponds to bar 903, the punch hole position can be a circular hole position displayed in the center of the top of the mobile phone, and the punch hole position can be a camera.

[0339] Optionally, the method includes:

[0340] 1) The first electronic device registers input device monitoring, registers mouse event monitoring, registers foldable state monitoring and registers screen state rotation monitoring; wherein, the input device monitoring is used to monitor the plug-in and unplugging status of the input device, the mouse event monitoring is used to monitor the coordinates of the mouse in the first electronic device, the foldable state monitoring is used to monitor the folding and unfolding state of the foldable electronic device, and the screen state rotation monitoring is used to monitor the horizontal and vertical screen states of the first electronic device.

[0341] The process of registering and monitoring may refer to the relevant description in step S601, which will not be repeated here.

[0342] 2) When the first electronic device monitors that a mouse is connected to the first electronic device and / or the second electronic device, the electronic device sets the first information to a first value, where the first information is used to indicate whether a mouse is connected to the communication system.

[0343] The first information may be set is mouse add, and the first value may be true.

[0344] For step 2), please refer to the relevant description in steps S602-S603, which will not be repeated here.

[0345] 3) When the first electronic device is a straight-screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical state, the first electronic device sets the second information to a second value, and the second information is used to indicate whether the first electronic device is a straight-screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical state.

[0346] The second information may be set is show bar in direct screen, and the second value may be true.

[0347] For step 3), please refer to the relevant description in step S604, which will not be repeated here.

[0348] 4) When the first electronic device detects that the coordinates of the mouse are located in the draggable area, the first electronic device displays a draggable indicator according to the value of the first information and the value of the second information.

[0349] Among them, step 4) can refer to the relevant description in step S609 and will not be repeated here.

[0350] Optionally, before the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, it also includes: the first electronic device determines that the first electronic device displays a full-screen window; the first electronic device determines that the first electronic device is not in immersive mode; and the first electronic device determines that the first application supports dragging.

[0351] The process may refer to the relevant descriptions in steps S606-S608, which will not be repeated here.

[0352] Optionally, after the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, the following includes: when the first electronic device detects that the mouse is unplugged from the first electronic device and / or the second electronic device, the electronic device sets the first information to the second value; and the first electronic device hides the draggable indicator according to the value of the first information.

[0353] The first information can be set is mouse add, and the third value can be false. Figure 7 The relevant descriptions of the steps shown in the

[0354] Optionally, the method further includes: when the user controls the first cursor through the input device to select and drag the draggable area of ​​the full-screen window, the electronic device displays a floating window of the first application.

[0355] Among them, the floating window can correspond to Fig. 20 The floating window 2001 in.

[0356] Optionally, the method also includes: when the user controls the first cursor through the input device to select and drag the draggable area of ​​the full-screen window, the electronic device displays the split-screen window of the first application.

[0357] Among them, the split screen window can correspond to Fig.21 The split screen window 2101 in.

[0358] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0359] The dragging method of the embodiment of the present application has been described above, and the device for executing the dragging method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can execute the steps in the above-mentioned dragging method.

[0360] like Fig. 27As shown, the dragging device 2700 can be used in a communication device, circuit, hardware component or chip, and the dragging device includes: a display unit 2701 and a processing unit 2702. The display unit 2701 is used to support the display step performed by the dragging device 2700; the processing unit 2702 is used to support the information processing step performed by the dragging device 2700.

[0361] In a possible implementation, the dragging device 2700 may also include a communication unit 2703. Specifically, the communication unit is used to support the dragging device 2700 to perform the steps of sending and receiving data. The communication unit 2703 may be an input or output interface, a pin or a circuit.

[0362] In some embodiments, the dragging device 2700 may further include: a storage unit 2704. The processing unit 2702 and the storage unit 2704 are connected via a line. The storage unit 2704 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 2704 may exist independently and be connected to the processing unit 2702 of the dragging device via a communication line. The storage unit 2704 may also be integrated with the processing unit 2702.

[0363] The storage unit 2704 can store computer-executable instructions of the method in the terminal device so that the processing unit 2702 executes the method in the above embodiment. The storage unit 2704 can be a register, a cache, or a RAM, etc. The storage unit 2704 can be integrated with the processing unit 2702. The storage unit 2704 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 2704 can be independent of the processing unit 2702.

[0364] The dragging method provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.

[0365] An embodiment of the present application provides a terminal device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the above method.

[0366] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.

[0367] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0368] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0369] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

[0370] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0371] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A dragging method, characterized in that: Applied to a communication system, the communication system includes a first electronic device installed with a first operating system and a second electronic device installed with a second operating system, the first electronic device or the second electronic device is connected to an input device, the first operating system is different from the second operating system, and the method includes: The first electronic device displays a first cursor and a full-screen window of a first application, the first cursor is located on the full-screen window, and the full-screen window is in a non-draggable state; When the user controls the first cursor to move to the first position through the input device, the first electronic device displays the first cursor, the full-screen window of the first application, and the draggable mark, where the draggable mark is used to indicate that the full-screen window is in a draggable state; When the user controls the first cursor to select and drag the draggable area of ​​the full-screen window through the input device, the first electronic device displays the reduced full-screen window; After detecting that the user releases the first cursor in the first electronic device through the input device, the first electronic device displays the full-screen window; When the user controls the first cursor to move to the second position through the input device, the first electronic device displays the first cursor, the full-screen window of the first application, and does not display the draggable mark; When the user controls the first cursor to select and drag the full-screen window at the second position through the input device, the first electronic device displays the full-screen window; The first position and the draggable indicator are included in the draggable area, and the second position is not included in the draggable area.

2. The method according to claim 1, characterized in that The display position of the draggable marker does not overlap with the punch hole position in the screen of the first electronic device.

3. The method according to claim 1 or 2, characterized in that: include: The first electronic device registers the input device monitor, registers the mouse event monitor, registers the foldable state monitor and registers the screen state rotation monitor; wherein the input device monitor is used to monitor the plug-in and unplug status of the input device, the mouse event monitor is used to monitor the coordinates of the mouse in the first electronic device, the foldable state monitor is used to monitor the folding and unfolding state of the foldable electronic device, and the screen state rotation monitor is used to monitor the horizontal and vertical screen states of the first electronic device; When the first electronic device monitors that a mouse is connected to the first electronic device and / or the second electronic device, the electronic device sets first information to a first value, where the first information is used to indicate whether the mouse is connected to the communication system; When the first electronic device is a straight-screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical screen state, the first electronic device sets the second information to a second value, where the second information is used to indicate whether the first electronic device is a straight-screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical screen state; When the first electronic device detects that the coordinates of the mouse are located in the draggable area, the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information.

4. The method according to claim 3, characterized in that Before the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, the method further includes: The first electronic device determines that the first electronic device displays the full screen window; the first electronic device determines that the first electronic device is not in an immersive mode; and the first electronic device determines that the first application supports dragging.

5. The method according to claim 3, characterized in that: After the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, the method includes: When the first electronic device monitors that a mouse is unplugged from the first electronic device and / or the second electronic device, the electronic device sets the first information to a third value; The first electronic device hides the draggable indicator according to the value of the first information.

6. The method according to claim 1 or 2, characterized in that: After the first electronic device displays the reduced full-screen window, the method further includes: When the first cursor drags the full-screen window to a third position, the first electronic device displays the wallpaper, displays a first motion effect window at the third position, and stops displaying the full-screen window, wherein the first motion effect window includes a first identifier of the first application, is located on an upper layer of the wallpaper, and has a size smaller than that of the full-screen window; In the process of dragging the first motion effect window by the first cursor, when the first cursor moves from the first screen edge of the first electronic device to the second screen edge of the second electronic device, the first electronic device displays the wallpaper, stops displaying the first motion effect window, and the second electronic device displays the second motion effect window dragged by the first cursor, and the second motion effect window includes the second identifier of the first application; During the process of dragging the second motion effect window by the first cursor, when it is detected that the user releases the first cursor at the fourth position through the input device, the second electronic device displays the projection window at the fourth position and stops displaying the second motion effect window. When part or all of the content of the full-screen window is not displayed in the projection window of the second electronic device, the first electronic device displays the wallpaper and sets the layer where the full-screen window is located to the lower layer of the wallpaper.

7. The method according to claim 6, characterized in that The method further comprises: When part or all of the content of the full-screen window is displayed in the projection window, the first electronic device stops displaying the wallpaper and displays the desktop.

8. A dragging method, characterized in that: Applied to an electronic device, the electronic device is connected to an input device, and the method includes: The electronic device displays a first cursor and a full-screen window of a first application, the first cursor is located on the full-screen window, and the full-screen window is in a non-draggable state; When the user controls the first cursor to move to the first position through the input device, the electronic device displays the first cursor, the full-screen window of the first application, and the draggable mark, where the draggable mark is used to indicate that the full-screen window is in a draggable state; When the user controls the first cursor to select and drag the draggable area of ​​the full-screen window through the input device, the electronic device displays the reduced full-screen window; When detecting that the user releases the first cursor through the input device, the electronic device displays the full-screen window; When the user controls the first cursor to move to the second position through the input device, the electronic device displays the first cursor, the full-screen window of the first application, and does not display the draggable mark; When the user controls the first cursor to select and drag the full-screen window at the second position through the input device, the electronic device displays the full-screen window; The first position and the draggable indicator are included in the draggable area, and the second position is not included in the draggable area.

9. The method according to claim 8, characterized in that The display position of the draggable marker does not overlap with the punch hole position in the screen of the electronic device.

10. The method according to claim 8 or 9, characterized in that: include: The first electronic device registers the input device monitor, registers the mouse event monitor, registers the foldable state monitor and registers the screen state rotation monitor; wherein the input device monitor is used to monitor the plug-in and unplug status of the input device, the mouse event monitor is used to monitor the coordinates of the mouse in the first electronic device, the foldable state monitor is used to monitor the folding and unfolding state of the foldable electronic device, and the screen state rotation monitor is used to monitor the horizontal and vertical screen states of the first electronic device; When the first electronic device monitors that a mouse is connected to the first electronic device and / or the second electronic device, the electronic device sets first information to a first value, where the first information is used to indicate whether the mouse is connected to the communication system; When the first electronic device is a straight-screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical screen state, the first electronic device sets the second information to a second value, where the second information is used to indicate whether the first electronic device is a straight-screen mobile phone, a foldable electronic device in a folded state, or a PAD in a vertical screen state; When the first electronic device detects that the coordinates of the mouse are located in the draggable area, the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information.

11. The method according to claim 10, characterized in that Before the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, the method further includes: The first electronic device determines that the first electronic device displays the full screen window; the first electronic device determines that the first electronic device is not in an immersive mode; and the first electronic device determines that the first application supports dragging.

12. The method according to claim 10, characterized in that After the first electronic device displays the draggable indicator according to the value of the first information and the value of the second information, the method includes: When the first electronic device monitors that a mouse is unplugged from the first electronic device and / or the second electronic device, the electronic device sets the first information to a third value; The first electronic device hides the draggable indicator according to the value of the first information.

13. The method according to claim 8 or 9, characterized in that: The method further comprises: When the user controls the first cursor to select and drag the draggable area of ​​the full-screen window through the input device, the electronic device displays the floating window of the first application.

14. The method according to claim 8 or 9, characterized in that: The method further comprises: When the user controls the first cursor to select and drag the draggable area of ​​the full-screen window through the input device, the electronic device displays the split-screen window of the first application.

15. A communication system, characterized in that: The communication system includes a first electronic device installed with a first operating system and a second electronic device installed with a second operating system, the first electronic device or the second electronic device is connected to an input device, the first operating system is different from the second operating system, the first electronic device executes the method executed by the first electronic device as described in any one of claims 1-14, or the second electronic device executes the method executed by the second electronic device as described in any one of claims 1-14.

16. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the method executed by the first electronic device as described in any one of claims 1-14, or executes the method executed by the second electronic device as described in any one of claims 1-14.

17. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method performed by the first electronic device as described in any one of claims 1 to 14 is implemented, or the method performed by the second electronic device as described in any one of claims 1 to 14 is implemented.

18. A computer program product, characterized in that It comprises a computer program, which, when being executed, enables a computer to execute the method executed by the first electronic device as claimed in any one of claims 1 to 14, or to execute the method executed by the second electronic device as claimed in any one of claims 1 to 14.