CN110489044B - Object sharing method and terminal - Google Patents

Object sharing method and terminal Download PDF

Info

Publication number
CN110489044B
CN110489044B CN201910586355.6A CN201910586355A CN110489044B CN 110489044 B CN110489044 B CN 110489044B CN 201910586355 A CN201910586355 A CN 201910586355A CN 110489044 B CN110489044 B CN 110489044B
Authority
CN
China
Prior art keywords
terminal
input
screen
target object
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910586355.6A
Other languages
Chinese (zh)
Other versions
CN110489044A (en
Inventor
刘先亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910586355.6A priority Critical patent/CN110489044B/en
Publication of CN110489044A publication Critical patent/CN110489044A/en
Application granted granted Critical
Publication of CN110489044B publication Critical patent/CN110489044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an object sharing method and a terminal, relates to the technical field of communication, and aims to solve the problems that an operation process of an existing terminal is complicated and time-consuming when an object is shared. The method is applied to a first terminal and comprises the following steps: receiving a first input of a first terminal user in a state that a first side of a first terminal is magnetically connected with a second side of a second terminal, wherein the first input is used for adjusting the relative positions of the first side and the second side; and responding to the first input, and sharing the target object in the first screen of the first terminal to the second terminal for displaying based on the adjusted relative positions of the first side and the second side. The method can be applied to the scene of the terminal sharing object.

Description

Object sharing method and terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an object sharing method and a terminal.
Background
With the continuous development of terminal technology, the application of the terminal is more and more extensive. The user can share various objects (such as pictures, texts and the like) through the terminal.
Taking sharing pictures as an example, a user may store a picture displayed by a terminal locally, and then share the picture with other users through a third-party application program. When the picture is shared to other users through the third-party application program, the user can trigger the terminal to operate the third-party application program, then trigger the sharing function to be started, and then select to share the picture to other users.
However, in the process of object sharing, the user needs to perform multiple selection operations on the terminal, which may lead to a complicated and time-consuming operation process of object sharing.
Disclosure of Invention
The embodiment of the invention provides an object sharing method and a terminal, and aims to solve the problems that an operation process of an existing terminal is complicated and time-consuming when an object is shared.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an object sharing method, which is applied to a first terminal, and the method includes: receiving a first input of a first terminal user in a state that a first side of a first terminal is magnetically connected with a second side of a second terminal, wherein the first input is used for adjusting the relative positions of the first side and the second side; and responding to the first input, and sharing the target object in the first screen of the first terminal to the second terminal for displaying based on the adjusted relative positions of the first side and the second side.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal is a first terminal, and the terminal includes a receiving module and a processing module. The receiving module is used for receiving a first input of a first terminal user in a magnetic connection state of a first side of a first terminal and a second side of a second terminal, wherein the first input is used for adjusting the relative position of the first side and the second side. The processing module is used for responding to the first input received by the receiving module, and sharing the target object in the first screen of the first terminal to the second terminal for displaying based on the adjusted relative position of the first side edge and the second side edge.
In a third aspect, an embodiment of the present invention provides a terminal, where the terminal includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the object sharing method in the first aspect are implemented.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the object sharing method in the first aspect are implemented.
In the embodiment of the present invention, in a state where a first side of the first terminal and a second side of the second terminal are magnetically connected, the first terminal may receive a first input of a first terminal user, where the first input is used to adjust a relative position of the first side and the second side; and responding to the first input, and sharing the target object in the first screen of the first terminal to the second terminal for displaying based on the adjusted relative positions of the first side and the second side. Through the scheme, the first terminal can respond to the input of the relative position of the two terminals adjusted by the user, and the object displayed by the first terminal is sent to the second terminal to be displayed based on the magnetic connection length adjusted by the two terminals, so that the object sharing is realized, and processes of clicking a sharing icon by the user, selecting the sharing object and the like are not needed. Therefore, the method and the device for sharing the object can improve the convenience and flexibility of the terminal for sharing the object.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a terminal applied to an object sharing method according to an embodiment of the present invention in a magnetic connection state;
fig. 3 is a schematic diagram of an object sharing method according to an embodiment of the present invention;
fig. 4(a) is one of schematic interface diagrams of an application of an object sharing method according to an embodiment of the present invention;
fig. 4(B) is a second schematic interface diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 4(C) is a third schematic interface diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 4(D) is a fourth schematic interface diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 5(a) is a fifth schematic interface diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 5(B) is a sixth schematic interface diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 6 is a seventh schematic interface diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 7(a) is an eighth schematic interface diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 7(B) is a ninth schematic interface diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 8 is a second schematic diagram of an object sharing method according to an embodiment of the present invention;
fig. 9 is a tenth of an interface schematic diagram of an application of the object sharing method according to the embodiment of the present invention;
fig. 10 is a third schematic diagram illustrating an object sharing method according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 12 is a second schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 13 is a third schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 14 is a hardware schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, or the like; plural elements means two or more elements, and the like.
The embodiment of the invention provides an object sharing method and a terminal, wherein in a magnetic connection state of a first side of a first terminal and a second side of a second terminal, the first terminal can receive a first input of a first terminal user, and the first input is used for adjusting the relative positions of the first side and the second side; and responding to the first input, and sharing the target object in the first screen of the first terminal to the second terminal for displaying based on the adjusted relative positions of the first side and the second side. Through the scheme, the first terminal can respond to the input of the relative position of the two terminals adjusted by the user, and the object displayed by the first terminal is sent to the second terminal to be displayed based on the magnetic connection length adjusted by the two terminals, so that the object sharing is realized, and processes of clicking a sharing icon by the user, selecting the sharing object and the like are not needed. Therefore, the method and the device for sharing the object can improve the convenience and flexibility of the terminal for sharing the object.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the object sharing method provided by the embodiment of the present invention, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the object sharing method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the object sharing method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal can implement the object sharing method provided by the embodiment of the invention by running the software program in the android operating system.
The terminal in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The execution main body of the object sharing method provided by the embodiment of the present invention may be the terminal, or may also be a functional module and/or a functional entity capable of implementing the object sharing method in the terminal, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited.
In the object sharing method provided by the embodiment of the invention, the mobile phone is composed of two magnetic attraction screens, two pieces of equipment respectively comprise two cubic magnets, and the cubic magnets are constructed to enable the shafts to rotate through attraction of adjacent magnets. The shaft is connected to the memory of the at least one processor. The memory stores instructions that vary as the shaft rotates according to the angle and orientation of the shaft rotation, the stored instructions enabling the processor to determine the magnetic attraction force through the cube magnet to handle different logic.
The magnetic attraction screen has the characteristic that two screens are randomly linked and removed, and can slide through the screen frame in a magnetic attraction mode when the two screens are stacked together. The camera emits infrared rays, and then the ccd sensor receives the infrared rays, so that the problem of segmentation of the mobile phone and a background virtual object is solved, and the camera obtains a black-and-white monochromatic background and an image of the mobile phone. Then, the movement of the mobile phone is detected, and the images of two continuous frames obtained by the camera are subtracted by adopting an image difference technology to obtain a moving part, so that the moving distance of the mobile phone can be detected.
With the development of communication and electronic technologies, new trends and/or user demands have variously changed, and with these changes, displays have been developed in various forms and various technological developments have been required to expand displays or enhance display use.
A magnetic adsorption type mobile phone is an electronic device for attaching or detaching two displays by magnetic force and a method for operating a screen thereof. This scheme provides an electronic device that is separated into two displays by magnetic force and has various angle coupling forms without an external hinge structure. The electronic device may control one or both of the two displays to simultaneously output screens according to the coupling form of the two display devices.
The implementation scheme is as follows:
the two devices each have at least one more cylindrical magnet configured to rotate the shaft by attraction of adjacent magnets. The shaft is connected to the memory of the at least one processor. The memory stores instructions that vary as the shaft rotates according to the angle and orientation of the shaft rotation, the stored instructions enabling the processor to determine the magnetic attraction force through the cylindrical magnet to process different logic.
When two mobile phones are attached, the heights are different, how is the height difference value obtained?
The first scheme is as follows: the two devices each have at least one cylindrical magnet configured to cause a force change on the shaft by attraction of adjacent magnets. The memory stores instructions that cause the processor to determine a change in position between objects via magnetic attraction of different cylindrical magnets when the change in magnetic force causes a consequent change in the magnetic force applied to the shaft, based on the changed angle and orientation of the shaft.
Scheme II: the camera actively emits infrared rays, then the ccd sensor receives the infrared rays, the problem of segmentation of the mobile phone and a background virtual object is solved, and the camera obtains a black and white monochromatic background and an image of the mobile phone. And detecting the motion of the mobile phone by adopting an image difference technology, wherein the difference is obtained by subtracting images of two continuous frames obtained by the camera to obtain a motion part, so that the difference can automatically intercept the motion part as long as the mobile phone is in motion.
The embodiment of the invention provides an object sharing method, wherein a mobile phone screen is a magnetic screen, a mobile phone is composed of two magnetic screens, two pieces of equipment are respectively provided with two cubic magnets, and the cubic magnets are constructed to enable shafts to rotate through attraction of adjacent magnets. The shaft is connected to the memory of the at least one processor. The memory stores instructions that vary as the shaft rotates according to the angle and orientation of the shaft rotation, the stored instructions enabling the processor to determine the magnetic attraction force through the cube magnet to handle different logic.
The magnetic attraction screen has the characteristic that the two screens are randomly linked and removed, and can be magnetically attracted and slide through the screen frame when the two screens are spliced together. The magnetic attraction screen and the magnetic attraction screen have the characteristic of random link and removal, the two screens can be spliced at different distances at the edge of the screens and are magnetically attracted, and the structure is shown in fig. 2.
The following takes a terminal as an example, and with reference to each drawing, an object sharing method provided by the embodiment of the present invention is exemplarily described.
As shown in fig. 3, an embodiment of the present invention provides an object sharing method, where the object sharing method is applied to a first terminal, and the object sharing method may include the following steps 200 to 201.
Step 200, the first terminal receives a first input of a first terminal user in a state that the first side of the first terminal and the second side of the second terminal are magnetically connected.
Wherein the first input can be used to adjust the relative position of the first side and the second side. For convenience of distinction, the display screen of the first terminal is referred to as a first screen, and the display screen of the second terminal is referred to as a second screen.
In the embodiment of the invention, if a user needs to quickly share a specific object displayed by the first terminal to the second terminal, the user can trigger the first terminal to be magnetically connected with the second terminal through the first input, and trigger the first terminal to send part of or all of the displayed content to the second terminal, so that the object sharing is performed between the first terminal and the second terminal.
In an embodiment of the present invention, the first terminal and the second terminal are both devices provided with magnetic parts, and such devices are hereinafter referred to as magnetic attraction type terminals (hereinafter referred to as magnetic attraction type terminals), and the magnetic attraction type terminals can be magnetically connected to each other through the respective magnetic parts without an external hinge structure. And, magnetism is inhaled formula terminal and can have the magnetism and connect and the characteristic of removing to two magnetism are inhaled formula terminal and can be spliced side by side through magnetic attraction, and two magnetism are inhaled formula terminal and can be followed the side or slide with the edge relative magnetism when splicing together side by side, and two magnetism are inhaled formula terminal and can be followed the side or carry out the concatenation of different positions (splice crisscross promptly).
Optionally, in the embodiment of the present invention, the magnetic component may be a cylindrical magnet, a sheet-shaped bar magnet, or any other magnet that meets the actual use requirement, and the shape of the magnetic component may be specifically determined according to the actual use requirement, which is not limited in the embodiment of the present invention.
Alternatively, in the embodiment of the present invention, the magnetic member may be disposed at a side (or edge) of the first terminal. For example, the magnetic component may be disposed at one or both of the longer sides of the first terminal; the magnetic means may also be provided at one or both of the shorter sides of the first terminal, or the magnetic means may be provided at the longer side and at the shorter side of the first terminal. The position of the magnetic component disposed in the first terminal may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
Optionally, in this embodiment of the present invention, the first terminal may be provided with one or more magnetic components (for example, the magnetic component may be shown by a dashed line in fig. 2), and the number of the magnetic components may be specifically determined according to actual usage requirements, which is not limited in this embodiment of the present invention.
It should be noted that, the number, shape, position, etc. of the magnetic components are described above for the first terminal as an example, and it is understood that the number, shape, position, etc. of the magnetic components disposed in the second terminal may be the same as or similar to the number, shape, position, etc. of the magnetic components disposed in the first terminal, so as to facilitate the magnetic connection between the magnetic-attraction terminals, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited thereto.
The first terminal 31 and the second terminal 32 may be magnetically connected by being brought close to or in contact with a magnet. The first terminal 31 and the second terminal 32 are spliced side by side through magnetic attraction, the first terminal 31 and the second terminal 32 can slide along the side or the edge in a relative magnetic attraction manner when being spliced together side by side, and the first terminal 31 and the second terminal 32 can be spliced at different positions along the side or the edge.
In an embodiment of the present invention, the first input of the user may be an input that brings the respective magnetic components of the first terminal and the second terminal into close proximity or contact, so that the first terminal and the second terminal are magnetically connected.
Optionally, in this embodiment of the present invention, the first input of the user may trigger the first terminal and the second terminal to be spliced together side by side (in this case, the respective screens of the first terminal and the second terminal are located on the same plane, and the side edges of the first terminal and the second terminal are all overlapped), may also trigger the first terminal and the second terminal to be spliced together in a staggered manner (in this case, the respective screens of the first terminal and the second terminal are located on the same plane, and the side edges of the first terminal and the second terminal are partially overlapped), and may also trigger the first terminal and the second terminal to be spliced according to any other splicing manner meeting the actual use requirement, which may specifically be determined according to the actual use requirement, which is not limited in this embodiment of the present invention.
For example, in the case that the magnetic members are disposed at two longer sides of the first terminal, the first input of the user may be an input that the respective longer sides (e.g., cylindrical magnets in fig. 2) of the first terminal and the second terminal are close to or in contact with each other.
It should be noted that when the magnetic components of the first terminal and the second terminal are close to or in contact with each other, the memory in the first terminal connected to the magnetic components may store instructions for indicating that the magnetic components are close to or in contact with each other and the degree of contact, and the processor of the first terminal may process corresponding logic (e.g., generate a first message as described below) according to the instructions of the memory.
Step 201, the first terminal responds to the first input, and shares a target object in a first screen of the first terminal to the second terminal for displaying based on the adjusted relative positions of the first side and the second side.
In this embodiment of the present invention, the first message may include a target object, and the target object may be content in target content displayed on the first screen.
Optionally, in an embodiment of the present invention, the target object may include any one of the following items: target content, words in the target content, pictures in the target content, and links in the target content. Accordingly, the first message may be used to instruct the second terminal to display the target content, or the text in the target content, or the picture in the target content, or the link in the target content on the second screen.
For example, taking a screen (i.e., a first screen) of a first terminal displaying a certain webpage (i.e., target content is webpage content), the first terminal may share all content in the webpage, share pictures in the webpage, share characters in the webpage, share links in the webpage, and the like to a second terminal.
It should be noted that the embodiment of the present invention is not limited to the object sharing scenario, and may also be applied to other object sharing scenarios, for example, the object sharing method may be used to share pictures of an album, share multiple pieces of message content, and the like. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
So, two magnetism are inhaled formula terminals and can be connected through magnetism, carry out picture sharing, characters sharing, link sharing or whole display object sharing between magnetism formula terminal to can satisfy the demand that the user shared various contents between to different terminals fast.
It is understood that the above target objects are all exemplary lists, i.e., the embodiments of the present invention include, but are not limited to, the above lists. In practical implementation, the target object may further include any other possible content, which may be determined according to practical usage requirements, and the embodiment of the present invention is not limited.
In the embodiment of the present invention, after the user magnetically connects the first terminal and the second terminal through the first input, the first terminal may send a first message to the second terminal in response to the first input, so as to share the content with the second terminal. Accordingly, the second terminal may display the target object on the second screen after receiving the first message, for example, display the target content on the second screen, or text in the target content, or pictures in the target content, or links in the target content.
According to the object sharing method provided by the embodiment of the invention, under the state that the first side of the first terminal is magnetically connected with the second side of the second terminal, the first terminal can receive the first input of a first terminal user, wherein the first input is used for adjusting the relative positions of the first side and the second side; and responding to the first input, and sharing the target object in the first screen of the first terminal to the second terminal for displaying based on the adjusted relative positions of the first side and the second side. Through the scheme, the first terminal can respond to the input of the relative position of the two terminals adjusted by the user, and the object displayed by the first terminal is sent to the second terminal to be displayed based on the magnetic connection length adjusted by the two terminals, so that the object sharing is realized, and processes of clicking a sharing icon by the user, selecting the sharing object and the like are not needed. Therefore, the method and the device for sharing the object can improve the convenience and flexibility of the terminal for sharing the object.
In the embodiment of the present invention, the first terminal may determine the target object in different manners, and a specific implementation manner of determining the target object by the first terminal in the embodiment of the present invention is exemplarily described below by taking the first implementation manner and the second implementation manner as an example.
First implementation
As described above, the two magnetic-type terminals can be spliced side by magnetic attraction, the two magnetic-type terminals can slide along the side or the edge in a relative magnetic attraction manner when spliced together side by side, and the two magnetic-type terminals can be spliced at different positions (i.e., spliced in a staggered manner) along the side or the edge.
Illustratively, step 201 in fig. 3 may be specifically implemented by steps 201a to 201c described below.
Step 201a, the first terminal determines a target magnetic connection length based on the adjusted final relative positions of the first side and the second side.
Step 201b, the first terminal determines the type of the target object based on the target magnetic connection length.
Optionally, in the embodiment of the present invention, the target object type may be a text type, a picture type, and the like, and may be determined specifically according to an actual use requirement, which is not limited in the embodiment of the present invention.
Step 201c, the first terminal shares the target object which is in accordance with the target object type in the first screen of the first terminal to the second terminal for displaying.
Optionally, in the embodiment of the present invention, the step 201b may be specifically implemented by the following step 201b 1.
In step 201b1, in the case that the target magnetic connection length falls within the preset length range, the first terminal determines the object type corresponding to the preset length range as the target object type.
In the embodiment of the invention, after a user magnetically connects a first terminal and a second terminal through a first input, the first terminal can determine the side overlapping degree of the spliced first terminal and second terminal, that is, determine the target magnetic connection length of the first terminal and the second terminal (for example, the target magnetic connection length is obtained through a magnetic component), and then the first terminal determines the type of a target object according to the target magnetic connection length, so that the target object conforming to the type of the target object in a first screen of the first terminal can be shared to the second terminal for display.
Through the scheme, the first terminal can determine which contents are the objects to be shared according to the splicing mode between the first terminal and the second terminal, so that the convenience and the flexibility of the first terminal in content sharing can be improved.
Optionally, in this embodiment of the present invention, the first terminal may determine the target object according to a comparison result between the target magnetic connection length and a preset value range.
For example, the step 201b1 may be specifically realized by any one of the following (1), (2), (3) and (4).
(1) And under the condition that the target magnetic connection length belongs to a first preset length range, the first terminal determines the target content as a target object.
(2) And under the condition that the target magnetic connection length belongs to a second preset length range, the first terminal determines the characters in the target content as the target object.
(3) And under the condition that the target magnetic connection length belongs to a third preset length range, the first terminal determines the picture in the target content as the target object.
(4) And in the case that the target magnetic connection length belongs to a fourth preset length range, the first terminal determines the link in the target content as the target object.
In the embodiment of the present invention, the first terminal may determine that the target magnetic connection length falls within any one of the preset length ranges, and then determine the target object according to any one of the above (1), (2), (3), and (4).
It should be noted that the target magnetic connection length may be represented by a real length number, or may be represented by a ratio (for example, 1/4, 1/2, 3/4, or 1) of the magnetic connection length to the total length of the terminal side, which may be determined according to the real usage requirement, and the embodiment of the present invention is not limited thereto.
Illustratively, as shown in fig. 4(a), the first terminal 31 currently displays a web page (i.e., the target content mentioned above), which includes links, pictures and texts. After the first terminal 31 and the second terminal 32 are magnetically connected, the first terminal 31 may calculate a target magnetic connection length (e.g., 1/4), and in case that the target magnetic connection length falls within a fourth preset length range (e.g., (0, 1/4)), the first terminal may determine a part of or all of the links in the web page as a target object.
As shown in FIG. 4B, in the case that the first terminal 31 determines that the target magnetic connection length (e.g. 1/2) falls within the third predetermined length range (e.g. (1/4, 1/2)), the first terminal may determine some or all of the text in the target webpage as the target object, and accordingly, the second terminal 32 may display the target object, wherein, after the first terminal determines the target object, the first terminal may parse the webpage content currently displayed on the first screen, extract the text in the webpage content (i.e. the target object), package the text into a data packet, and transmit the data packet to the second terminal, and after the second terminal parses the data packet to obtain the target object, the second terminal displays the target object on the second screen.
As shown in fig. 4(C), in case that the first terminal 31 judges that the target magnetic connection length (e.g., 3/4) belongs to the second preset length range (e.g., (1/2, 3/4)), the first terminal may determine a part of or the whole picture in the target web page as the target object.
As shown in fig. 4(D), in case that the first terminal 31 judges that the target magnetic connection length (e.g., 1) belongs to the first preset length range (e.g., (3/4, 1)), the first terminal may determine the entire contents of the target web page as the target object.
It is understood that the values of the first preset length range, the second preset length range, the third preset length range and the fourth preset length range are all exemplified lists, that is, the embodiments of the present invention include, but are not limited to, the numerical value ranges listed above. In practical implementation, values of the first preset length range, the second preset length range, the third preset length range and the fourth preset length range may also be any other possible values, and may specifically be determined according to practical use requirements, and the embodiment of the present invention is not limited.
According to the embodiment of the invention, the two first terminals are spliced and combined in a magnetic attraction manner, the object to be shared is automatically determined through the splicing distance of the two screens, and sharing is rapidly completed at the same time, so that processes of clicking a sharing icon and selecting the sharing object when the user shares the object are not needed, convenience and interestingness of the user in content sharing can be increased, and the operation experience of the user is improved.
Through the scheme, the first terminal can determine which contents are objects to be shared according to the splicing mode between the first terminal and the second terminal, so that a user can splice the first terminal and the second terminal together according to different splicing modes according to requirements to trigger sharing of different contents, and convenience and flexibility of the first terminal in content sharing can be improved.
Second implementation
Optionally, in this embodiment of the present invention, the first terminal may determine the target object not only according to the target magnetic connection length (see the first implementation manner described above), but also according to a selection input of the user on the target content (see the second implementation manner).
Illustratively, step 201 in fig. 3 may be specifically implemented by step 201d and step 201e described below.
Step 201d, the first terminal responds to the first input, and determines a target area in the first screen based on the adjusted relative positions of the first side and the second side.
And step 201e, the first terminal shares the target object in the target area to the second terminal for displaying.
In the embodiment of the present invention, the first terminal may determine the target object according to various inputs of the user, and a specific implementation manner of determining the target object according to a third input of the user in the embodiment of the present invention is exemplarily described below by taking a first manner and a second manner as examples.
In a first mode
Optionally, in this embodiment of the present invention, the first input may include a first sub-input and a second sub-input. Wherein the first sub-input may be used to adjust the first and second sides to a first relative position and display a first start logo at a first location on the first screen, the first location being determined by the first relative position (e.g., flush). The second sub-input is used to adjust the first side and the second side to a second relative position and display the first end indicator at a second position of the first screen, the second position being determined by the second relative position (e.g., flush).
In this case, the step 201d described above can be specifically realized by the step 201d1 described below.
Step 201d1, the first terminal responding to the first and second sub-inputs, determining the area between the first start marker and the first end marker as the target area based on the adjusted first and second relative positions of the first and second sides.
The first start flag may be used to indicate a start position of the target object, and the first end flag may be used to indicate an end position of the target object. The target area is an area between the first start mark and the first end mark.
Referring to fig. 5(a) and 5(B), a specific implementation of the above steps is exemplarily described.
As shown in fig. 5(a), in a state where the first terminal 31 and the second terminal 32 are magnetically connected, the first terminal 31 displays a first start mark 33 (e.g., a blinking dotted line for identifying a start position of an object to be shared) on the first screen. If the user relatively moves the first terminal and the second terminal (for example, moves the second terminal 32 in a direction indicated by an arrow in fig. 5 (a)), the first terminal 31 may display a first end mark 34 (a blinking dotted line is displayed for identifying an end position of the object to be shared) on the first screen as shown in fig. 5 (B). The first terminal may determine the content in the target area as the target object, wherein the target area is an area between the first start identifier 33 and the first end identifier 34. Accordingly, the second terminal 32 may display the target object in the target area on the second screen.
According to the scheme, the object to be shared can be selected according to the input of the user, so that the convenience and flexibility of sharing the content by the first terminal can be improved.
Optionally, after the step 201d and before the step 201e, the object sharing method provided in the embodiment of the present invention may further include the following step 201f and step 201 g. Accordingly, the step 201e can be specifically realized by the step 201e1 described below.
Step 201f, the first terminal receives a second input of the first terminal user.
The second input may be a sliding input on the target area.
And step 201g, the first terminal responds to the second input and updates the target object displayed in the target area.
Step 201e1, the first terminal shares the updated target object in the target area to the second terminal for displaying.
And displaying the updated target object in the target area in a second screen of the second terminal.
In the embodiment of the present invention, in a case where the first screen displays the first start identifier and the first end identifier (i.e. the determined target area), the user may slide up and down on the first screen for inputting, at this time, the respective positions of the first start identifier and the first end identifier do not change, the object in the selected target area changes as the finger slides, and the content displayed on the second screen may also change as the updated target object in the target area changes.
A specific implementation of the above steps is exemplarily described below with reference to fig. 6 in conjunction with fig. 5 (B).
As shown in fig. 6, if the user makes a slide input on the target area (for example, a slide input in a direction indicated by an arrow in fig. 6), the first terminal 31 may update the content in the display target area and determine the updated content in the target area as the target object. Accordingly, the second terminal 32 may display the target object on the second screen.
According to the scheme, the objects to be shared can be selectively selected according to the input of the user, and the objects in partial areas can be conveniently selected, so that the convenience and the flexibility of the terminal for sharing the content can be improved.
Mode two
Optionally, in the second mode, the first terminal may select a large number of objects to be shared in response to a sliding input of the user on the first screen.
Illustratively, step 201 in fig. 3 may be specifically implemented by step 201h, step 201i, step 201g, step 201k and step 201l described below.
Step 201h, the first terminal displays a first starting identifier at a first position of the first screen based on the adjusted relative positions of the first side and the second side;
step 201i, the first terminal receives a third input of the first terminal user on the first start identifier.
Illustratively, the third input may be a long press input by the first end user to the first start identifier (e.g., start marker line).
And step 201j, the first terminal responds to the third input and displays target prompt information, and the target prompt information is used for prompting a user to slide on the first screen to input and select the object to be shared.
Step 201k, the first terminal receives a fourth input.
Wherein the fourth input may be a sliding input of the user on the first screen.
And step 201l, the first terminal responds to the fourth input, updates the object displayed on the first screen, and shares the target object updated and displayed in the first screen to the second terminal for displaying.
The target object is content from first sub-content to second sub-content, the first sub-content is content displayed at the first start identifier, and the second sub-content is content displayed in the last line of the first screen when the fourth input is finished.
Accordingly, the target object displayed in the first screen can be displayed in the second screen of the second terminal in an updated manner.
Specifically, if the user presses the first start identifier for a long time, the first terminal starts the multi-object sharing mode, and at this time, if the user slides on the first screen for input, the first terminal controls the first start identifier to be fixed and does not move, and updates the content displayed on the first screen (the updated content may be sequentially displayed on the second screen). For example, when sharing content, assuming that the first start mark is on the 5 th line, when the finger of the user slides upwards on the first screen to the 20 th line, all content from the 5 th line to the 20 th line may be displayed on the second screen, so that object sharing beyond the screen range may be performed, and convenience and flexibility of the first terminal in sharing content may be improved.
Specific implementation of the above steps is exemplarily described below with reference to fig. 7(a) and 7 (B).
As shown in fig. 7(a), after the first terminal 32 displays the first start identifier 35 on the first screen, if the user presses the first start identifier 35 for a long time, the first terminal starts the multi-object sharing mode. Further, if the user performs a slide input on the first screen (for example, a slide input in a direction indicated by an arrow in fig. 7 (a)), the first terminal 31 may update the object displayed on the first screen and share the object displayed in the first screen with the second terminal 32 for display, as shown in fig. 7 (B). Accordingly, the second terminal 32 may update the target object displayed in the second screen update display first screen.
According to the scheme, the objects to be shared can be selectively selected according to the input of the user, and the objects in partial areas can be conveniently selected, so that the convenience and the flexibility of the terminal for sharing the content can be improved.
In the embodiment of the invention, the two terminals are spliced and combined in a magnetic attraction manner, so that a user can select a content range to be shared by triggering the two terminals to relatively move along the contact edge, or share the content of the next page or the previous page by sliding the content displayed on the terminals with fingers, and can share all the content slid by the fingers without processes of clicking a sharing icon, selecting a sharing object and the like by the user.
Optionally, with reference to fig. 3, as shown in fig. 8, after the step 201, the object sharing method provided in the embodiment of the present invention may further include the following step 202 and step 203.
Step 202, the first terminal receives a fifth input from the user.
The fifth input may be configured to trigger the first terminal and the second terminal to move relatively in a first relative movement direction, where the first relative movement direction is opposite to a second relative movement direction triggered by the first input.
It should be noted that the relative movement may be a relative movement between the first terminal and the second terminal, or a relative rotation between the first terminal and the second terminal, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited.
For example, as shown in FIG. 9, the fifth input may be an input that rotates the first terminal in a clockwise direction, or the fifth input may be an input that rotates the second terminal in a counterclockwise direction.
Step 203, the first terminal responds to the fifth input and sends a first message to the second terminal, wherein the first message is used for indicating the second terminal to cancel the display of the target object.
In the embodiment of the invention, in the process of object sharing, if the user needs to cancel the sharing of the selected content, the user can rotate the first terminal clockwise or rotate the second terminal anticlockwise, and separate the first terminal from the second terminal after the rotation is finished, and the first terminal can respond to the input of the user and cancel the sharing of the object to be shared. Therefore, convenience and interestingness of the user in webpage content sharing can be improved.
Optionally, referring to fig. 3, as shown in fig. 10, after the step 201, the object sharing method provided in the embodiment of the present invention may further include the following steps 204 to 206.
And step 204, the first terminal receives a sixth input of the user to the target object in the first screen.
Wherein the sixth input is used to trigger selection of some or all of the target objects.
And step 205, the first terminal receives a seventh input of the user, wherein the seventh input is used for triggering the release of the magnetic connection state of the first terminal and the second terminal.
Illustratively, the seventh input may be an input to move the first terminal away from the second terminal.
Specifically, the user may check whether the content (i.e., the target object) displayed on the second screen is the object to be shared, and if the user determines that the target object is the object to be shared, the user may directly un-splice the first terminal and the second terminal to trigger the first terminal to indicate the second terminal to store the target object, thereby completing object sharing.
And step 206, the first terminal responds to the sixth input and the seventh input and sends a second message to the second terminal, wherein the second message is used for instructing the second terminal to store and display the selected target object in the first screen.
In the embodiment of the present invention, after the user magnetically connects the first terminal and the second terminal through the first input, the second terminal may buffer the target object in the second message after receiving the second message, and display the target object on a screen (i.e., a second screen) of the second terminal. If the object sharing is to be completed, the user may trigger the first terminal to instruct the second terminal to store the target object.
Exemplarily, taking a target object as web content as an example, when a first screen displays the web content, a user may trigger a first terminal and a second terminal to be spliced together side by side through magnetic attraction (i.e., the first input), the first terminal may instruct the second terminal to display an object to be shared on a second screen, and after the user determines the object to be shared (i.e., the second input), the first terminal may instruct the second terminal to store the object to be shared, so that the object is completed.
In the embodiment of the invention, after the relative position between the two terminals is determined, the objects to be shared in the first screen can be marked and selected, and a user can select to send all the objects or only send part of the objects, so that the flexibility of sharing the objects by the terminals can be improved.
As shown in fig. 11, an embodiment of the present invention provides a terminal 700, where the terminal is a first terminal, and the terminal 700 may include a receiving module 701 and a processing module 702. The receiving module 701 is configured to receive a first input of a first terminal user when a first side of the first terminal and a second side of the second terminal are in a magnetic connection state, where the first input is used to adjust a relative position of the first side and the second side. The processing module 702 is configured to, in response to the first input received by the receiving module 701, share a target object in a first screen of the first terminal with the second terminal for display based on the adjusted relative positions of the first side and the second side.
Optionally, in this embodiment of the present invention, the processing module 702 is specifically configured to determine the target magnetic connection length based on the adjusted final relative positions of the first side and the second side; and determining a target object type based on the target magnetic connection length; and sharing the target object which is in accordance with the target object type in the first screen of the first terminal to the second terminal for displaying.
Optionally, in this embodiment of the present invention, the processing module 702 is specifically configured to, when the target magnetic connection length belongs to a preset length range, determine an object type corresponding to the preset length range as the target object type.
Optionally, in this embodiment of the present invention, the processing module 702 is specifically configured to determine a target area in the first screen based on the adjusted relative positions of the first side and the second side; and sharing the target object in the target area to a second terminal for displaying.
Optionally, in this embodiment of the present invention, the receiving module 701 is specifically configured to receive a first sub-input and a second sub-input of a first end user, where the first sub-input is used to adjust the first side and the second side to a first relative position and display a first start identifier at a first position of a first screen, where the first position is determined by the first relative position; the second sub-input is used for adjusting the first side edge and the second side edge to a second relative position and displaying a first end mark at a second position of the first screen, and the second position is determined by the second relative position. The processing module 702 is specifically configured to determine, in response to the first sub-input and the second sub-input, an area between the first start identifier and the first end identifier as a target area based on the adjusted first relative position and the second relative position of the first side edge and the second side edge.
Optionally, with reference to fig. 11, as shown in fig. 12, the terminal provided in the embodiment of the present invention may further include a display module 703. The receiving module 701 is further configured to receive a second input of the user after the processing module 702 determines the target area in the first screen based on the adjusted relative position of the first side and the second side, and before the target object in the target area is shared to the second terminal for displaying, where the second input is a sliding input on the target area. The display module 703 is configured to update the target object displayed in the target area in response to the second input received by the receiving module 701. The processing module 702 is specifically configured to share the updated target object in the target area to the second terminal for displaying. And displaying the updated target object in the target area in a second screen of the second terminal.
Optionally, in this embodiment of the present invention, the processing module 702 is specifically configured to display a first start identifier at a first position of the first screen based on the adjusted relative positions of the first side and the second side. The receiving module 701 is further configured to receive a third input from the user on the first start identifier. The display module 703 is further configured to display a target prompt message in response to the third input received by the receiving module 701, where the target prompt message is used to prompt a user to slide on the first screen to select an object to be shared. The receiving module 701 is further configured to receive a fourth input, where the fourth input is a sliding input on the first screen. The display module 703 is further configured to update an object displayed in the first screen in response to the fourth input received by the receiving module 701, and share the target object updated and displayed in the first screen to the second terminal for displaying, where the target object is content from first sub-content to second sub-content, the first sub-content is content displayed at the first start identifier, and the second sub-content is content displayed in the last line on the first screen when the fourth input is ended. And updating and displaying the target object updated and displayed in the first screen in the second screen of the second terminal.
Optionally, with reference to fig. 11, as shown in fig. 13, the terminal provided in the embodiment of the present invention may further include a sending module 704. The receiving module 701 is further configured to receive a fifth input of the user after the processing module 702 shares the target object in the first screen of the first terminal with the second terminal for displaying, where the fifth input is used to trigger the first terminal and the second terminal to move relatively according to a first relative movement direction, and the first relative movement direction is opposite to a second relative movement direction triggered by the first input. The sending module 704 is configured to send a first message to the second terminal in response to the fifth input received by the receiving module 701, where the first message is used to instruct the second terminal to cancel displaying the target object.
Optionally, in this embodiment of the present invention, the receiving module 701 is further configured to receive a sixth input of the user to the target object in the first screen after the processing module 702 shares the target object in the first screen of the first terminal with the second terminal for displaying, where the sixth input is used to trigger selection of part or all of the target object. The receiving module 701 is further configured to receive a seventh input from the user, where the seventh input is used to trigger the release of the magnetic connection state of the first terminal and the second terminal. The sending module 704 is further configured to send a second message to the second terminal in response to the sixth input and the seventh input received by the receiving module 701, where the second message is used to instruct the second terminal to store and display the selected target object in the first screen.
The terminal provided by the embodiment of the present invention can implement each process implemented by the terminal in the above method embodiments, and is not described herein again to avoid repetition.
In the terminal provided in the embodiment of the present invention, in a state where a first side of the first terminal and a second side of the second terminal are magnetically connected, the first terminal may receive a first input of a first terminal user, where the first input is used to adjust a relative position of the first side and the second side; and responding to the first input, and sharing the target object in the first screen of the first terminal to the second terminal for displaying based on the adjusted relative positions of the first side and the second side. Through the scheme, the first terminal can respond to the input of the relative position of the two terminals adjusted by the user, and the object displayed by the first terminal is sent to the second terminal to be displayed based on the magnetic connection length adjusted by the two terminals, so that the object sharing is realized, and processes of clicking a sharing icon by the user, selecting the sharing object and the like are not needed. Therefore, the method and the device for sharing the object can improve the convenience and flexibility of the terminal for sharing the object.
Fig. 14 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention. As shown in fig. 14, the terminal 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the terminal configuration shown in fig. 14 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 807 is configured to receive a first input of a first terminal user in a state where a first side of the first terminal and a second side of the second terminal are magnetically connected, where the first input is used to adjust a relative position of the first side and the second side; the processor 810 is configured to, in response to the first input received by the user input unit 807, share the target object in the first screen of the first terminal to the second terminal for displaying based on the adjusted relative positions of the first side and the second side.
The embodiment of the invention provides a terminal, which can respond to the input of a user for adjusting the relative positions of two terminals, and can send an object displayed by a first terminal to a second terminal for displaying based on the magnetic connection length adjusted by the two terminals, so that the object sharing is realized without the processes of clicking a sharing icon, selecting a sharing object and the like by the user. Therefore, the method and the device for sharing the object can improve the convenience and flexibility of the terminal for sharing the object.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The terminal 800 provides the user with wireless broadband internet access via the network module 802, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the terminal 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The terminal 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 14, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the terminal, and the implementation is not limited herein.
The interface unit 808 is an interface for connecting an external device to the terminal 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the terminal 800 or may be used to transmit data between the terminal 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby integrally monitoring the terminal. Processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
Terminal 800 can also include a power supply 811 (e.g., a battery) for powering the various components, and optionally, power supply 811 can be logically coupled to processor 810 via a power management system to manage charging, discharging, and power consumption management via the power management system.
In addition, the terminal 800 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides a terminal, including the processor 810 shown in fig. 14, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the above-mentioned embodiment of the object sharing method, and can achieve the same technical effect, and is not described here again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the object sharing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method disclosed in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (20)

1. An object sharing method is applied to a first terminal, and is characterized by comprising the following steps:
receiving a first input of a first terminal user in a state that a first side of a first terminal is magnetically connected with a second side of a second terminal, wherein the first input is used for adjusting the relative positions of the first side and the second side;
responding to the first input, determining information corresponding to the relative positions of the first side and the second side based on the adjusted relative positions of the first side and the second side, determining a target object according to the information, and sharing the target object in a first screen of the first terminal to the second terminal for displaying;
wherein the information is any one of the following: the target object type corresponding to the target magnetic connection length, a target area determined according to a first starting mark and a first ending mark displayed in the first screen, and contents displayed from the first starting mark to contents displayed in the last line of the first screen when the user inputs the sliding input on the first screen are finished; the first starting mark is the mark displayed at the first position of the first screen when the first side edge and the second side edge are at the first relative position, and the first ending mark is the mark displayed at the second position of the first screen when the first side edge and the second side edge are at the second relative position.
2. The method according to claim 1, wherein the determining information corresponding to the relative positions of the first side edge and the second side edge based on the adjusted relative positions of the first side edge and the second side edge, determining a target object according to the information, and sharing the target object in a first screen of the first terminal to the second terminal for display comprises:
determining the target magnetic connection length based on the adjusted final relative positions of the first side and the second side;
determining a target object type based on the target magnetic connection length;
and sharing the target object which is in accordance with the target object type in the first screen of the first terminal to the second terminal for displaying.
3. The method of claim 2, wherein determining a target object type based on the target magnetic connection length comprises:
and determining the object type corresponding to the preset length range as the target object type under the condition that the target magnetic connection length belongs to the preset length range.
4. The method according to claim 1, wherein the determining information corresponding to the relative positions of the first side edge and the second side edge based on the adjusted relative positions of the first side edge and the second side edge, determining a target object according to the information, and sharing the target object in a first screen of the first terminal to the second terminal for display comprises:
determining the target area in the first screen based on the adjusted relative positions of the first side and the second side;
and sharing the target object in the target area to the second terminal for displaying.
5. The method of claim 4, wherein receiving a first input from a first end user comprises:
receiving a first sub-input and a second sub-input of a first end user, wherein the first sub-input is used for adjusting the first side edge and the second side edge to a first relative position and displaying a first starting identifier at a first position of a first screen, and the first position is determined by the first relative position; the second sub-input is used for adjusting the first side edge and the second side edge to a second relative position and displaying a first end mark at a second position of the first screen, wherein the second position is determined by the second relative position;
the determining a target area in the first screen based on the adjusted relative positions of the first side and the second side in response to the first input comprises:
in response to the first and second sub-inputs, determining an area between the first start identifier and the first end identifier as the target area based on the adjusted first and second relative positions of the first and second sides.
6. The method according to claim 4, wherein after determining a target area in the first screen based on the adjusted relative positions of the first side and the second side, and before sharing a target object in the target area to the second terminal for display, the method further comprises:
receiving a second input of the user, wherein the second input is a sliding input on the target area;
updating a target object displayed in a target area in response to the second input;
the sharing of the target object in the target area to the second terminal for display includes:
sharing the updated target object in the target area to the second terminal for displaying;
and displaying the updated target object in the target area in a second screen of the second terminal.
7. The method according to claim 1, wherein the determining information corresponding to the relative positions of the first side edge and the second side edge based on the adjusted relative positions of the first side edge and the second side edge, determining a target object according to the information, and sharing the target object in a first screen of the first terminal to the second terminal for display comprises:
displaying a first start identifier at a first position of the first screen based on the adjusted relative positions of the first side and the second side;
receiving a third input of a user on the first start identifier;
responding to the third input, and displaying target prompt information, wherein the target prompt information is used for prompting sliding input on the first screen to select an object to be shared;
receiving a fourth input of the user, wherein the fourth input is a sliding input on the first screen;
responding to the fourth input, updating an object displayed in the first screen, and sharing a target object updated and displayed in the first screen to the second terminal for displaying, wherein the target object is content from first sub-content to second sub-content, the first sub-content is content displayed at the first starting identifier, and the second sub-content is content displayed in the last line of the first screen when the fourth input is finished;
and updating and displaying the target object updated and displayed in the first screen in the second screen of the second terminal.
8. The method according to any one of claims 1 to 7, wherein after sharing the target object in the first screen of the first terminal to the second terminal for display, the method further comprises:
receiving a fifth input of a user, wherein the fifth input is used for triggering the first terminal and the second terminal to move relatively according to a first relative movement direction, and the first relative movement direction is opposite to a second relative movement direction triggered by the first input;
and responding to the fifth input, and sending a first message to the second terminal, wherein the first message is used for indicating the second terminal to cancel the display of the target object.
9. The method according to any one of claims 1 to 7, wherein after sharing the target object in the first screen of the first terminal to the second terminal for display, the method further comprises:
receiving a sixth input of a user to a target object in the first screen, wherein the sixth input is used for triggering selection of part or all of the target object;
receiving a seventh input of a user, wherein the seventh input is used for triggering the release of the magnetic connection state of the first terminal and the second terminal;
and responding to the sixth input and the seventh input, and sending a second message to the second terminal, wherein the second message is used for instructing the second terminal to store and display the selected target object in the first screen.
10. A terminal is characterized in that the terminal is a first terminal and comprises a receiving module and a processing module;
the receiving module is configured to receive a first input of a first terminal user in a state where a first side of a first terminal and a second side of a second terminal are magnetically connected, where the first input is used to adjust a relative position of the first side and the second side;
the processing module is configured to determine, in response to the first input received by the receiving module, information corresponding to the relative positions of the first side and the second side based on the adjusted relative positions of the first side and the second side, determine a target object according to the information, and share the target object in the first screen of the first terminal to the second terminal for display;
wherein the information is any one of the following: the target object type corresponding to the target magnetic connection length, a target area determined according to a first starting mark and a first ending mark displayed in the first screen, and contents displayed from the first starting mark to contents displayed in the last line of the first screen when the user inputs the sliding input on the first screen are finished; the first starting mark is the mark displayed at the first position of the first screen when the first side edge and the second side edge are at the first relative position, and the first ending mark is the mark displayed at the second position of the first screen when the first side edge and the second side edge are at the second relative position.
11. The terminal according to claim 10, wherein the processing module is specifically configured to determine the target magnetic connection length based on the adjusted final relative positions of the first side and the second side; and determining a target object type based on the target magnetic connection length; and sharing the target object which is in accordance with the target object type in the first screen of the first terminal to the second terminal for displaying.
12. The terminal according to claim 11, wherein the processing module is specifically configured to determine, as the target object type, an object type corresponding to a preset length range if the target magnetic connection length falls within the preset length range.
13. The terminal according to claim 10, wherein the processing module is specifically configured to determine the target area in the first screen based on the adjusted relative positions of the first side and the second side; and sharing the target object in the target area to the second terminal for displaying.
14. The terminal according to claim 13, wherein the receiving module is specifically configured to receive a first sub-input and a second sub-input of a first end user, wherein the first sub-input is configured to adjust the first side edge and the second side edge to a first relative position and display a first start identifier at a first position on a first screen, and the first position is determined by the first relative position; the second sub-input is used for adjusting the first side edge and the second side edge to a second relative position and displaying a first end mark at a second position of the first screen, wherein the second position is determined by the second relative position;
the processing module is specifically configured to determine, in response to the first sub-input and the second sub-input, an area between the first start identifier and the first end identifier as the target area based on the adjusted first relative position and second relative position of the first side edge and the second side edge.
15. The terminal of claim 13, further comprising a display module;
the receiving module is further configured to receive a second input of a user after the processing module determines a target area in the first screen based on the adjusted relative positions of the first side and the second side and before a target object in the target area is shared to the second terminal for displaying, where the second input is a sliding input on the target area;
the display module is used for responding to the second input received by the receiving module and updating the target object displayed in the target area;
the processing module is specifically configured to share the updated target object in the target area to the second terminal for display;
and displaying the updated target object in the target area in a second screen of the second terminal.
16. The terminal according to claim 15, wherein the processing module is specifically configured to display a first start identifier at a first position of the first screen based on the adjusted relative positions of the first side and the second side;
the receiving module is further configured to receive a third input of the user on the first start identifier;
the display module is further configured to display target prompt information in response to the third input received by the receiving module, where the target prompt information is used to prompt a user to slide on the first screen to input and select an object to be shared;
the receiving module is further configured to receive a fourth input of the user, where the fourth input is a sliding input on the first screen;
the display module is further configured to update an object displayed in the first screen in response to the fourth input received by the receiving module, and share the updated and displayed target object in the first screen to the second terminal for displaying, where the target object is content from first sub-content to second sub-content, the first sub-content is content displayed at the first start identifier, and the second sub-content is content displayed in a last line on the first screen when the fourth input is finished;
and updating and displaying the target object updated and displayed in the first screen in the second screen of the second terminal.
17. The terminal according to any of claims 10 to 16, characterized in that the terminal further comprises a sending module;
the receiving module is further configured to receive a fifth input of a user after the processing module shares the target object in the first screen of the first terminal with the second terminal for display, where the fifth input is used to trigger the first terminal and the second terminal to move relatively in a first relative movement direction, and the first relative movement direction is opposite to a second relative movement direction triggered by the first input;
the sending module is configured to send a first message to the second terminal in response to the fifth input received by the receiving module, where the first message is used to instruct the second terminal to cancel displaying the target object.
18. The terminal according to claim 17, wherein the receiving module is further configured to receive a sixth input of the target object in the first screen from the user after the processing module shares the target object in the first screen of the first terminal with the second terminal for displaying, where the sixth input is used to trigger selection of part or all of the target object;
the receiving module is further configured to receive a seventh input of a user, where the seventh input is used to trigger release of a magnetic connection state between the first terminal and the second terminal;
the sending module is further configured to send a second message to the second terminal in response to the sixth input and the seventh input received by the receiving module, where the second message is used to instruct the second terminal to store and display the selected target object in the first screen.
19. A terminal comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the object sharing method according to any one of claims 1 to 9.
20. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the object sharing method according to any one of claims 1 to 9.
CN201910586355.6A 2019-07-01 2019-07-01 Object sharing method and terminal Active CN110489044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910586355.6A CN110489044B (en) 2019-07-01 2019-07-01 Object sharing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910586355.6A CN110489044B (en) 2019-07-01 2019-07-01 Object sharing method and terminal

Publications (2)

Publication Number Publication Date
CN110489044A CN110489044A (en) 2019-11-22
CN110489044B true CN110489044B (en) 2021-02-12

Family

ID=68546420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910586355.6A Active CN110489044B (en) 2019-07-01 2019-07-01 Object sharing method and terminal

Country Status (1)

Country Link
CN (1) CN110489044B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309205B (en) * 2020-01-23 2021-07-06 维沃移动通信有限公司 Application sharing method, first electronic device and computer-readable storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201509216U (en) * 2009-09-10 2010-06-16 中兴通讯股份有限公司 Mobile phone
CN103873578A (en) * 2014-03-21 2014-06-18 深圳市东方拓宇科技有限公司 Method for sending and sharing contents between terminals and corresponding terminals
US8823640B1 (en) * 2010-10-22 2014-09-02 Scott C. Harris Display reconfiguration and expansion across multiple devices
CN104063111A (en) * 2013-03-21 2014-09-24 联想(北京)有限公司 Information processing method and electronic equipment
CN104076872A (en) * 2013-03-29 2014-10-01 联想(北京)有限公司 Electronic equipment
CN104679315A (en) * 2013-11-28 2015-06-03 英业达科技有限公司 Touch control display device and touch control operation method thereof
CN104915129A (en) * 2014-03-10 2015-09-16 联想(北京)有限公司 Electronic equipment and electronic equipment module
CN105278855A (en) * 2014-06-25 2016-01-27 Lg电子株式会社 Mobile terminal and method for controlling the same
CN105765518A (en) * 2013-09-25 2016-07-13 派视特立株式会社 Apparatus and method for sharing contents
CN106055221A (en) * 2015-04-22 2016-10-26 昆山纬绩资通有限公司 Method for screen picture interactions among multiple electronic devices and electronic system
CN106303067A (en) * 2016-08-31 2017-01-04 广东小天才科技有限公司 A kind of method and device of data transmission
CN106325709A (en) * 2016-08-24 2017-01-11 广东小天才科技有限公司 Method and device for capturing contents on screen
CN106445440A (en) * 2016-09-26 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Screen sharing method and terminal thereof
CN108475183A (en) * 2016-01-04 2018-08-31 三星电子株式会社 It is shown using the content of multiple display equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9213480B2 (en) * 2010-04-08 2015-12-15 Nokia Technologies Oy Method, apparatus and computer program product for joining the displays of multiple devices
JP2013140455A (en) * 2011-12-29 2013-07-18 Panasonic Corp Information processing system
CN106919329B (en) * 2012-03-12 2020-07-24 联想(北京)有限公司 Touch screen input method and electronic equipment
CN105074633B (en) * 2013-02-25 2018-01-02 夏普株式会社 Input equipment and display device
CN106126150A (en) * 2016-07-02 2016-11-16 上海摩软通讯技术有限公司 Magnetic splice matching method, splicing display method and terminal unit

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201509216U (en) * 2009-09-10 2010-06-16 中兴通讯股份有限公司 Mobile phone
US8823640B1 (en) * 2010-10-22 2014-09-02 Scott C. Harris Display reconfiguration and expansion across multiple devices
CN104063111A (en) * 2013-03-21 2014-09-24 联想(北京)有限公司 Information processing method and electronic equipment
CN104076872A (en) * 2013-03-29 2014-10-01 联想(北京)有限公司 Electronic equipment
CN105765518A (en) * 2013-09-25 2016-07-13 派视特立株式会社 Apparatus and method for sharing contents
CN104679315A (en) * 2013-11-28 2015-06-03 英业达科技有限公司 Touch control display device and touch control operation method thereof
CN104915129A (en) * 2014-03-10 2015-09-16 联想(北京)有限公司 Electronic equipment and electronic equipment module
CN103873578A (en) * 2014-03-21 2014-06-18 深圳市东方拓宇科技有限公司 Method for sending and sharing contents between terminals and corresponding terminals
CN105278855A (en) * 2014-06-25 2016-01-27 Lg电子株式会社 Mobile terminal and method for controlling the same
CN106055221A (en) * 2015-04-22 2016-10-26 昆山纬绩资通有限公司 Method for screen picture interactions among multiple electronic devices and electronic system
CN108475183A (en) * 2016-01-04 2018-08-31 三星电子株式会社 It is shown using the content of multiple display equipment
CN106325709A (en) * 2016-08-24 2017-01-11 广东小天才科技有限公司 Method and device for capturing contents on screen
CN106303067A (en) * 2016-08-31 2017-01-04 广东小天才科技有限公司 A kind of method and device of data transmission
CN106445440A (en) * 2016-09-26 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Screen sharing method and terminal thereof

Also Published As

Publication number Publication date
CN110489044A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN110851051B (en) Object sharing method and electronic equipment
CN111061574B (en) Object sharing method and electronic device
CN109917995B (en) Object processing method and terminal equipment
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN109032486B (en) Display control method and terminal equipment
CN109828705B (en) Icon display method and terminal equipment
CN111124245B (en) Control method and electronic equipment
CN110658971B (en) Screen capturing method and terminal equipment
CN110855830A (en) Information processing method and electronic equipment
CN111142723B (en) Icon moving method and electronic equipment
CN109085968B (en) Screen capturing method and terminal equipment
CN109828731B (en) Searching method and terminal equipment
CN110489045B (en) Object display method and terminal equipment
CN111064848B (en) Picture display method and electronic equipment
CN111026350A (en) Display control method and electronic equipment
CN110930410A (en) Image processing method, server and terminal equipment
CN110489038B (en) Interface display method and terminal equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN110012152B (en) Interface display method and terminal equipment
CN109067975B (en) Contact person information management method and terminal equipment
CN109117037B (en) Image processing method and terminal equipment
CN111399715B (en) Interface display method and electronic equipment
CN110489044B (en) Object sharing method and terminal
CN110493451B (en) Data transmission method, electronic equipment and terminal
CN110716686A (en) Display content switching method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant