Cross-device object drag method and device
Abstract
A second terminal displays, on a display of the second terminal, an object dragged from a first terminal; the second terminal displays a second cursor on the object; the second terminal receives data of a motion operation that is input by a user by using an input device of the first terminal; and the second terminal displays, on the display of the second terminal based on the motion operation, an animation in which the object moves with the second cursor.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 80 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method implemented by a second terminal, wherein the method comprises: establishing a connection with a first terminal; receiving drag data from the first terminal; displaying, on a display device based on the drag data, a shadow of an object dragged from the first terminal; displaying a first cursor on the shadow of the object; receiving, from the first terminal, an operation parameter, wherein the operation parameter is received by the first terminal after a motion operation based on a user motion operation of the first terminal; simulating a drag event via a virtual input device of the second terminal according to the operation parameter; and displaying, on the display device based on the motion operation, a shadow animation in which the shadow of the object moves with the first cursor, wherein the drag data and the operation parameter are initially received after the first cursor is dragged out of an edge of a first terminal display of the first terminal, wherein the shadow of th
- Claim 2Depends on #1
The method of claim 1, wherein before displaying the object dragged from the first terminal, the method further comprises receiving shuttle state information from the first terminal, wherein the shuttle state information indicates that a shuttle starts.
- Claim 3Depends on #1
The method of claim 1, wherein the drag data and the motion operation are configured to dispatch the drag event for the object.
- Claim 4Depends on #3
The method of claim 3, further comprising generating a press operation, wherein the shadow animation is based on the motion operation, the press operation, and the drag data.
- Claim 5Depends on #4
The method of claim 4, wherein generating the press operation comprises: simulating a press event according to a second operation parameter of the press operation; and simulating a motion event according to the operation parameter from the first terminal, wherein the operation parameter is included in the motion event received by the first terminal after the user motion operation, and wherein displaying the shadow animation in which the object moves with the first cursor comprises displaying, on the display device in response to the press event and the motion event based on the drag data, the animation in which the object moves with the first cursor.
- Claim 6Depends on #5
The method of claim 5, wherein the operation parameter comprises at least one of a mouse button flag bit, coordinate information, scroll wheel information, or button location information.
- Claim 7Depends on #3
The method of claim 3, further comprising creating a view control whose transparency is greater than a threshold, and wherein the view control is configured to dispatch the drag event.
- Claim 8Depends on #1
The method of claim 1, further comprising: creating the virtual input device after establishing the connection with the first terminal; or receiving a notification message from the first terminal, and creating the virtual input device in response to the notification message, wherein the virtual input device simulates an input event according to the operation parameter.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This is a national stage of International Patent Application No. PCT/CN2021/108579 filed Jul. 27, 2021, which claims priority to Chinese Patent Application No. 202010747173.5 filed Jul. 29, 2020. Both of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the field of electronic devices, and in particular, to a cross-device object drag method and device. BACKGROUND With development of electronic technologies and the mobile Internet, a user may simultaneously have more terminals such as a mobile phone, a tablet computer, a personal computer (personal computer, PC), and a smart home device (for example, a television). Generally, each terminal is used independently. In a scenario in which a plurality of terminals need to be collaboratively used, for example, a scenario of collaborative office, the user connects the plurality of terminals for use. For example, a user with a PC and a mobile phone can connect the PC and the mobile phone for collaborative use in a wireless or wired manner, to implement collaborative office between the PC and the mobile phone. As shown in FIG. 1 , in a scenario of collaborative office between a PC and a mobile phone, multi-screen collaboration implements projection of an interface (for example, a desktop 101 of the mobile phone shown in FIG. 1 ) of the mobile phone to a display of the PC for display in a screen mirroring projection manner, to facilitate collaborative office for a user. In a projection state, currently, multi-screen collaboration may further implement a bidirectional content drag function between a PC and a mobile phone by using an input device (or referred to as a peripheral) such as a mouse or a touchscreen. In other words, a user is allowed to transfer a text or a file between a PC and a mobile phone in a drag manner by using an input device (like a mouse or a touchscreen) during projection. However, i
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (80)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Han Yumin, Classification of Interaction Modes and Its Significance, CD Technology, Editorial Department Mailbox, Issue 02, 1997, with the English Abstract, 5 pages.
- Wang Changhong,
- “
- Try the remote projection function,
- ”
- Computer Knowledge and Technology (Experience Skills), Issue 11, 2018, with an English translation, 6 pages.
- Marquardt Nicolai et al:
- “
- Gradual engagement facilitating information exchange between digital devices as a function of proximity,
- ”