WO2022001374A1 - Content sharing method and apparatus, and device and storage medium - Google Patents

Content sharing method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2022001374A1
WO2022001374A1 PCT/CN2021/092831 CN2021092831W WO2022001374A1 WO 2022001374 A1 WO2022001374 A1 WO 2022001374A1 CN 2021092831 W CN2021092831 W CN 2021092831W WO 2022001374 A1 WO2022001374 A1 WO 2022001374A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
moving operation
target content
sharing
display interface
Prior art date
Application number
PCT/CN2021/092831
Other languages
French (fr)
Chinese (zh)
Inventor
莫博宇
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022001374A1 publication Critical patent/WO2022001374A1/en

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the embodiments of the present application relate to electronic technologies, and relate to, but are not limited to, a content sharing method and apparatus, device, and storage medium.
  • the terminal will display the display interface of at least one application on the display screen, but when the user moves files or other objects, the display interface of the application will block other interfaces, which makes it impossible for the user to easily and quickly When the target object moves to the target position, misoperation is easy to occur, and the user experience is poor.
  • embodiments of the present application provide a content sharing method, device, device, and storage medium.
  • an embodiment of the present application provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
  • the target content is shared to the first object.
  • an embodiment of the present application provides a content sharing device, the device comprising:
  • a determining unit configured to determine the target content to be shared in the display interface of the first application
  • a hiding unit configured to hide the display interface of the first application in response to a moving operation for the target content
  • the sharing unit is configured to, in response to the end of the moving operation, share the target content to the first object if the end point of the moving operation corresponds to the first object.
  • an embodiment of the present application provides an electronic device, including a memory and a processor, the memory stores a computer program that can be run on the processor, and the processor implements the above-mentioned content sharing when the program is executed steps in the method.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the above-described content sharing method.
  • FIG. 1 is a schematic diagram 1 of a realization flow of a content sharing method according to an embodiment of the present application
  • FIG. 2A is a second implementation flowchart of a content sharing method according to an embodiment of the present application.
  • FIG. 2B is a schematic diagram 1 of an application scenario of the content sharing method according to an embodiment of the present application.
  • FIG. 3A is a schematic diagram 3 of an implementation flow of a content sharing method according to an embodiment of the present application.
  • 3B is a second schematic diagram of an application scenario of the content sharing method according to an embodiment of the present application.
  • 3C is a schematic diagram 3 of an application scenario of the content sharing method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram 4 of the implementation process of the content sharing method according to the embodiment of the present application.
  • FIG. 5 is a schematic diagram of an interface operation for content sharing according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of the composition and structure of a content sharing apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application.
  • first ⁇ second ⁇ third involved in the embodiments of the present application is only to distinguish similar objects, and does not represent a specific ordering of objects. It is understandable that “first ⁇ second ⁇ third” "Where permitted, the specific order or sequence may be interchanged to enable the embodiments of the application described herein to be practiced in sequences other than those illustrated or described herein.
  • FIG. 1 is a schematic diagram 1 of an implementation flow of a content sharing method according to an embodiment of the present application. As shown in FIG. 1 , the method includes:
  • Step S101 in the display interface of the first application, determine the target content to be shared
  • the display interface of the first application may be any interface of the first application.
  • the display interface may be a contact list interface, a chat interface, etc.; if the first application is a file management application In the application, the display interface may be a folder list interface or a file list interface, etc., which is not specifically limited in this embodiment of the present application.
  • the target content may be any content in the display interface.
  • the display interface is a contact list interface
  • the corresponding target content may be a contact card.
  • the display interface is a chat interface
  • the corresponding target content may be information such as files, pictures, and videos existing in the chat interface.
  • the display interface is a folder list interface
  • the corresponding target content may be a folder.
  • determining the target content to be shared may be implemented in the following manner: for example, the display screen is a touch screen, and the pressing operation on the display interface of the first application is obtained; If the duration of the pressing operation exceeds the preset duration, the target content to be shared is determined; or, if the number of consecutive pressings of the pressing operation exceeds the preset number, the target content to be shared is determined, wherein the pressing operation is for The pressing operation of the target content.
  • the target content to be shared can be determined by pressing the selected method.
  • the target content may be various, for example, the target content may be text, pictures, videos, files, and the like.
  • the target content to be shared may also be determined through a virtual pressing operation.
  • the mouse simulates clicks and presses, air gestures, VR (Virtual Reality, virtual reality technology) operations, etc.
  • VR Virtual Reality, virtual reality technology
  • a user when he is operating an electronic device, he can perform a selection operation in the air, and use the camera of the electronic device to obtain the user's gesture in front of the display screen, and then use an algorithm to identify the shape, position and other information of the gesture to determine the information to be shared.
  • target content can also be used to create a computer simulation system, to generate a simulation environment, and to express objects such as electronic equipment through a three-dimensional model, so that the user can determine the target content to be shared in the three-dimensional model.
  • the electronic device can be various types of devices with information processing capabilities, such as mobile phones, PDAs (Personal Digital Assistants, personal digital assistants), navigators, digital phones, video phones, smart watches, smart bracelets, Wearable devices, tablets, all-in-one computers, etc.
  • PDAs Personal Digital Assistants, personal digital assistants
  • navigators digital phones
  • video phones smart watches, smart bracelets
  • Wearable devices tablets, all-in-one computers, etc.
  • Step S102 hiding the display interface of the first application in response to the moving operation for the target content
  • hiding the display interface of the first application can be implemented in the following manner: in response to the moving operation on the target content, if the moving operation The moving distance is greater than or equal to the preset distance, and the display interface of the first application is hidden.
  • the moving operation is an operation of moving the target content on the display screen.
  • the hiding of the display interface of the first application in response to the moving operation on the target content may be hiding the display interface of the first application as long as a moving operation occurs. It is also possible to hide the display interface of the first application after the moving operation has a certain moving distance. For example, when moving outside the display interface of the first application, hide the display interface of the first application.
  • hiding can be achieved in a number of ways.
  • the display of the first application interface can be cancelled through software control, or the interface can be hidden by setting the interface to be transparent.
  • the embodiment of the present application does not limit the way of hiding the display interface of the first application, as long as the display interface of the first application is hidden after the moving operation for the target content within the protection scope of the application.
  • Step S103 In response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object.
  • the end of the moving operation may be the displacement of the moving operation on the touch screen within a certain period of time
  • the end of the moving operation may also be a lifting operation performed after moving a certain distance
  • the end point of the moving operation may be a coordinate point position corresponding to the lifting operation.
  • the moving operation may also be an air gesture moving operation in front of the display screen of the electronic device, and the end of the moving operation may be that the moving operation reaches a certain range in front of the display screen within a certain period of time.
  • the movement operation end gesture occurs after the movement operation moves a certain distance. For example, when the user makes a gesture of opening the palm after moving a certain distance in front of the display screen, it means that the moving operation is over.
  • the end point of the moving operation corresponds to the first object, and it may be that the end point of the moving operation is located in an area related to the first object.
  • the end point of the moving operation corresponding to the first object means that the end point of the moving operation is located in the editing area of the document editing APP .
  • the first object is a chat list in the WeChat chat display interface
  • the correspondence between the end point of the movement operation and the first object means that the end point of the movement operation is located on the chat list.
  • the method further includes: after the target content is shared to the first object, redisplaying the display interface of the first application.
  • the method further includes:
  • the target content to be shared is determined in the display interface of the first application; the display interface of the first application is hidden in response to the moving operation for the target content; the display interface of the first application is hidden in response to the moving operation After the end of the moving operation, if the end point of the moving operation corresponds to the first object, the target content will be shared with the first object. In this way, content sharing can be performed quickly and accurately, thereby avoiding accidental touch operations.
  • FIG. 2A is a schematic diagram 2 of the implementation flow of the content sharing method according to the embodiment of the present application. As shown in FIG. 2A , the The methods described include:
  • Step S201 in the display interface of the first application, determine the target content to be shared
  • Step S202 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S203 In response to the end of the moving operation, if the end point of the moving operation corresponds to the second application, share the target content to the second application.
  • a selection prompt box may pop up to display the names of all documents opened by the user. displayed, allowing the user to select the target document to be shared, and after the user selects one of the documents, the target content to be shared is shared to the target document selected by the user.
  • the electronic device may open the document editing application and create a new document to record the target content.
  • the end point of the moving operation corresponds to the second application, and includes at least one of the following:
  • the end position of the moving operation is located at the position of the application icon of the second application
  • the end position of the moving operation is located in the display interface of the second application
  • the end position of the moving operation is located at the shortcut identification position of the second application
  • the end position of the moving operation is located at the position of the shortcut launch bar of the second application.
  • the second application may be a system application, such as a camera gallery.
  • the second application may also be a third-party application, such as WeChat.
  • the second application is a camera gallery.
  • the first application corresponding to the target content is hidden. If the user continues to move to the icon position of the camera gallery and the user lifts operation, the target content to be shared is shared to the camera gallery.
  • the second application is a camera gallery and the camera gallery is in an open state. When the user selects the target content and starts to move, and moves out of the display interface boundary of the first application, the first application is hidden. Continue to move to a folder in the camera gallery display interface and the user performs a lift operation, then the target content is shared to the folder.
  • the display interface of the first application may be displayed on the display interface of the second application.
  • the display interface of the first application may be displayed on the display interface of the second application in different ways.
  • the display interface of the first application may be displayed on the display interface of the second application in the form of a floating window.
  • the display interface of the first application may be displayed on the display interface of the second application in the form of a floating window, or It may be displayed on the display interface of the second application in a manner of reducing the window in a specific proportion.
  • the first application is displayed on the display interface of the second application by reducing the window by a specific proportion, which means that the first application is not displayed in full screen, but the display interface is reduced by a specific proportion, and the reduced The latter display interface is displayed on the display interface of the second application.
  • the method further includes: after the target content is shared to the second application, redisplaying the display interface of the first application.
  • the target content to be shared is determined in the display interface of the first application; the display interface of the first application is hidden in response to the moving operation for the target content; the display interface of the first application is hidden in response to the moving operation end, if the end point of the moving operation corresponds to the second application, the target content is shared to the second application, so that the target content to be shared in the first application can be quickly and accurately shared to all in the second application.
  • an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
  • Step S211 in the display interface of the first application, determine the target content to be shared
  • Step S212 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S213 in response to the end of the moving operation, if the end point of the moving operation corresponds to the second application, share the target content to the second application;
  • Step S214 the second application includes a document editing application; correspondingly, the sharing the target content to the first object includes: saving the target content to a format corresponding to the document editing application. in the file.
  • the method further includes: redisplaying the display interface of the first application after saving the target content to a file in a format corresponding to the document editing application.
  • the first application is a camera gallery
  • the target content to be shared is a picture. If the user selects the picture and performs a drag and drop operation, the display interface of the camera gallery is hidden. When the user drags and drops the picture to a file of the corresponding format of an open document editing application, the picture is shared to the file of the corresponding format of the document editing application. And, after the sharing is completed, the display interface of the camera gallery is redisplayed.
  • FIG. 2B is a schematic diagram 1 of an application scenario of the content sharing method according to an embodiment of the present application.
  • a first application 24 and a second application 23 are displayed on the display screen of the electronic device, and the second application 24 is displayed on the display screen of the electronic device.
  • the application 23 is a document editing application, and the user determines the target content 25 in the first application 24 through a touch and press operation. In this way, the user can perform a moving operation on the selected target content 25 .
  • the display interface of the first application 24 is hidden, and the hidden interface is shown in the picture 21 .
  • the target content 25 is shared with the second application 23, and the first application 23 is redisplayed at the same time.
  • the display interface of the application 24, and the interface after the sharing is completed is as shown in the picture 22.
  • FIG. 3A is a schematic diagram 3 of the implementation process of the content sharing method according to the embodiment of the present application. As shown in FIG. 3A , the The methods described include:
  • Step S301 in the display interface of the first application, determine the target content to be shared
  • Step S302 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S303 In response to the end of the moving operation, if the end position of the moving operation is located at the position of a display object in the second application interface, share the target content to the target corresponding to the display object.
  • the method further includes: after the target content is shared to the target corresponding to the display object, redisplaying the display interface of the first application.
  • the target content to be shared is determined in the display interface of the first application; the display interface of the first application is hidden in response to the moving operation for the target content; the display interface of the first application is hidden in response to the moving operation end, if the end position of the moving operation is located at the position of a display object in the second application interface, then the target content is shared to the target corresponding to the display object, so that the target content can be quickly and accurately
  • the target content to be shared in the first application is shared to a target corresponding to a display object in the second application interface.
  • an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
  • Step S311 in the display interface of the first application, determine the target content to be shared
  • Step S312 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S313 In response to the end of the moving operation, if the end position of the moving operation is located at the position of a display object in the second application interface, share the target content to the target corresponding to the display object.
  • Step S314 the second application includes a communication application, and the display object includes a contact identifier; correspondingly, the sharing the target content to the target corresponding to the display object includes: sharing the target content to the contact corresponding to the contact identifier.
  • the contact identifier includes at least one of the following: a contact avatar, a contact number, a contact conversation list item, or a contact conversation page.
  • the method further includes: redisplaying the display interface of the first application after the target content is shared to the contact corresponding to the contact identifier.
  • the first application is a file management APP
  • the target content to be shared is a folder (including files in the folder)
  • the communication application is WeChat
  • the display object is a chat interface a chat list for . If the user selects the folder and performs a drag and drop operation, the display interface of the file management APP is hidden. When the user drags the folder onto the chat list, the folder (including the files in the folder) is shared with the contacts corresponding to the chat list. And, after the sharing is completed, the display interface of the file management APP is redisplayed.
  • FIG. 3B is a second schematic diagram of an application scenario of the content sharing method according to an embodiment of the present application.
  • a first application 34 and a second application 33 are displayed on the display screen of the electronic device, and the second application 34 is displayed on the display screen of the electronic device.
  • the application 33 is a communication application, and the user determines the target content 35 in the first application 34 through a touch and press operation. In this way, the user can move the selected target content 35 .
  • the display interface of the first application 34 is hidden in response to the moving operation, and the hidden interface is shown in the picture 31 .
  • the target content 35 is shared to the contact corresponding to the contact identifier 36
  • the display interface of the first application 34 is displayed again, and the interface after the sharing is completed is as shown in the picture 32 .
  • an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
  • Step S321 in the display interface of the first application, determine the target content to be shared
  • Step S322 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S323 In response to the end of the moving operation, if the end position of the moving operation is located at the position of a display object in the second application interface, share the target content to the target corresponding to the display object.
  • Step S324 the second application includes a file management application, and the display object includes a folder identifier; correspondingly, the sharing the target content to the target corresponding to the display object includes: sharing the target content Save to the path where the folder is located.
  • the method further includes: after saving the target content to the path where the folder is located, redisplaying the display interface of the first application.
  • the first application is WeChat
  • the target content to be shared is a video received by a user in a chat interface. If the user selects the received video and performs a drag and drop operation, the display interface of the WeChat is hidden. When the user drags and drops the video to a folder in the file management application, the video is saved to the path where the folder is located, and after the saving is completed, the WeChat account is displayed again. chat interface.
  • the method further includes:
  • FIG. 3C is a schematic diagram of a third application scenario of the content sharing method according to an embodiment of the present application.
  • a first application 34 and a second application 33 are displayed on the display screen of the electronic device, and the second application 34 is displayed on the display screen of the electronic device.
  • the application 33 is a file management application, and the user determines the target content 35 in the first application 34 through a touch and press operation. In this way, the user can move the selected target content 35 .
  • the display interface of the first application 34 is hidden in response to the moving operation, and the hidden interface is shown in the picture 31 .
  • the target content 35 is saved to the path where the folder identifier 36 is located
  • the display interface of the first application 34 is redisplayed at the same time, and the interface after the sharing is completed is as shown in the picture 32 .
  • the embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen.
  • the methods described include:
  • Step S401 in the display interface of the first application, determine the target content to be shared
  • Step S402 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S403 displaying a preset functional area on a specific position of the display screen in response to the moving operation for the target content; wherein, the preset functional area is used to cancel sharing;
  • the execution order of the step S402 and the step S403 is not specifically limited. That is, in response to the moving operation for the target content, the display interface of the first application may be hidden first, and then a preset function area is displayed on a specific position of the display screen. It is also possible to first display a preset function area on a specific position of the display screen, and then hide the display interface of the first application.
  • Step S404 in response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object;
  • Step S405 In response to the end of the moving operation, if the end position of the moving operation is located within the preset functional area, cancel the sharing of the target content.
  • the position of the end point of the user's movement operation may be determined, and if the end point of the movement operation corresponds to the first object, content sharing is performed. If the end position of the moving operation is within the preset function area, the sharing is canceled.
  • the target content to be shared is determined in the display interface of the first application; the display interface of the first application is hidden in response to the moving operation for the target content; Content moving operation, displaying a preset function area on a specific position of the display screen; wherein, the preset function area is used to cancel sharing; in response to the end of the moving operation, if the end point of the moving operation is the same as the corresponding to the first object, the target content is shared to the first object; in response to the end of the moving operation, if the end position of the moving operation is within the preset function area, the sharing of the Target content, in this way, content sharing and cancellation of content sharing can be performed quickly and accurately, thereby avoiding accidental touch operations.
  • an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
  • Step S412 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S413 displaying a preset functional area on a specific position of the display screen in response to the moving operation for the target content; wherein, the preset functional area is used to cancel sharing;
  • Step S414 in response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object;
  • Step S415 in response to the end of the moving operation, if the end position of the moving operation is located within the preset functional area, cancel the sharing of the target content;
  • Step S416 Redisplay the display interface of the first application after the sharing ends; or redisplay the display interface of the first application after canceling the sharing.
  • the display interface of the first application is redisplayed after the end.
  • an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
  • Step S422 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S423 in response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object;
  • Step S424 in response to the end of the moving operation, if the end position of the moving operation is located at the title bar position of the electronic device, cancel the sharing of the target content; or, in response to the end of the moving operation, if If the end position of the moving operation exceeds the boundary position of the display screen of the electronic device, the sharing of the target content is canceled;
  • Step S425 Redisplay the display interface of the first application after the sharing ends; or redisplay the display interface of the first application after canceling the sharing.
  • an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
  • Step S431 the display interface of the first application is displayed on the display screen of the electronic device in the form of a floating window; or, the display interface of the first application is displayed on the electronic device in the form of a window reduced by a specific ratio on the display;
  • Step S432 in the display interface of the first application, determine the target content to be shared
  • Step S433 hiding the display interface of the first application in response to the moving operation for the target content
  • Step S434 In response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object.
  • FIG. 5 is a schematic diagram of an interface operation for content sharing according to the embodiment of the present application, as shown in FIG. 5 :
  • a first application 501 and a second application 502 are displayed on the display interface of the electronic device, and the first application 501 is displayed on the second application in the form of a floating window. on the display interface of the application 502 .
  • the display interface changes to the interface shown in the picture 52, and the selected file to be shared is displayed in a raised state.
  • the user's drag operation is judged: when the user drags more than a certain distance, as shown in the interface shown in Figure 53, the first The floating window of an application 501 is hidden, and a hot area 503 is added at a specific position of the display screen (eg, the lower right corner of the display screen). In this way, the user can completely see the page layout of the second application 502, which is convenient for the user to drag and locate at will. Moreover, the hot zone 503 will not block the main content of the second application 502 .
  • the position of canceling the hotspot can be in the title bar (because dragging to the title bar to share is also a meaningless operation).
  • the user will not have any unnecessary obstruction during the dragging process, and can simply and quickly cancel the sharing and return to the floating window, which solves the scene pain points of the user during the dragging and sharing process.
  • the embodiments of the present application provide a content sharing device, the device includes each unit included, each module included in each unit, and each component included in each module, which can be passed through an electronic device.
  • the processor can be CPU (Central Processing Unit, central processing unit), MPU (Microprocessor Unit, microprocessor), DSP (Digital Signal Processing, digital signal processor) or FPGA (Field Programmable Gate Array, Field Programmable Gate Array), etc.
  • FIG. 6 is a schematic structural diagram of a content sharing apparatus according to an embodiment of the present application. As shown in FIG. 6 , the apparatus 600 includes:
  • the determining unit 601 is configured to determine the target content to be shared in the display interface of the first application
  • a hiding unit 602 configured to hide the display interface of the first application in response to the moving operation for the target content
  • the sharing unit 603 is configured to, in response to the end of the moving operation, share the target content to the first object if the end point of the moving operation corresponds to the first object.
  • the first object is a second application; the end point of the moving operation corresponds to the first object, including at least one of the following:
  • the end position of the moving operation is located at the position of the application icon of the second application
  • the end position of the moving operation is located in the display interface of the second application
  • the end position of the moving operation is located at the shortcut identification position of the second application
  • the end position of the moving operation is located at the position of the shortcut launch bar of the second application.
  • the first object is a display object in the second application interface
  • the end point of the moving operation corresponds to the first object, including: the position of the end point of the moving operation is located at the position where the display object is located;
  • the sharing unit 603 includes:
  • the first sharing module is configured to, in response to the end of the moving operation, share the target content to the target corresponding to the display object if the end position of the moving operation is located at the position where the display object is located.
  • the second application includes a communication application, and the display object includes a contact identifier
  • the first sharing module includes:
  • a first sharing component configured to, in response to the end of the moving operation, share the target content to the contact corresponding to the contact identification if the end position of the moving operation is located at the position where the contact identification is located .
  • the contact identifier includes at least one of the following: a contact avatar, a contact number, a contact conversation list item, or a contact conversation page.
  • the second application includes a file management application, and the display object includes a folder identifier;
  • the first sharing module includes:
  • the second sharing component is configured to, in response to the end of the moving operation, save the target content to the path where the folder is located if the end position of the moving operation is located at the location where the folder identifier is located.
  • the second application includes a document editing application
  • the sharing unit 603 includes:
  • the second sharing module is configured to, in response to the end of the moving operation, if the end point of the moving operation corresponds to the document editing application, save the target content to a file in a format corresponding to the document editing application .
  • the apparatus further includes:
  • a cancel display unit configured to display a preset functional area on a specific position of the display screen in response to a moving operation for the target content; wherein the preset functional area is used to cancel sharing;
  • a canceling unit configured to cancel the sharing of the target content in response to the end of the moving operation, if the end position of the moving operation is within the preset functional area.
  • the apparatus further includes:
  • a redisplay unit configured to redisplay the display interface of the first application after the sharing ends
  • the display interface of the first application is redisplayed.
  • the determining unit 601 includes:
  • a first determining module configured to acquire a pressing operation on the display interface of the first application; if the duration of the pressing operation exceeds a preset duration, determine the target content to be shared; or, if the pressing operation continues When the number of presses exceeds the preset number, the target content to be shared is determined;
  • the hidden unit 602 includes:
  • the hiding module is configured to hide the display interface of the first application in response to the moving operation for the target content, if the moving distance of the moving operation is greater than or equal to a preset distance.
  • the apparatus further includes:
  • a cancellation processing unit configured to cancel the sharing of the target content in response to the end of the moving operation, if the end position of the moving operation is located at the title bar position of the electronic device;
  • the display interface of the first application is displayed on the display screen of the electronic device in the form of a floating window
  • the display interface of the first application is displayed on the display screen of the electronic device in a manner of reducing the window in a specific proportion.
  • the embodiments of the present application if the above-mentioned content sharing method is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
  • the computer software products are stored in a storage medium and include several instructions for An electronic device (which may be a personal computer, a server, etc.) is caused to execute all or part of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, ROM (Read Only Memory, read-only memory), magnetic disk or optical disk and other media that can store program codes.
  • the embodiments of the present application are not limited to any specific combination of hardware and software.
  • an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program that can be run on the processor, and when the processor executes the program, the computer program provided in the foregoing embodiments is implemented. Steps in the content sharing method.
  • an embodiment of the present application provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the above content sharing method.
  • FIG. 7 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application.
  • the hardware entity of the electronic device 700 includes: a processor 701 , a communication interface 702 and a memory 703 , wherein
  • the processor 701 generally controls the overall operation of the electronic device 700 .
  • the communication interface 702 enables the electronic device 700 to communicate with other terminals or servers through a network.
  • the memory 703 is configured to store instructions and applications executable by the processor 701, and can also cache data to be processed or processed by the processor 701 and various modules in the electronic device 700 (for example, image data, audio data, voice communication data and Video communication data), which can be implemented by FLASH (flash memory) or RAM (Random Access Memory).
  • FLASH flash memory
  • RAM Random Access Memory
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
  • the unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may all be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented either in the form of hardware or in the form of hardware plus software functional units.
  • Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other media that can store program codes.

Abstract

Disclosed are a content sharing method and apparatus, and a device and a storage medium, wherein the method is applied to an electronic device having a display screen. The method comprises: in a display interface of a first application, determining target content to be shared; in response to a movement operation for the target content, hiding the display interface of the first application; and in response to the end of the movement operation, if the destination of the movement operation corresponds to a first object, sharing the target content with the first object.

Description

内容分享方法及装置、设备、存储介质Content sharing method and device, device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请基于申请号为202010625874.1、申请日为2020年07月01日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以全文引用的方式引入本申请。This application is based on the Chinese patent application with the application number of 202010625874.1 and the application date of July 1, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference into this application in its entirety. .
技术领域technical field
本申请实施例涉及电子技术,涉及但不限于一种内容分享方法及装置、设备、存储介质。The embodiments of the present application relate to electronic technologies, and relate to, but are not limited to, a content sharing method and apparatus, device, and storage medium.
背景技术Background technique
目前,电子设备(例如智能手机、平板电脑)受自身显示屏幕尺寸的限制,屏幕可显示的内容有限。通常,终端会将至少一个应用的显示界面显示在显示屏上,但在用户进行针对文件或者其他对象的移动过程中,应用的显示界面会对其他界面产生遮挡,造成用户不仅不能方便快捷地将目标对象移动到目标位置,还容易产生误操作,用户体验差。At present, electronic devices (such as smart phones and tablet computers) are limited by the size of their own display screens, and the contents that can be displayed on the screens are limited. Usually, the terminal will display the display interface of at least one application on the display screen, but when the user moves files or other objects, the display interface of the application will block other interfaces, which makes it impossible for the user to easily and quickly When the target object moves to the target position, misoperation is easy to occur, and the user experience is poor.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供一种内容分享方法及装置、设备、存储介质。In view of this, embodiments of the present application provide a content sharing method, device, device, and storage medium.
本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:
第一方面,本申请实施例提供一种内容分享方法,应用于具备显示屏的电子设备,所述方法包括:In a first aspect, an embodiment of the present application provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
在第一应用的显示界面中,确定待分享的目标内容;In the display interface of the first application, determine the target content to be shared;
响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;hiding the display interface of the first application in response to the moving operation for the target content;
响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象。In response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, the target content is shared to the first object.
第二方面,本申请实施例提供一种内容分享装置,所述装置包括:In a second aspect, an embodiment of the present application provides a content sharing device, the device comprising:
确定单元,配置为在第一应用的显示界面中,确定待分享的目标内容;a determining unit, configured to determine the target content to be shared in the display interface of the first application;
隐藏单元,配置为响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;a hiding unit, configured to hide the display interface of the first application in response to a moving operation for the target content;
分享单元,配置为响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象。The sharing unit is configured to, in response to the end of the moving operation, share the target content to the first object if the end point of the moving operation corresponds to the first object.
第三方面,本申请实施例提供一种电子设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述所述内容分享方法中的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory stores a computer program that can be run on the processor, and the processor implements the above-mentioned content sharing when the program is executed steps in the method.
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述所述内容分享方法中的步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the above-described content sharing method.
附图说明Description of drawings
图1为本申请实施例内容分享方法的实现流程示意图一;FIG. 1 is a schematic diagram 1 of a realization flow of a content sharing method according to an embodiment of the present application;
图2A为本申请实施例内容分享方法的实现流程示意图二;FIG. 2A is a second implementation flowchart of a content sharing method according to an embodiment of the present application;
图2B为本申请实施例内容分享方法的应用场景示意图一;FIG. 2B is a schematic diagram 1 of an application scenario of the content sharing method according to an embodiment of the present application;
图3A为本申请实施例内容分享方法的实现流程示意图三;FIG. 3A is a schematic diagram 3 of an implementation flow of a content sharing method according to an embodiment of the present application;
图3B为本申请实施例内容分享方法的应用场景示意图二;3B is a second schematic diagram of an application scenario of the content sharing method according to an embodiment of the present application;
图3C为本申请实施例内容分享方法的应用场景示意图三;3C is a schematic diagram 3 of an application scenario of the content sharing method according to an embodiment of the present application;
图4为本申请实施例内容分享方法的实现流程示意图四;FIG. 4 is a schematic diagram 4 of the implementation process of the content sharing method according to the embodiment of the present application;
图5为本申请实施例内容分享的界面操作示意图;5 is a schematic diagram of an interface operation for content sharing according to an embodiment of the present application;
图6为本申请实施例内容分享装置的组成结构示意图;6 is a schematic diagram of the composition and structure of a content sharing apparatus according to an embodiment of the present application;
图7为本申请实施例电子设备的一种硬件实体示意图。FIG. 7 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请的技术方案进一步详细阐述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be further elaborated below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by persons of ordinary skill in the art without creative work shall fall within the protection scope of the present application.
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" can be the same or a different subset of all possible embodiments, and Can be combined with each other without conflict.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本申请的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the following description, suffixes such as 'module', 'component' or 'unit' used to represent elements are used only to facilitate the description of the present application, and have no specific meaning per se. Thus, "module", "component" or "unit" may be used interchangeably.
需要指出,本申请实施例所涉及的术语“第一\第二\第三”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。It should be pointed out that the term "first\second\third" involved in the embodiments of the present application is only to distinguish similar objects, and does not represent a specific ordering of objects. It is understandable that "first\second\third" "Where permitted, the specific order or sequence may be interchanged to enable the embodiments of the application described herein to be practiced in sequences other than those illustrated or described herein.
本申请实施例提供一种内容分享方法,该方法应用于具备显示屏的电子设备,该方法所实现的功能可以通过所述电子设备中的处理器调用程序代码来实现,当然程序代码可以保存在所述电子设备的存储介质中。图1为本申请实施例内容分享方法的实现流程示意图一,如图1所示,所述方法包括:An embodiment of the present application provides a content sharing method. The method is applied to an electronic device with a display screen. The functions implemented by the method can be implemented by calling a program code by a processor in the electronic device. Of course, the program code can be stored in in the storage medium of the electronic device. FIG. 1 is a schematic diagram 1 of an implementation flow of a content sharing method according to an embodiment of the present application. As shown in FIG. 1 , the method includes:
步骤S101、在第一应用的显示界面中,确定待分享的目标内容;Step S101, in the display interface of the first application, determine the target content to be shared;
这里,第一应用的显示界面可以是第一应用的任一界面,例如,如果第一应用是通讯类应用,显示界面可以是联系人列表界面、聊天界面等;如果第一应用是文件管理类应用,显示界面可以是文件夹列表界面或者文件列表界面等, 对此本申请实施例不做具体限定。所述目标内容可以是显示界面内的任意内容。例如,如果显示界面是联系人列表界面,对应的目标内容可以是联系人名片。如果显示界面是聊天界面,对应的目标内容可以是聊天界面中存在的文件、图片、视频等信息。如果显示界面是文件夹列表界面,对应的目标内容可以是文件夹。Here, the display interface of the first application may be any interface of the first application. For example, if the first application is a communication application, the display interface may be a contact list interface, a chat interface, etc.; if the first application is a file management application In the application, the display interface may be a folder list interface or a file list interface, etc., which is not specifically limited in this embodiment of the present application. The target content may be any content in the display interface. For example, if the display interface is a contact list interface, the corresponding target content may be a contact card. If the display interface is a chat interface, the corresponding target content may be information such as files, pictures, and videos existing in the chat interface. If the display interface is a folder list interface, the corresponding target content may be a folder.
所述步骤S101、在第一应用的显示界面中,确定待分享的目标内容,可以通过以下方式实现:例如,所述显示屏为触摸屏,获取所述第一应用的显示界面上的按压操作;若所述按压操作的持续时长超过预设时长,确定待分享的目标内容;或者,若所述按压操作的连续按压次数超过预设数量,确定待分享的目标内容,其中所述按压操作为针对所述目标内容的按压操作。In the step S101, in the display interface of the first application, determining the target content to be shared may be implemented in the following manner: for example, the display screen is a touch screen, and the pressing operation on the display interface of the first application is obtained; If the duration of the pressing operation exceeds the preset duration, the target content to be shared is determined; or, if the number of consecutive pressings of the pressing operation exceeds the preset number, the target content to be shared is determined, wherein the pressing operation is for The pressing operation of the target content.
也就是说,可以通过按压选中的方式,来确定待分享的目标内容。并且,所述目标内容可以是多种多样的,例如,目标内容可以是文字、图片、视频、文件等。That is, the target content to be shared can be determined by pressing the selected method. Moreover, the target content may be various, for example, the target content may be text, pictures, videos, files, and the like.
这里,还可以通过虚拟按压操作,来确定待分享的目标内容。例如,鼠标模拟点击按压,隔空手势,VR(Virtual Reality,虚拟现实技术)操作等。举例来说,当用户在操作电子设备时,可以隔空进行选中操作,利用电子设备的摄像头获取用户在显示屏前的手势,进而通过算法识别出手势的形状、位置等信息,来确定待分享的目标内容。当然,也可以利用VR技术创建一个计算机仿真系统,生成一种模拟环境,将电子设备等物体都通过三维模型表现出来,让用户在所述三维模型中确定待分享的目标内容。Here, the target content to be shared may also be determined through a virtual pressing operation. For example, the mouse simulates clicks and presses, air gestures, VR (Virtual Reality, virtual reality technology) operations, etc. For example, when a user is operating an electronic device, he can perform a selection operation in the air, and use the camera of the electronic device to obtain the user's gesture in front of the display screen, and then use an algorithm to identify the shape, position and other information of the gesture to determine the information to be shared. target content. Of course, VR technology can also be used to create a computer simulation system, to generate a simulation environment, and to express objects such as electronic equipment through a three-dimensional model, so that the user can determine the target content to be shared in the three-dimensional model.
这里,所述电子设备可以为各种类型的具有信息处理能力的设备,例如手机、PDA(Personal Digital Assistant,个人数字助理)、导航仪、数字电话、视频电话、智能手表、智能手环、可穿戴设备、平板电脑、一体机等。Here, the electronic device can be various types of devices with information processing capabilities, such as mobile phones, PDAs (Personal Digital Assistants, personal digital assistants), navigators, digital phones, video phones, smart watches, smart bracelets, Wearable devices, tablets, all-in-one computers, etc.
步骤S102、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S102, hiding the display interface of the first application in response to the moving operation for the target content;
这里,所述步骤S102、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面,可以通过以下方式实现:响应于针对所述目标内容的移动操作,若所述移动操作的移动距离大于等于预设距离,隐藏所述第一应用的显示界面。Here, in the step S102, in response to the moving operation on the target content, hiding the display interface of the first application can be implemented in the following manner: in response to the moving operation on the target content, if the moving operation The moving distance is greater than or equal to the preset distance, and the display interface of the first application is hidden.
本申请实施例中,所述移动操作是使所述目标内容在显示屏上移动的操作。对应地,所述响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面,可以是只要发生移动操作就隐藏所述第一应用的显示界面。也可以是所述移动操作具有一定移动距离后,再隐藏所述第一应用的显示界面。例如,当移动到所述第一应用的显示界面外再隐藏所述第一应用的显示界面。In this embodiment of the present application, the moving operation is an operation of moving the target content on the display screen. Correspondingly, the hiding of the display interface of the first application in response to the moving operation on the target content may be hiding the display interface of the first application as long as a moving operation occurs. It is also possible to hide the display interface of the first application after the moving operation has a certain moving distance. For example, when moving outside the display interface of the first application, hide the display interface of the first application.
当然,可以有多种方式实现隐藏。例如,通过软件控制取消所述第一应用界面的显示,也可以通过将界面设置为透明的方式来实现隐藏。Of course, hiding can be achieved in a number of ways. For example, the display of the first application interface can be cancelled through software control, or the interface can be hidden by setting the interface to be transparent.
需要说明的是,本申请实施例对所述第一应用显示界面的隐藏方式并不做限制,只要在针对所述目标内容的移动操作后,隐藏所述第一应用的显示界面,均在本申请的保护范围内。It should be noted that the embodiment of the present application does not limit the way of hiding the display interface of the first application, as long as the display interface of the first application is hidden after the moving operation for the target content within the protection scope of the application.
步骤S103、响应于所述移动操作的结束,若所述移动操作的终点与第一对 象对应,则将所述目标内容分享至所述第一对象。Step S103: In response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object.
这里,若所述显示屏为触摸屏,且所述移动操作为在所述触摸屏上的触摸移动操作,则所述移动操作的结束可以是在一定时间内所述移动操作在所述触摸屏上的位移未发生变化。或者,所述移动操作的结束还可以是移动一定距离后所做出的抬起操作,对应地,所述移动操作的终点可以是所述抬起操作对应的坐标点位置。或者,所述移动操作还可以为在电子设备的显示屏前的隔空手势移动操作,则所述移动操作的结束可以是在一定时间内,所述移动操作在所述显示屏前达到一定范围内的静止,或所述移动操作在移动一定距离后出现了移动操作结束手势。例如,当在显示屏前移动一定距离后用户做出张开手掌的手势,则代表移动操作结束,张开手掌的手势对应在显示屏中的位置,即为隔空手势移动操作的终点。Here, if the display screen is a touch screen and the moving operation is a touch moving operation on the touch screen, the end of the moving operation may be the displacement of the moving operation on the touch screen within a certain period of time Nothing has changed. Alternatively, the end of the moving operation may also be a lifting operation performed after moving a certain distance, and correspondingly, the end point of the moving operation may be a coordinate point position corresponding to the lifting operation. Alternatively, the moving operation may also be an air gesture moving operation in front of the display screen of the electronic device, and the end of the moving operation may be that the moving operation reaches a certain range in front of the display screen within a certain period of time. still, or the movement operation end gesture occurs after the movement operation moves a certain distance. For example, when the user makes a gesture of opening the palm after moving a certain distance in front of the display screen, it means that the moving operation is over.
本申请实施例中,所述移动操作的终点与第一对象对应,可以是所述移动操作的终点位于所述第一对象相关的区域内。例如,当所述第一对象为文档编辑APP(Application,软件应用)时,所述移动操作的终点与第一对象对应指的是所述移动操作的终点位于所述文档编辑APP的编辑区域内。又如,当所述第一对象为微信聊天显示界面内的一个聊天列表时,所述移动操作的终点与第一对象对应指的是所述移动操作的终点位于所述聊天列表上。In this embodiment of the present application, the end point of the moving operation corresponds to the first object, and it may be that the end point of the moving operation is located in an area related to the first object. For example, when the first object is a document editing APP (Application, software application), the end point of the moving operation corresponding to the first object means that the end point of the moving operation is located in the editing area of the document editing APP . For another example, when the first object is a chat list in the WeChat chat display interface, the correspondence between the end point of the movement operation and the first object means that the end point of the movement operation is located on the chat list.
在一些实施例中,所述方法还包括:在将所述目标内容分享至所述第一对象后,重新显示所述第一应用的显示界面。In some embodiments, the method further includes: after the target content is shared to the first object, redisplaying the display interface of the first application.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应于所述移动操作的结束,若所述移动操作的终点位置位于所述电子设备的标题栏位置,则取消分享所述目标内容;In response to the end of the moving operation, if the end position of the moving operation is located at the title bar position of the electronic device, cancel the sharing of the target content;
或者,响应于所述移动操作的结束,若所述移动操作的终点位置超出所述电子设备的显示屏边界位置,则取消分享所述目标内容。Or, in response to the end of the moving operation, if the end position of the moving operation exceeds the boundary position of the display screen of the electronic device, the sharing of the target content is canceled.
本申请实施例中,通过在第一应用的显示界面中,确定待分享的目标内容;响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象,如此,能够快速、准确的进行内容分享,从而避免误触碰操作。In the embodiment of the present application, the target content to be shared is determined in the display interface of the first application; the display interface of the first application is hidden in response to the moving operation for the target content; the display interface of the first application is hidden in response to the moving operation After the end of the moving operation, if the end point of the moving operation corresponds to the first object, the target content will be shared with the first object. In this way, content sharing can be performed quickly and accurately, thereby avoiding accidental touch operations.
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,图2A为本申请实施例内容分享方法的实现流程示意图二,如图2A所示,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen. FIG. 2A is a schematic diagram 2 of the implementation flow of the content sharing method according to the embodiment of the present application. As shown in FIG. 2A , the The methods described include:
步骤S201、在第一应用的显示界面中,确定待分享的目标内容;Step S201, in the display interface of the first application, determine the target content to be shared;
步骤S202、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S202, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S203、响应于所述移动操作的结束,若所述移动操作的终点与第二应用对应,则将所述目标内容分享至所述第二应用。Step S203: In response to the end of the moving operation, if the end point of the moving operation corresponds to the second application, share the target content to the second application.
举例来说,当所述第二应用为文档编辑应用时,若所述移动操作的终点位于所述文档编辑应用的快捷方式标识位置,则可以弹出选择提示框,将用户已 打开的全部文档名称显示出来,让用户选择需要分享的目标文档,当用户选中其中一个文档后,所述待分享的目标内容就分享至用户选中的目标文档中。又或者,如果当前没有打开的文档,则电子设备可以打开所述文档编辑应用并新建一个文档来记录所述目标内容。For example, when the second application is a document editing application, if the end point of the moving operation is located at the location of the shortcut identifier of the document editing application, a selection prompt box may pop up to display the names of all documents opened by the user. displayed, allowing the user to select the target document to be shared, and after the user selects one of the documents, the target content to be shared is shared to the target document selected by the user. Alternatively, if there is currently no open document, the electronic device may open the document editing application and create a new document to record the target content.
本申请实施例中,所述移动操作的终点与第二应用对应,包括以下几种中的至少一种:In this embodiment of the present application, the end point of the moving operation corresponds to the second application, and includes at least one of the following:
所述移动操作的终点位置位于所述第二应用的应用图标位置;The end position of the moving operation is located at the position of the application icon of the second application;
所述移动操作的终点位置位于所述第二应用的显示界面内;The end position of the moving operation is located in the display interface of the second application;
所述移动操作的终点位置位于所述第二应用的快捷方式标识位置;The end position of the moving operation is located at the shortcut identification position of the second application;
或者,所述移动操作的终点位置位于所述第二应用的快捷启动栏位置。Alternatively, the end position of the moving operation is located at the position of the shortcut launch bar of the second application.
这里,所述第二应用可以是系统应用,例如相机图库。所述第二应用也可以是第三方应用,例如微信。举例来说,所述第二应用为相机图库,当用户选中目标内容并开始移动时,隐藏所述目标内容对应的第一应用,若继续移动到所述相机图库的图标位置且用户做抬起操作,则将待分享的目标内容分享至所述相机图库中。又如,所述第二应用为相机图库且所述相机图库呈打开状态,当用户选中目标内容开始移动,且移动出所述第一应用的显示界面边界时,隐藏所述第一应用,若继续移动到所述相机图库显示界面内的一个文件夹上且用户做抬起操作,则将所述目标内容分享至所述文件夹中。Here, the second application may be a system application, such as a camera gallery. The second application may also be a third-party application, such as WeChat. For example, the second application is a camera gallery. When the user selects the target content and starts to move, the first application corresponding to the target content is hidden. If the user continues to move to the icon position of the camera gallery and the user lifts operation, the target content to be shared is shared to the camera gallery. For another example, the second application is a camera gallery and the camera gallery is in an open state. When the user selects the target content and starts to move, and moves out of the display interface boundary of the first application, the first application is hidden. Continue to move to a folder in the camera gallery display interface and the user performs a lift operation, then the target content is shared to the folder.
本申请实施例中,所述第一应用的显示界面可以显示在所述第二应用的显示界面上。并且,对于不同的操作系统,所述第一应用的显示界面可以以不同的方式显示在所述第二应用的显示界面上。例如,当所述电子设备为Android(安卓)操作系统时,所述第一应用的显示界面可以是以悬浮窗的方式显示在所述第二应用的显示界面上。当所述电子设备为Windows操作系统(微软公司研发的一套操作系统)时,所述第一应用的显示界面即可以是以悬浮窗的方式显示在所述第二应用的显示界面上,也可以是以特定比例缩小窗口的方式显示在所述第二应用的显示界面上。In this embodiment of the present application, the display interface of the first application may be displayed on the display interface of the second application. Moreover, for different operating systems, the display interface of the first application may be displayed on the display interface of the second application in different ways. For example, when the electronic device is an Android (Android) operating system, the display interface of the first application may be displayed on the display interface of the second application in the form of a floating window. When the electronic device is a Windows operating system (a set of operating systems developed by Microsoft), the display interface of the first application may be displayed on the display interface of the second application in the form of a floating window, or It may be displayed on the display interface of the second application in a manner of reducing the window in a specific proportion.
这里,所述第一应用以特定比例缩小窗口的方式显示在第二应用的显示界面上,指的是所述第一应用并不是全屏显示,而是将显示界面按特定比例进行缩小,将缩小后的显示界面显示在所述第二应用的显示界面上。Here, the first application is displayed on the display interface of the second application by reducing the window by a specific proportion, which means that the first application is not displayed in full screen, but the display interface is reduced by a specific proportion, and the reduced The latter display interface is displayed on the display interface of the second application.
在一些实施例中,所述方法还包括:在将所述目标内容分享至所述第二应用后,重新显示所述第一应用的显示界面。In some embodiments, the method further includes: after the target content is shared to the second application, redisplaying the display interface of the first application.
本申请实施例中,通过在第一应用的显示界面中,确定待分享的目标内容;响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;响应于所述移动操作的结束,若所述移动操作的终点与第二应用对应,则将所述目标内容分享至所述第二应用,如此,能够快速、准确的将第一应用中待分享的目标内容分享至所述第二应用中。In the embodiment of the present application, the target content to be shared is determined in the display interface of the first application; the display interface of the first application is hidden in response to the moving operation for the target content; the display interface of the first application is hidden in response to the moving operation end, if the end point of the moving operation corresponds to the second application, the target content is shared to the second application, so that the target content to be shared in the first application can be quickly and accurately shared to all in the second application.
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
步骤S211、在第一应用的显示界面中,确定待分享的目标内容;Step S211, in the display interface of the first application, determine the target content to be shared;
步骤S212、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S212, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S213、响应于所述移动操作的结束,若所述移动操作的终点与第二应用对应,则将所述目标内容分享至所述第二应用;Step S213, in response to the end of the moving operation, if the end point of the moving operation corresponds to the second application, share the target content to the second application;
步骤S214、所述第二应用包括文档编辑类应用;对应地,所述将所述目标内容分享至所述第一对象,包括:将所述目标内容保存至所述文档编辑类应用对应格式的文件中。Step S214, the second application includes a document editing application; correspondingly, the sharing the target content to the first object includes: saving the target content to a format corresponding to the document editing application. in the file.
在一些实施例中,所述方法还包括:在将所述目标内容保存至所述文档编辑类应用对应格式的文件中后,重新显示所述第一应用的显示界面。In some embodiments, the method further includes: redisplaying the display interface of the first application after saving the target content to a file in a format corresponding to the document editing application.
举例来说,所述第一应用为相机图库,所述待分享的目标内容为图片。若用户选中所述图片并做拖拽操作,则隐藏所述相机图库的显示界面。当用户将所述图片拖拽至一个打开的文档编辑类应用对应格式的文件中时,将所述图片分享至所述文档编辑类应用对应格式的文件中。并且,在分享完毕后,重新显示所述相机图库的显示界面。For example, the first application is a camera gallery, and the target content to be shared is a picture. If the user selects the picture and performs a drag and drop operation, the display interface of the camera gallery is hidden. When the user drags and drops the picture to a file of the corresponding format of an open document editing application, the picture is shared to the file of the corresponding format of the document editing application. And, after the sharing is completed, the display interface of the camera gallery is redisplayed.
图2B为本申请实施例内容分享方法的应用场景示意图一,如图2B所示,在图片20中,电子设备的显示屏上显示有第一应用24和第二应用23,并且所述第二应用23为文档编辑类应用,用户通过触摸按压操作确定出了第一应用24中的目标内容25。如此,用户可以对选中的目标内容25进行移动操作,此时,响应于所述移动操作隐藏所述第一应用24的显示界面,隐藏后的界面如图片21所示。当所述移动操作的终点位置位于所述第二应用23的显示界面内,并且用户做抬起操作时,将所述目标内容25分享给所述第二应用23,同时重新显示所述第一应用24的显示界面,分享完成后的界面如图片22所示。FIG. 2B is a schematic diagram 1 of an application scenario of the content sharing method according to an embodiment of the present application. As shown in FIG. 2B , in the picture 20, a first application 24 and a second application 23 are displayed on the display screen of the electronic device, and the second application 24 is displayed on the display screen of the electronic device. The application 23 is a document editing application, and the user determines the target content 25 in the first application 24 through a touch and press operation. In this way, the user can perform a moving operation on the selected target content 25 . At this time, in response to the moving operation, the display interface of the first application 24 is hidden, and the hidden interface is shown in the picture 21 . When the end position of the moving operation is located in the display interface of the second application 23, and the user performs a lifting operation, the target content 25 is shared with the second application 23, and the first application 23 is redisplayed at the same time. The display interface of the application 24, and the interface after the sharing is completed is as shown in the picture 22.
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,图3A为本申请实施例内容分享方法的实现流程示意图三,如图3A所示,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen. FIG. 3A is a schematic diagram 3 of the implementation process of the content sharing method according to the embodiment of the present application. As shown in FIG. 3A , the The methods described include:
步骤S301、在第一应用的显示界面中,确定待分享的目标内容;Step S301, in the display interface of the first application, determine the target content to be shared;
步骤S302、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S302, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S303、响应于所述移动操作的结束,若所述移动操作的终点位置位于第二应用界面内的一个显示对象所在的位置,则将所述目标内容分享至所述显示对象对应的目标。Step S303: In response to the end of the moving operation, if the end position of the moving operation is located at the position of a display object in the second application interface, share the target content to the target corresponding to the display object.
在一些实施例中,所述方法还包括:在将所述目标内容分享至所述显示对象对应的目标后,重新显示所述第一应用的显示界面。In some embodiments, the method further includes: after the target content is shared to the target corresponding to the display object, redisplaying the display interface of the first application.
本申请实施例中,通过在第一应用的显示界面中,确定待分享的目标内容;响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;响应于所述移动操作的结束,若所述移动操作的终点位置位于第二应用界面内的一个显示对象所在的位置,则将所述目标内容分享至所述显示对象对应的目标,如此,能够快速、准确的将所述第一应用中待分享的目标内容分享至所述第二应用界面内的一个显示对象对应的目标中。In the embodiment of the present application, the target content to be shared is determined in the display interface of the first application; the display interface of the first application is hidden in response to the moving operation for the target content; the display interface of the first application is hidden in response to the moving operation end, if the end position of the moving operation is located at the position of a display object in the second application interface, then the target content is shared to the target corresponding to the display object, so that the target content can be quickly and accurately The target content to be shared in the first application is shared to a target corresponding to a display object in the second application interface.
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
步骤S311、在第一应用的显示界面中,确定待分享的目标内容;Step S311, in the display interface of the first application, determine the target content to be shared;
步骤S312、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S312, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S313、响应于所述移动操作的结束,若所述移动操作的终点位置位于第二应用界面内的一个显示对象所在的位置,则将所述目标内容分享至所述显示对象对应的目标。Step S313: In response to the end of the moving operation, if the end position of the moving operation is located at the position of a display object in the second application interface, share the target content to the target corresponding to the display object.
步骤S314、所述第二应用包括通讯类应用,所述显示对象包括联系人标识;对应地,所述将所述目标内容分享至所述显示对象对应的目标,包括:将所述目标内容分享至所述联系人标识对应的联系人。Step S314, the second application includes a communication application, and the display object includes a contact identifier; correspondingly, the sharing the target content to the target corresponding to the display object includes: sharing the target content to the contact corresponding to the contact identifier.
本申请实施例中,所述联系人标识包括以下几种中的至少一种:联系人头像、联系人号码、联系人对话列表项、或者联系人对话页。In this embodiment of the present application, the contact identifier includes at least one of the following: a contact avatar, a contact number, a contact conversation list item, or a contact conversation page.
在一些实施例中,所述方法还包括:在将所述目标内容分享至所述联系人标识对应的联系人后,重新显示所述第一应用的显示界面。In some embodiments, the method further includes: redisplaying the display interface of the first application after the target content is shared to the contact corresponding to the contact identifier.
举例来说,所述第一应用为文件管理APP,所述待分享的目标内容为一个文件夹(包括文件夹内的文件),所述通讯类应用为微信,所述显示对象为聊天界面内的一个聊天列表。若用户选中所述文件夹并做拖拽操作,则隐藏所述文件管理APP的显示界面。当用户将所述文件夹拖拽至所述聊天列表上时,将所述文件夹(包括文件夹内的文件)分享给所述聊天列表对应的联系人。并且,在分享完毕后,重新显示所述文件管理APP的显示界面。For example, the first application is a file management APP, the target content to be shared is a folder (including files in the folder), the communication application is WeChat, and the display object is a chat interface a chat list for . If the user selects the folder and performs a drag and drop operation, the display interface of the file management APP is hidden. When the user drags the folder onto the chat list, the folder (including the files in the folder) is shared with the contacts corresponding to the chat list. And, after the sharing is completed, the display interface of the file management APP is redisplayed.
图3B为本申请实施例内容分享方法的应用场景示意图二,如图3B所示,在图片30中,电子设备的显示屏上显示有第一应用34和第二应用33,且所述第二应用33为通讯类应用,用户通过触摸按压操作确定出了第一应用34中的目标内容35。如此,用户可以对选中的目标内容35进行移动操作。此时,响应于所述移动操作隐藏所述第一应用34的显示界面,隐藏后的界面如图片31所示。当所述移动操作的终点位置位于所述第二应用33内的一个联系人标识36所在的位置并且用户做抬起操作时,将所述目标内容35分享至所述联系人标识36对应的联系人,同时重新显示所述第一应用34的显示界面,分享完成后的界面如图片32所示。FIG. 3B is a second schematic diagram of an application scenario of the content sharing method according to an embodiment of the present application. As shown in FIG. 3B , in the picture 30 , a first application 34 and a second application 33 are displayed on the display screen of the electronic device, and the second application 34 is displayed on the display screen of the electronic device. The application 33 is a communication application, and the user determines the target content 35 in the first application 34 through a touch and press operation. In this way, the user can move the selected target content 35 . At this time, the display interface of the first application 34 is hidden in response to the moving operation, and the hidden interface is shown in the picture 31 . When the end position of the moving operation is located at the position of a contact identifier 36 in the second application 33 and the user performs a lift operation, the target content 35 is shared to the contact corresponding to the contact identifier 36 At the same time, the display interface of the first application 34 is displayed again, and the interface after the sharing is completed is as shown in the picture 32 .
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
步骤S321、在第一应用的显示界面中,确定待分享的目标内容;Step S321, in the display interface of the first application, determine the target content to be shared;
步骤S322、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S322, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S323、响应于所述移动操作的结束,若所述移动操作的终点位置位于第二应用界面内的一个显示对象所在的位置,则将所述目标内容分享至所述显示对象对应的目标。Step S323: In response to the end of the moving operation, if the end position of the moving operation is located at the position of a display object in the second application interface, share the target content to the target corresponding to the display object.
步骤S324、所述第二应用包括文件管理类应用,所述显示对象包括文件夹标识;对应地,所述将所述目标内容分享至所述显示对象对应的目标,包括:将所述目标内容保存至所述文件夹所在的路径。Step S324, the second application includes a file management application, and the display object includes a folder identifier; correspondingly, the sharing the target content to the target corresponding to the display object includes: sharing the target content Save to the path where the folder is located.
在一些实施例中,所述方法还包括:在将所述目标内容保存至所述文件夹所在的路径后,重新显示所述第一应用的显示界面。In some embodiments, the method further includes: after saving the target content to the path where the folder is located, redisplaying the display interface of the first application.
举例来说,所述第一应用为微信,所述待分享的目标内容为一个聊天界面内用户接收的视频。若用户选中接收到的视频并做拖拽操作,则隐藏所述微信的显示界面。当用户将所述视频拖拽至所述文件管理类应用中的一个文件夹上时,将所述视频保存至所述文件夹所在的路径下,并在保存结束后,重新显示所述微信的聊天界面。For example, the first application is WeChat, and the target content to be shared is a video received by a user in a chat interface. If the user selects the received video and performs a drag and drop operation, the display interface of the WeChat is hidden. When the user drags and drops the video to a folder in the file management application, the video is saved to the path where the folder is located, and after the saving is completed, the WeChat account is displayed again. chat interface.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
响应于所述移动操作的结束,若所述移动操作的终点位置位于所述电子设备的标题栏位置,则取消分享所述目标内容;In response to the end of the moving operation, if the end position of the moving operation is located at the title bar position of the electronic device, cancel the sharing of the target content;
或者,响应于所述移动操作的结束,若所述移动操作的终点位置超出所述电子设备的显示屏边界位置,则取消分享所述目标内容。Or, in response to the end of the moving operation, if the end position of the moving operation exceeds the boundary position of the display screen of the electronic device, the sharing of the target content is canceled.
图3C为本申请实施例内容分享方法的应用场景示意图三,如图3C所示,在图片30中,电子设备的显示屏上显示有第一应用34和第二应用33,且所述第二应用33为文件管理类应用,用户通过触摸按压操作确定出了第一应用34中的目标内容35。如此,用户可以对选中的所述目标内容35进行移动操作。此时,响应于所述移动操作隐藏所述第一应用34的显示界面,隐藏后的界面如图片31所示。当所述移动操作的终点位置位于所述第二应用33内的一个文件夹标识36所在的位置且用户做抬起操作时,将所述目标内容35保存至所述文件夹标识36所在的路径下,同时重新显示所述第一应用34的显示界面,分享完成后的界面如图片32所示。3C is a schematic diagram of a third application scenario of the content sharing method according to an embodiment of the present application. As shown in FIG. 3C , in the picture 30 , a first application 34 and a second application 33 are displayed on the display screen of the electronic device, and the second application 34 is displayed on the display screen of the electronic device. The application 33 is a file management application, and the user determines the target content 35 in the first application 34 through a touch and press operation. In this way, the user can move the selected target content 35 . At this time, the display interface of the first application 34 is hidden in response to the moving operation, and the hidden interface is shown in the picture 31 . When the end position of the moving operation is located at the position of a folder identifier 36 in the second application 33 and the user performs a lift operation, the target content 35 is saved to the path where the folder identifier 36 is located Next, the display interface of the first application 34 is redisplayed at the same time, and the interface after the sharing is completed is as shown in the picture 32 .
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,图4为本申请实施例内容分享方法的实现流程示意图四,如图4所示,所述方法包括:Based on the foregoing embodiments, the embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen. The methods described include:
步骤S401、在第一应用的显示界面中,确定待分享的目标内容;Step S401, in the display interface of the first application, determine the target content to be shared;
步骤S402、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S402, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S403、响应于针对所述目标内容的移动操作,在所述显示屏的特定位置上显示预设功能区域;其中,所述预设功能区域用于取消分享;Step S403, displaying a preset functional area on a specific position of the display screen in response to the moving operation for the target content; wherein, the preset functional area is used to cancel sharing;
需要说明的是,本申请实施例中对所述步骤S402和所述步骤S403的执行顺序并不做具体限制。也就是说,响应于针对所述目标内容的移动操作,可以先隐藏所述第一应用的显示界面,然后再在所述显示屏的特定位置上显示预设功能区域。也可以先在所述显示屏的特定位置上显示预设功能区域,再隐藏所述第一应用的显示界面。It should be noted that, in this embodiment of the present application, the execution order of the step S402 and the step S403 is not specifically limited. That is, in response to the moving operation for the target content, the display interface of the first application may be hidden first, and then a preset function area is displayed on a specific position of the display screen. It is also possible to first display a preset function area on a specific position of the display screen, and then hide the display interface of the first application.
步骤S404、响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象;Step S404, in response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object;
步骤S405、响应于所述移动操作的结束,若所述移动操作的终点位置位于所述预设功能区域内,则取消分享所述目标内容。Step S405: In response to the end of the moving operation, if the end position of the moving operation is located within the preset functional area, cancel the sharing of the target content.
这里,可以对用户移动操作的终点位置进行判断,若所述移动操作的终点与所述第一对象对应,则进行内容分享。若所述移动操作的终点位置位于所述预设功能区域内,则取消分享。Here, the position of the end point of the user's movement operation may be determined, and if the end point of the movement operation corresponds to the first object, content sharing is performed. If the end position of the moving operation is within the preset function area, the sharing is canceled.
本申请实施例中,通过在第一应用的显示界面中,确定待分享的目标内容;响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;响应于针对所述目标内容的移动操作,在所述显示屏的特定位置上显示预设功能区域;其中,所述预设功能区域用于取消分享;响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象;响应于所述移动操作的结束,若所述移动操作的终点位置位于所述预设功能区域内,则取消分享所述目标内容,如此,能够快速、准确的进行内容分享和取消内容分享,从而避免误触碰操作。In the embodiment of the present application, the target content to be shared is determined in the display interface of the first application; the display interface of the first application is hidden in response to the moving operation for the target content; Content moving operation, displaying a preset function area on a specific position of the display screen; wherein, the preset function area is used to cancel sharing; in response to the end of the moving operation, if the end point of the moving operation is the same as the corresponding to the first object, the target content is shared to the first object; in response to the end of the moving operation, if the end position of the moving operation is within the preset function area, the sharing of the Target content, in this way, content sharing and cancellation of content sharing can be performed quickly and accurately, thereby avoiding accidental touch operations.
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
步骤S411、在第一应用的显示界面中,确定待分享的目标内容;Step S411, in the display interface of the first application, determine the target content to be shared;
步骤S412、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S412, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S413、响应于针对所述目标内容的移动操作,在所述显示屏的特定位置上显示预设功能区域;其中,所述预设功能区域用于取消分享;Step S413, displaying a preset functional area on a specific position of the display screen in response to the moving operation for the target content; wherein, the preset functional area is used to cancel sharing;
步骤S414、响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象;Step S414, in response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object;
步骤S415、响应于所述移动操作的结束,若所述移动操作的终点位置位于所述预设功能区域内,则取消分享所述目标内容;Step S415, in response to the end of the moving operation, if the end position of the moving operation is located within the preset functional area, cancel the sharing of the target content;
步骤S416、在分享结束后,重新显示所述第一应用的显示界面;或者,在取消分享结束后,重新显示所述第一应用的显示界面。Step S416: Redisplay the display interface of the first application after the sharing ends; or redisplay the display interface of the first application after canceling the sharing.
这里,无论是将所述目标内容分享至所述第一对象还是取消分享所述目标内容,在结束后都重新显示所述第一应用的显示界面。Here, regardless of whether to share the target content to the first object or cancel the sharing of the target content, the display interface of the first application is redisplayed after the end.
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
步骤S421、在第一应用的显示界面中,确定待分享的目标内容;Step S421, in the display interface of the first application, determine the target content to be shared;
步骤S422、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S422, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S423、响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象;Step S423, in response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object;
步骤S424、响应于所述移动操作的结束,若所述移动操作的终点位置位于所述电子设备的标题栏位置,则取消分享所述目标内容;或者,响应于所述移动操作的结束,若所述移动操作的终点位置超出所述电子设备的显示屏边界位 置,则取消分享所述目标内容;Step S424, in response to the end of the moving operation, if the end position of the moving operation is located at the title bar position of the electronic device, cancel the sharing of the target content; or, in response to the end of the moving operation, if If the end position of the moving operation exceeds the boundary position of the display screen of the electronic device, the sharing of the target content is canceled;
步骤S425、在分享结束后,重新显示所述第一应用的显示界面;或者,在取消分享结束后,重新显示所述第一应用的显示界面。Step S425: Redisplay the display interface of the first application after the sharing ends; or redisplay the display interface of the first application after canceling the sharing.
基于前述的实施例,本申请实施例再提供一种内容分享方法,应用于具备显示屏的电子设备,所述方法包括:Based on the foregoing embodiments, an embodiment of the present application further provides a content sharing method, which is applied to an electronic device with a display screen, and the method includes:
步骤S431、所述第一应用的显示界面以悬浮窗的方式显示在所述电子设备的显示屏上;或者,所述第一应用的显示界面以特定比例缩小窗口的方式显示在所述电子设备的显示屏上;Step S431, the display interface of the first application is displayed on the display screen of the electronic device in the form of a floating window; or, the display interface of the first application is displayed on the electronic device in the form of a window reduced by a specific ratio on the display;
步骤S432、在第一应用的显示界面中,确定待分享的目标内容;Step S432, in the display interface of the first application, determine the target content to be shared;
步骤S433、响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;Step S433, hiding the display interface of the first application in response to the moving operation for the target content;
步骤S434、响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象。Step S434: In response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, share the target content to the first object.
基于前述的实施例,本申请实施例提供一种内容分享的界面操作,图5为本申请实施例内容分享的界面操作示意图,如图5所示:Based on the foregoing embodiments, an embodiment of the present application provides an interface operation for content sharing. FIG. 5 is a schematic diagram of an interface operation for content sharing according to the embodiment of the present application, as shown in FIG. 5 :
如图5中的(5a)所示,图片51中,电子设备的显示界面上显示有第一应用501和第二应用502,所述第一应用501以悬浮窗的方式显示在所述第二应用502的显示界面上。As shown in (5a) of Figure 5, in Figure 51, a first application 501 and a second application 502 are displayed on the display interface of the electronic device, and the first application 501 is displayed on the second application in the form of a floating window. on the display interface of the application 502 .
当用户在图片51的待分享文件上持续长按一定时间,或者连续按压两次后,所述显示界面变为图片52所示的界面,此时选中的待分享文件呈凸起状态显示。When the user continuously presses the file to be shared in the picture 51 for a certain period of time, or after pressing twice in a row, the display interface changes to the interface shown in the picture 52, and the selected file to be shared is displayed in a raised state.
如图5中的(5b)所示,进而在长按触发拖动操作后,对用户的拖动操作进行判断:当用户拖动超过一定距离,如图片53所示的界面,将所述第一应用501的悬浮窗隐藏起来,同时在显示屏特定位置(如显示屏的右下角)增加一个热区503。如此,用户可以完整地看到所述第二应用502的页面布局,方便用户随便拖拽和定位。并且,所述热区503不会遮挡所述第二应用502的主要内容。As shown in (5b) in Figure 5, after the drag operation is triggered by a long press, the user's drag operation is judged: when the user drags more than a certain distance, as shown in the interface shown in Figure 53, the first The floating window of an application 501 is hidden, and a hot area 503 is added at a specific position of the display screen (eg, the lower right corner of the display screen). In this way, the user can completely see the page layout of the second application 502, which is convenient for the user to drag and locate at will. Moreover, the hot zone 503 will not block the main content of the second application 502 .
如图5中的(5c)所示,此时,如果用户在所述第二应用502的显示界面内松手,则如图片54所示的界面,所述待分享文件分享至所述第二应用502,同时所述第一应用501的悬浮窗重新显示出来。As shown in (5c) of FIG. 5, at this time, if the user releases his hand in the display interface of the second application 502, as shown in the interface shown in the picture 54, the to-be-shared file is shared to the second application 502, and the floating window of the first application 501 is displayed again.
如图5中的(5d)所示,当然,如果用户继续进行拖动,将待分享文件拖动到所述热区503的区域内,如图片55所示的界面,所述热区503的颜色会有所改变。此时再松手的话,如图片56所示的界面,则取消文件分享,并将所述第一应用501的悬浮窗重新显示出来(即重新唤起所述第一应用501的悬浮窗)。As shown in (5d) in Figure 5, of course, if the user continues to drag, drag the file to be shared into the area of the hot zone 503, as shown in the interface shown in Figure 55, the hot zone 503 Color will change. If you let go at this time, as shown in the interface shown in Figure 56, the file sharing will be canceled, and the floating window of the first application 501 will be displayed again (ie, the floating window of the first application 501 will be revived).
在一些实施例中,取消热区的位置可以在标题栏(因为拖拽到标题栏分享也是没有实际意义的操作)。当然,也可以不在第二应用上设置取消热区,而是在手指划出屏幕外(上下左右都可以)即取消分享并返回第一应用的悬浮窗。In some embodiments, the position of canceling the hotspot can be in the title bar (because dragging to the title bar to share is also a meaningless operation). Of course, it is also possible not to set the cancellation hotspot on the second application, but to cancel the sharing and return to the floating window of the first application when the finger is drawn off the screen (both up, down, left, and right).
本申请实施例中,用户在拖拽过程中不会有任何不必要的遮挡,而且能简单快速地取消分享返回悬浮窗,解决了用户在拖拽分享过程中的场景痛点。In the embodiment of the present application, the user will not have any unnecessary obstruction during the dragging process, and can simply and quickly cancel the sharing and return to the floating window, which solves the scene pain points of the user during the dragging and sharing process.
基于前述的实施例,本申请实施例提供一种内容分享装置,该装置包括所包括的各单元、以及各单元所包括的各模块、以及各模块所包括的各部件,可以通过电子设备中的处理器来实现;当然也可通过具体的逻辑电路实现;在实施的过程中,处理器可以为CPU(Central Processing Unit,中央处理器)、MPU(Microprocessor Unit,微处理器)、DSP(Digital Signal Processing,数字信号处理器)或FPGA(Field Programmable Gate Array,现场可编程门阵列)等。Based on the foregoing embodiments, the embodiments of the present application provide a content sharing device, the device includes each unit included, each module included in each unit, and each component included in each module, which can be passed through an electronic device. Of course, it can also be realized by a specific logic circuit; in the process of implementation, the processor can be CPU (Central Processing Unit, central processing unit), MPU (Microprocessor Unit, microprocessor), DSP (Digital Signal Processing, digital signal processor) or FPGA (Field Programmable Gate Array, Field Programmable Gate Array), etc.
图6为本申请实施例内容分享装置的组成结构示意图,如图6所示,所述装置600包括:FIG. 6 is a schematic structural diagram of a content sharing apparatus according to an embodiment of the present application. As shown in FIG. 6 , the apparatus 600 includes:
确定单元601,配置为在第一应用的显示界面中,确定待分享的目标内容;The determining unit 601 is configured to determine the target content to be shared in the display interface of the first application;
隐藏单元602,配置为响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;a hiding unit 602, configured to hide the display interface of the first application in response to the moving operation for the target content;
分享单元603,配置为响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象。The sharing unit 603 is configured to, in response to the end of the moving operation, share the target content to the first object if the end point of the moving operation corresponds to the first object.
在一些实施例中,所述第一对象为第二应用;所述移动操作的终点与第一对象对应,包括以下几种中的至少一种:In some embodiments, the first object is a second application; the end point of the moving operation corresponds to the first object, including at least one of the following:
所述移动操作的终点位置位于所述第二应用的应用图标位置;The end position of the moving operation is located at the position of the application icon of the second application;
所述移动操作的终点位置位于所述第二应用的显示界面内;The end position of the moving operation is located in the display interface of the second application;
所述移动操作的终点位置位于所述第二应用的快捷方式标识位置;The end position of the moving operation is located at the shortcut identification position of the second application;
或者,所述移动操作的终点位置位于所述第二应用的快捷启动栏位置。Alternatively, the end position of the moving operation is located at the position of the shortcut launch bar of the second application.
在一些实施例中,所述第一对象为第二应用界面内的一个显示对象;In some embodiments, the first object is a display object in the second application interface;
所述移动操作的终点与第一对象对应,包括:所述移动操作的终点位置位于所述显示对象所在的位置;The end point of the moving operation corresponds to the first object, including: the position of the end point of the moving operation is located at the position where the display object is located;
所述分享单元603,包括:The sharing unit 603 includes:
第一分享模块,配置为响应于所述移动操作的结束,若所述移动操作的终点位置位于所述显示对象所在的位置,则将所述目标内容分享至所述显示对象对应的目标。The first sharing module is configured to, in response to the end of the moving operation, share the target content to the target corresponding to the display object if the end position of the moving operation is located at the position where the display object is located.
在一些实施例中,所述第二应用包括通讯类应用,所述显示对象包括联系人标识;In some embodiments, the second application includes a communication application, and the display object includes a contact identifier;
所述第一分享模块,包括:The first sharing module includes:
第一分享部件,配置为响应于所述移动操作的结束,若所述移动操作的终点位置位于所述联系人标识所在的位置,将所述目标内容分享至所述联系人标识对应的联系人。A first sharing component, configured to, in response to the end of the moving operation, share the target content to the contact corresponding to the contact identification if the end position of the moving operation is located at the position where the contact identification is located .
在一些实施例中,所述联系人标识包括以下几种中的至少一种:联系人头像、联系人号码、联系人对话列表项、或者联系人对话页。In some embodiments, the contact identifier includes at least one of the following: a contact avatar, a contact number, a contact conversation list item, or a contact conversation page.
在一些实施例中,所述第二应用包括文件管理类应用,所述显示对象包括文件夹标识;In some embodiments, the second application includes a file management application, and the display object includes a folder identifier;
所述第一分享模块,包括:The first sharing module includes:
第二分享部件,配置为响应于所述移动操作的结束,若所述移动操作的终点位置位于所述文件夹标识所在的位置,将所述目标内容保存至所述文件夹所 在的路径。The second sharing component is configured to, in response to the end of the moving operation, save the target content to the path where the folder is located if the end position of the moving operation is located at the location where the folder identifier is located.
在一些实施例中,所述第二应用包括文档编辑类应用;In some embodiments, the second application includes a document editing application;
所述分享单元603,包括:The sharing unit 603 includes:
第二分享模块,配置为响应于所述移动操作的结束,若所述移动操作的终点与所述文档编辑类应用对应,将所述目标内容保存至所述文档编辑类应用对应格式的文件中。The second sharing module is configured to, in response to the end of the moving operation, if the end point of the moving operation corresponds to the document editing application, save the target content to a file in a format corresponding to the document editing application .
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
取消显示单元,配置为响应于针对所述目标内容的移动操作,在所述显示屏的特定位置上显示预设功能区域;其中,所述预设功能区域用于取消分享;a cancel display unit, configured to display a preset functional area on a specific position of the display screen in response to a moving operation for the target content; wherein the preset functional area is used to cancel sharing;
取消单元,配置为响应于所述移动操作的结束,若所述移动操作的终点位置位于所述预设功能区域内,则取消分享所述目标内容。A canceling unit, configured to cancel the sharing of the target content in response to the end of the moving operation, if the end position of the moving operation is within the preset functional area.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
重新显示单元,配置为在分享结束后,重新显示所述第一应用的显示界面;a redisplay unit, configured to redisplay the display interface of the first application after the sharing ends;
或者,在取消分享结束后,重新显示所述第一应用的显示界面。Or, after canceling the sharing, the display interface of the first application is redisplayed.
在一些实施例中,所述确定单元601,包括:In some embodiments, the determining unit 601 includes:
第一确定模块,配置为获取所述第一应用的显示界面上的按压操作;若所述按压操作的持续时长超过预设时长,确定待分享的目标内容;或者,若所述按压操作的连续按压次数超过预设数量,确定待分享的目标内容;a first determining module, configured to acquire a pressing operation on the display interface of the first application; if the duration of the pressing operation exceeds a preset duration, determine the target content to be shared; or, if the pressing operation continues When the number of presses exceeds the preset number, the target content to be shared is determined;
对应地,所述隐藏单元602,包括:Correspondingly, the hidden unit 602 includes:
隐藏模块,配置为响应于针对所述目标内容的移动操作,若所述移动操作的移动距离大于等于预设距离,隐藏所述第一应用的显示界面。The hiding module is configured to hide the display interface of the first application in response to the moving operation for the target content, if the moving distance of the moving operation is greater than or equal to a preset distance.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further includes:
取消处理单元,配置为响应于所述移动操作的结束,若所述移动操作的终点位置位于所述电子设备的标题栏位置,则取消分享所述目标内容;a cancellation processing unit, configured to cancel the sharing of the target content in response to the end of the moving operation, if the end position of the moving operation is located at the title bar position of the electronic device;
或者,响应于所述移动操作的结束,若所述移动操作的终点位置超出所述电子设备的显示屏边界位置,则取消分享所述目标内容。Or, in response to the end of the moving operation, if the end position of the moving operation exceeds the boundary position of the display screen of the electronic device, the sharing of the target content is canceled.
在一些实施例中,In some embodiments,
所述第一应用的显示界面以悬浮窗的方式显示在所述电子设备的显示屏上;The display interface of the first application is displayed on the display screen of the electronic device in the form of a floating window;
或者,所述第一应用的显示界面以特定比例缩小窗口的方式显示在所述电子设备的显示屏上。Alternatively, the display interface of the first application is displayed on the display screen of the electronic device in a manner of reducing the window in a specific proportion.
以上装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The descriptions of the above apparatus embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects to the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.
需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述的内容分享方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是个人计算机、服务器等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、ROM(Read Only Memory,只读存储器)、磁 碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiments of the present application, if the above-mentioned content sharing method is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence or in the parts that make contributions to the prior art. The computer software products are stored in a storage medium and include several instructions for An electronic device (which may be a personal computer, a server, etc.) is caused to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM (Read Only Memory, read-only memory), magnetic disk or optical disk and other media that can store program codes. As such, the embodiments of the present application are not limited to any specific combination of hardware and software.
对应地,本申请实施例提供一种电子设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述实施例中提供的内容分享方法中的步骤。Correspondingly, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program that can be run on the processor, and when the processor executes the program, the computer program provided in the foregoing embodiments is implemented. Steps in the content sharing method.
对应地,本申请实施例提供一种可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述内容分享方法中的步骤。Correspondingly, an embodiment of the present application provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the above content sharing method.
这里需要指出的是:以上存储介质和设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请存储介质和设备实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be pointed out here that the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects to the method embodiments. For technical details not disclosed in the embodiments of the storage medium and device of the present application, please refer to the description of the method embodiments of the present application to understand.
需要说明的是,图7为本申请实施例电子设备的一种硬件实体示意图,如图7所示,该电子设备700的硬件实体包括:处理器701、通信接口702和存储器703,其中It should be noted that FIG. 7 is a schematic diagram of a hardware entity of an electronic device according to an embodiment of the present application. As shown in FIG. 7 , the hardware entity of the electronic device 700 includes: a processor 701 , a communication interface 702 and a memory 703 , wherein
处理器701通常控制电子设备700的总体操作。The processor 701 generally controls the overall operation of the electronic device 700 .
通信接口702可以使电子设备700通过网络与其他终端或服务器通信。The communication interface 702 enables the electronic device 700 to communicate with other terminals or servers through a network.
存储器703配置为存储由处理器701可执行的指令和应用,还可以缓存待处理器701以及电子设备700中各模块待处理或已经处理的数据(例如,图像数据、音频数据、语音通信数据和视频通信数据),可以通过FLASH(闪存)或RAM(Random Access Memory,随机访问存储器)实现。The memory 703 is configured to store instructions and applications executable by the processor 701, and can also cache data to be processed or processed by the processor 701 and various modules in the electronic device 700 (for example, image data, audio data, voice communication data and Video communication data), which can be implemented by FLASH (flash memory) or RAM (Random Access Memory).
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The unit described above as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in each embodiment of the present application may all be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integration The unit can be implemented either in the form of hardware or in the form of hardware plus software functional units. Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk or an optical disk and other media that can store program codes.
本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined under the condition of no conflict to obtain new method embodiments.
本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the several product embodiments provided in this application can be combined arbitrarily without conflict to obtain a new product embodiment.
本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (20)

  1. 一种内容分享方法,应用于具备显示屏的电子设备,其中,所述方法包括:A content sharing method, applied to an electronic device with a display screen, wherein the method includes:
    在第一应用的显示界面中,确定待分享的目标内容;In the display interface of the first application, determine the target content to be shared;
    响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;hiding the display interface of the first application in response to the moving operation for the target content;
    响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象。In response to the end of the moving operation, if the end point of the moving operation corresponds to the first object, the target content is shared to the first object.
  2. 根据权利要求1所述的方法,其中,所述第一对象为第二应用;所述移动操作的终点与第一对象对应,包括以下几种中的至少一种:The method according to claim 1, wherein the first object is a second application; the end point of the moving operation corresponds to the first object, including at least one of the following:
    所述移动操作的终点位置位于所述第二应用的应用图标位置;The end position of the moving operation is located at the position of the application icon of the second application;
    所述移动操作的终点位置位于所述第二应用的显示界面内;The end position of the moving operation is located in the display interface of the second application;
    所述移动操作的终点位置位于所述第二应用的快捷方式标识位置;The end position of the moving operation is located at the shortcut identification position of the second application;
    或者,所述移动操作的终点位置位于所述第二应用的快捷启动栏位置。Alternatively, the end position of the moving operation is located at the position of the shortcut launch bar of the second application.
  3. 根据权利要求1所述的方法,其中,所述第一对象为第二应用界面内的一个显示对象;The method according to claim 1, wherein the first object is a display object in the second application interface;
    所述移动操作的终点与第一对象对应,包括:所述移动操作的终点位置位于所述显示对象所在的位置;The end point of the moving operation corresponds to the first object, including: the position of the end point of the moving operation is located at the position where the display object is located;
    所述将所述目标内容分享至所述第一对象,包括:将所述目标内容分享至所述显示对象对应的目标。The sharing of the target content to the first object includes: sharing the target content to a target corresponding to the display object.
  4. 根据权利要求3所述的方法,其中,所述第二应用包括通讯类应用,所述显示对象包括联系人标识;The method according to claim 3, wherein the second application comprises a communication application, and the display object comprises a contact identifier;
    所述将所述目标内容分享至所述显示对象对应的目标,包括:将所述目标内容分享至所述联系人标识对应的联系人。The sharing of the target content to the target corresponding to the display object includes: sharing the target content to a contact corresponding to the contact identifier.
  5. 根据权利要求4所述的方法,其中,所述联系人标识包括以下几种中的至少一种:联系人头像、联系人号码、联系人对话列表项、或者联系人对话页。The method according to claim 4, wherein the contact identifier comprises at least one of the following: a contact avatar, a contact number, a contact conversation list item, or a contact conversation page.
  6. 根据权利要求3所述的方法,其中,所述第二应用包括文件管理类应用,所述显示对象包括文件夹标识;The method according to claim 3, wherein the second application comprises a file management application, and the display object comprises a folder identifier;
    所述将所述目标内容分享至所述显示对象对应的目标,包括:将所述目标内容保存至所述文件夹所在的路径。The sharing of the target content to the target corresponding to the display object includes: saving the target content to a path where the folder is located.
  7. 根据权利要求2所述的方法,其中,所述第二应用包括文档编辑类应用;The method of claim 2, wherein the second application comprises a document editing application;
    所述将所述目标内容分享至所述第一对象,包括:将所述目标内容保存至所述文档编辑类应用对应格式的文件中。The sharing of the target content to the first object includes: saving the target content to a file in a format corresponding to the document editing application.
  8. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    响应于针对所述目标内容的移动操作,在所述显示屏的特定位置上显 示预设功能区域;其中,所述预设功能区域用于取消分享;In response to the moving operation for the target content, a preset functional area is displayed on a specific position of the display screen; wherein, the preset functional area is used to cancel sharing;
    响应于所述移动操作的结束,若所述移动操作的终点位置位于所述预设功能区域内,则取消分享所述目标内容。In response to the end of the moving operation, if the end position of the moving operation is located within the preset function area, the sharing of the target content is canceled.
  9. 根据权利要求1至8任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further comprises:
    在分享结束后,重新显示所述第一应用的显示界面;After the sharing ends, redisplay the display interface of the first application;
    或者,在取消分享结束后,重新显示所述第一应用的显示界面。Or, after canceling the sharing, the display interface of the first application is redisplayed.
  10. 根据权利要求9所述的方法,其中,所述在第一应用的显示界面中,确定待分享的目标内容,包括:The method according to claim 9, wherein, in the display interface of the first application, determining the target content to be shared comprises:
    获取所述第一应用的显示界面上的按压操作;若所述按压操作的持续时长超过预设时长,确定待分享的目标内容;或者,若所述按压操作的连续按压次数超过预设数量,确定待分享的目标内容;Acquire the pressing operation on the display interface of the first application; if the duration of the pressing operation exceeds a preset duration, determine the target content to be shared; or, if the number of consecutive pressings of the pressing operation exceeds the preset number, Determine the target content to be shared;
    对应地,所述响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面,包括:Correspondingly, the hiding of the display interface of the first application in response to the moving operation on the target content includes:
    响应于针对所述目标内容的移动操作,若所述移动操作的移动距离大于等于预设距离,隐藏所述第一应用的显示界面。In response to the moving operation for the target content, if the moving distance of the moving operation is greater than or equal to a preset distance, the display interface of the first application is hidden.
  11. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    响应于所述移动操作的结束,若所述移动操作的终点位置位于所述电子设备的标题栏位置,则取消分享所述目标内容;In response to the end of the moving operation, if the end position of the moving operation is located at the title bar position of the electronic device, cancel the sharing of the target content;
    或者,响应于所述移动操作的结束,若所述移动操作的终点位置超出所述电子设备的显示屏边界位置,则取消分享所述目标内容。Or, in response to the end of the moving operation, if the end position of the moving operation exceeds the boundary position of the display screen of the electronic device, the sharing of the target content is canceled.
  12. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    所述第一应用的显示界面以悬浮窗的方式显示在所述电子设备的显示屏上;The display interface of the first application is displayed on the display screen of the electronic device in the form of a floating window;
    或者,所述第一应用的显示界面以特定比例缩小窗口的方式显示在所述电子设备的显示屏上。Alternatively, the display interface of the first application is displayed on the display screen of the electronic device in a manner of reducing the window in a specific proportion.
  13. 一种内容分享装置,其中,所述装置包括:A content sharing device, wherein the device comprises:
    确定单元,配置为在第一应用的显示界面中,确定待分享的目标内容;a determining unit, configured to determine the target content to be shared in the display interface of the first application;
    隐藏单元,配置为响应于针对所述目标内容的移动操作,隐藏所述第一应用的显示界面;a hiding unit, configured to hide the display interface of the first application in response to a moving operation for the target content;
    分享单元,配置为响应于所述移动操作的结束,若所述移动操作的终点与第一对象对应,则将所述目标内容分享至所述第一对象。The sharing unit is configured to, in response to the end of the moving operation, share the target content to the first object if the end point of the moving operation corresponds to the first object.
  14. 根据权利要求13所述的装置,其中,所述第一对象为第二应用;所述移动操作的终点与第一对象对应,包括以下几种中的至少一种:The device according to claim 13, wherein the first object is a second application; the end point of the moving operation corresponds to the first object, including at least one of the following:
    所述移动操作的终点位置位于所述第二应用的应用图标位置;The end position of the moving operation is located at the position of the application icon of the second application;
    所述移动操作的终点位置位于所述第二应用的显示界面内;The end position of the moving operation is located in the display interface of the second application;
    所述移动操作的终点位置位于所述第二应用的快捷方式标识位置;The end position of the moving operation is located at the shortcut identification position of the second application;
    或者,所述移动操作的终点位置位于所述第二应用的快捷启动栏位置。Alternatively, the end position of the moving operation is located at the position of the shortcut launch bar of the second application.
  15. 根据权利要求13所述的装置,其中,所述第一对象为第二应用界 面内的一个显示对象;The device according to claim 13, wherein the first object is a display object in the second application interface;
    所述移动操作的终点与第一对象对应,包括:所述移动操作的终点位置位于所述显示对象所在的位置;The end point of the moving operation corresponds to the first object, including: the position of the end point of the moving operation is located at the position where the display object is located;
    所述分享单元,包括:The sharing unit includes:
    第一分享模块,配置为响应于所述移动操作的结束,若所述移动操作的终点位置位于所述显示对象所在的位置,则将所述目标内容分享至所述显示对象对应的目标。The first sharing module is configured to, in response to the end of the moving operation, share the target content to the target corresponding to the display object if the end position of the moving operation is located at the position where the display object is located.
  16. 根据权利要求15所述的装置,其中,所述第二应用包括通讯类应用,所述显示对象包括联系人标识;The apparatus according to claim 15, wherein the second application comprises a communication application, and the display object comprises a contact identifier;
    所述第一分享模块,包括:The first sharing module includes:
    第一分享部件,配置为响应于所述移动操作的结束,若所述移动操作的终点位置位于所述联系人标识所在的位置,将所述目标内容分享至所述联系人标识对应的联系人。A first sharing component, configured to, in response to the end of the moving operation, share the target content to the contact corresponding to the contact identification if the end position of the moving operation is located at the position where the contact identification is located .
  17. 根据权利要求15所述的装置,其中,所述第二应用包括文件管理类应用,所述显示对象包括文件夹标识;The apparatus according to claim 15, wherein the second application comprises a file management application, and the display object comprises a folder identifier;
    所述第一分享模块,包括:The first sharing module includes:
    第二分享部件,配置为响应于所述移动操作的结束,若所述移动操作的终点位置位于所述文件夹标识所在的位置,将所述目标内容保存至所述文件夹所在的路径。The second sharing component is configured to, in response to the end of the moving operation, save the target content to the path where the folder is located if the end position of the moving operation is located at the location where the folder identifier is located.
  18. 根据权利要求14所述的装置,其中,所述第二应用包括文档编辑类应用;The apparatus of claim 14, wherein the second application comprises a document editing application;
    所述分享单元,包括:The sharing unit includes:
    第二分享模块,配置为响应于所述移动操作的结束,若所述移动操作的终点与所述文档编辑类应用对应,将所述目标内容保存至所述文档编辑类应用对应格式的文件中。The second sharing module is configured to, in response to the end of the moving operation, if the end point of the moving operation corresponds to the document editing application, save the target content to a file in a format corresponding to the document editing application .
  19. 一种电子设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1至12任一项所述内容分享方法中的步骤。An electronic device, comprising a memory and a processor, the memory stores a computer program that can be run on the processor, and when the processor executes the program, the content sharing method of any one of claims 1 to 12 is implemented A step of.
  20. 一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现权利要求1至12任一项所述内容分享方法中的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the content sharing method according to any one of claims 1 to 12.
PCT/CN2021/092831 2020-07-01 2021-05-10 Content sharing method and apparatus, and device and storage medium WO2022001374A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010625874.1A CN111857468A (en) 2020-07-01 2020-07-01 Content sharing method and device, equipment and storage medium
CN202010625874.1 2020-07-01

Publications (1)

Publication Number Publication Date
WO2022001374A1 true WO2022001374A1 (en) 2022-01-06

Family

ID=72989004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/092831 WO2022001374A1 (en) 2020-07-01 2021-05-10 Content sharing method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN111857468A (en)
WO (1) WO2022001374A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510166A (en) * 2022-04-01 2022-05-17 深圳传音控股股份有限公司 Operation method, intelligent terminal and storage medium
WO2024082851A1 (en) * 2022-10-17 2024-04-25 Oppo广东移动通信有限公司 Resource integration method and apparatus, electronic device, and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857468A (en) * 2020-07-01 2020-10-30 Oppo广东移动通信有限公司 Content sharing method and device, equipment and storage medium
CN114518919A (en) * 2020-11-19 2022-05-20 Oppo广东移动通信有限公司 Content sharing method and device, equipment and storage medium
CN112506407B (en) * 2020-12-04 2022-05-03 维沃移动通信有限公司 File sharing method and device
CN114690983A (en) * 2020-12-14 2022-07-01 Oppo广东移动通信有限公司 Content sharing method and device, equipment and storage medium
CN112905004B (en) * 2021-01-21 2023-05-26 浙江吉利控股集团有限公司 Gesture control method and device for vehicle-mounted display screen and storage medium
CN115484397B (en) * 2021-06-16 2023-11-10 荣耀终端有限公司 Multimedia resource sharing method and electronic equipment
CN116820314A (en) * 2021-09-22 2023-09-29 荣耀终端有限公司 Suspended window display method and electronic equipment
CN114093208A (en) * 2021-11-22 2022-02-25 北京高途云集教育科技有限公司 Information display method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180088777A1 (en) * 2016-09-26 2018-03-29 Faraday&Future Inc. Content sharing system and method
CN109164964A (en) * 2018-08-22 2019-01-08 Oppo广东移动通信有限公司 Content share method, device, terminal and storage medium
WO2019071872A1 (en) * 2017-10-09 2019-04-18 华为技术有限公司 File sharing method and terminal
CN110519461A (en) * 2019-08-30 2019-11-29 Oppo广东移动通信有限公司 Document sending method, device, computer equipment and storage medium
CN111857468A (en) * 2020-07-01 2020-10-30 Oppo广东移动通信有限公司 Content sharing method and device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527882A (en) * 2016-09-29 2017-03-22 北京小米移动软件有限公司 Content sharing method, device and terminal
CN110321044A (en) * 2019-04-25 2019-10-11 维沃移动通信有限公司 Sharing files method and terminal
CN110333814A (en) * 2019-05-31 2019-10-15 华为技术有限公司 A kind of method and electronic equipment of sharing contents
CN110798397B (en) * 2019-10-25 2022-11-04 维沃移动通信有限公司 File sending method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180088777A1 (en) * 2016-09-26 2018-03-29 Faraday&Future Inc. Content sharing system and method
WO2019071872A1 (en) * 2017-10-09 2019-04-18 华为技术有限公司 File sharing method and terminal
CN109164964A (en) * 2018-08-22 2019-01-08 Oppo广东移动通信有限公司 Content share method, device, terminal and storage medium
CN110519461A (en) * 2019-08-30 2019-11-29 Oppo广东移动通信有限公司 Document sending method, device, computer equipment and storage medium
CN111857468A (en) * 2020-07-01 2020-10-30 Oppo广东移动通信有限公司 Content sharing method and device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510166A (en) * 2022-04-01 2022-05-17 深圳传音控股股份有限公司 Operation method, intelligent terminal and storage medium
WO2024082851A1 (en) * 2022-10-17 2024-04-25 Oppo广东移动通信有限公司 Resource integration method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN111857468A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
WO2022001374A1 (en) Content sharing method and apparatus, and device and storage medium
EP3907595A1 (en) User interface display method and apparatus, terminal and storage medium
WO2019114828A1 (en) User interface display method and apparatus, device, and storage medium
WO2019174546A1 (en) User interface display method and device, apparatus, and storage medium
WO2019174477A1 (en) User interface display method and device, and terminal
WO2019174469A1 (en) Message notification method, apparatus, device and storage medium
WO2022028185A1 (en) File sharing method and apparatus, and terminal and storage medium
US9361020B2 (en) Method and apparatus for displaying e-book in terminal having function of e-book reader
WO2019041779A1 (en) Terminal interface switching, moving and gesture processing method and device and terminal
CN111443863A (en) Page control method and device, storage medium and terminal
CN110928614B (en) Interface display method, device, equipment and storage medium
WO2022127304A1 (en) Method and apparatus for adjusting interface display state, and device and storage medium
US10855481B2 (en) Live ink presence for real-time collaboration
WO2021254201A1 (en) Page display method and apparatus, storage medium, and electronic device
US9495064B2 (en) Information processing method and electronic device
CN115454233A (en) Multi-screen interaction method and device
WO2021068382A1 (en) Multi-window operation control method and apparatus, and device and storage medium
WO2021068405A1 (en) Element transfer method, apparatus and device, and storage medium
WO2022242628A1 (en) Screen casting method, apparatus, and device, and storage medium
WO2022105389A1 (en) Content sharing method and apparatus, device, and storage medium
WO2022127382A1 (en) Content sharing method and apparatus, and device and storage medium
WO2023125052A1 (en) Display method and related apparatus
CN113031795B (en) Control method, mouse and upper computer
CN114816095A (en) Method and device for moving annotation toolbar of touch screen, medium and interactive panel
CN116627312A (en) Display method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21831729

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21831729

Country of ref document: EP

Kind code of ref document: A1