Content sharing method and apparatus, electronic device, and storage medium
By displaying the application identifier in the interface and responding to drag-and-drop operations, the current interface of the target application can be previewed in the current interface, which solves the problem of low efficiency in content sharing between applications and improves user experience and ease of operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
Smart Images

Figure CN122308988A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and more specifically, to a content sharing method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the rapid advancement of technology and living standards, electronic devices (such as smartphones and tablets) have become commonplace in people's lives. As applications (apps) become increasingly abundant, the number of applications installed on electronic devices is also growing. In practical use, users often need to share content between applications to achieve their desired operations. However, current technologies for sharing content from one application's interface to another application with the same need are relatively inefficient. Summary of the Invention
[0003] This application proposes a content sharing method, apparatus, electronic device, and storage medium, which can facilitate users to share content from an interface to the application interface they require.
[0004] In a first aspect, embodiments of this application provide a content sharing method, the method comprising: in response to a first operation on a content identifier corresponding to target content in an interface, displaying at least one application identifier in the interface; in response to the content identifier being dragged to the position of the application identifier, displaying a preview area corresponding to the application identifier in the interface, the preview area including the current application interface of the application corresponding to the application identifier; and in response to the end of dragging the content identifier, while the current position of the content identifier is still at the position of the application identifier, sharing the target content to the current application interface of the application corresponding to the application identifier.
[0005] Secondly, embodiments of this application provide a content sharing device, the device comprising: an icon display module, a preview display module, and a sharing execution module, wherein the icon display module is configured to display at least one application identifier in the interface in response to a first operation on a content identifier corresponding to target content in the interface; the preview display module is configured to display a preview area corresponding to the application identifier in the interface in response to the content identifier being dragged to the position of the application identifier, the preview area including the current application interface of the application corresponding to the application identifier; and the sharing execution module is configured to share the target content to the current application interface of the application corresponding to the application identifier in response to the end of dragging the content identifier, while the current position of the content identifier is still at the position of the application identifier.
[0006] Thirdly, embodiments of this application provide an electronic device, including: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to perform the content sharing method provided in the first aspect above.
[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code, which can be invoked by a processor to execute the content sharing method provided in the first aspect above.
[0008] The solution provided in this application, in response to a first operation targeting a content identifier corresponding to the target content on the interface, displays at least one application identifier on the interface. Then, in response to the content identifier being dragged to the position of the application identifier, a preview area corresponding to the application identifier is displayed on the interface. The preview area includes the current application interface of the application corresponding to the application identifier. Finally, in response to the end of dragging the content identifier, while the current position of the content identifier is still within the position of the application identifier, the target content is shared to the application corresponding to the application identifier. Thus, by dragging the content identifier to the position of the application identifier, the current application interface of the application corresponding to the application identifier is displayed, allowing the user to preview the current application interface of the application to which the content is to be shared. This clearly shows the selected application and its current interface, making it easier for users to select the desired application and share the content to the desired application's current interface, thereby improving the efficiency of sharing content to the desired application. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A flowchart illustrating a content sharing method according to an embodiment of this application is shown.
[0011] Figure 2 A flowchart illustrating a content sharing method according to another embodiment of this application is shown.
[0012] Figure 3 This illustration shows another interface diagram provided by an embodiment of this application.
[0013] Figure 4This illustration shows another interface diagram provided by an embodiment of this application.
[0014] Figure 5 This illustration shows another interface diagram provided by an embodiment of this application.
[0015] Figure 6 A flowchart illustrating a content sharing method according to yet another embodiment of this application is shown.
[0016] Figure 7 A flowchart illustrating a content sharing method according to another embodiment of this application is shown.
[0017] Figure 8 A flowchart illustrating a content sharing method according to yet another embodiment of this application is shown.
[0018] Figure 9 This illustration shows another interface diagram provided by an embodiment of this application.
[0019] Figure 10 This illustration shows another interface diagram provided by an embodiment of this application.
[0020] Figure 11 This illustration shows another interface diagram provided by an embodiment of this application.
[0021] Figure 12 A block diagram of a content sharing apparatus according to an embodiment of this application is shown.
[0022] Figure 13 This is a block diagram of an electronic device for performing a content sharing method according to an embodiment of this application.
[0023] Figure 14 This is a storage unit in this application embodiment for storing or carrying program code that implements the content sharing method according to this application embodiment. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0025] Modern electronic devices typically have multiple applications installed. When using these devices, users often need to access content from one application's interface within another. Therefore, in some cases, users may need to share content from one application's interface to another application so that the shared content can be used within that application.
[0026] In related technologies, when sharing content between applications, the process typically involves running the application to be shared, selecting the content from its interface, saving or copying it, and then opening another application to view it. If the opened application is not the one the user wants to share with, the user needs to switch to another application, find the desired application, retrieve the saved or copied content, and then use the shared content within that application. Therefore, when sharing content between applications, users face inconvenience and inefficiency in selecting the desired application and its interface.
[0027] To address the aforementioned issues, the inventors have proposed a content sharing method, apparatus, electronic device, and storage medium as described in this application. These methods enable users to drag and drop content identifiers to the location of application identifiers, thereby displaying the current application interface of the application corresponding to the application identifier. Users can preview the current application interface of the application to be shared, clearly identifying the selected application and its current interface. This facilitates user selection of the desired application and improves the efficiency of sharing content. The specific content sharing method will be described in detail in subsequent embodiments.
[0028] The content sharing method provided in the embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0029] Please see Figure 1 , Figure 1 A flowchart illustrating a content sharing method according to an embodiment of this application is shown. In a specific embodiment, the content sharing method is applied to, for example... Figure 12 The content sharing device 600 shown and the electronic device 600 configured with the content sharing device 600 are also shown. Figure 13 The following will use an electronic device as an example to illustrate the specific process of this embodiment. Of course, it is understood that the electronic device used in this embodiment can be a smartphone, tablet computer, smartwatch, e-reader, etc., and is not limited thereto. The following will focus on... Figure 1 The process shown is explained in detail, and the content sharing method may specifically include the following steps.
[0030] Step S110: In response to a first operation targeting a content identifier corresponding to the target content in the interface, display at least one application identifier in the interface.
[0031] The target content can be any content on the interface displayed on the electronic device that can be shared to other applications; the above content identifier is used to represent the target content so that users can perform operations on the content identifier to share the target content to the corresponding application.
[0032] In this embodiment, the currently displayed interface of the electronic device can be an interface containing the interface of any application. For example, it can be the interface of an application running in the foreground of the electronic device, a split-screen application interface, or the desktop of the electronic device, where an interface area corresponding to the application interface is displayed. When the electronic device displays a content identifier corresponding to the target content in the interface, the electronic device can detect operations in the interface. Upon detecting a first operation targeting the content identifier, the electronic device can respond to the first operation by displaying at least one application identifier in the interface. The first operation can be an operation to trigger sharing of the target content; the at least one application identifier can be an application identifier corresponding to an application to which the target content can be shared; the application identifier can be an application icon, an application thumbnail, the application name, etc. It is understood that detecting the first operation indicates that the user has a need to share the target content to other applications. Therefore, the application identifier can be displayed so that the user can perform an operation in the current interface to share the target content to the current interface of the corresponding application.
[0033] In some embodiments, the first operation described above can be an operation that satisfies a first operation condition. The first operation can be a pressing operation where the pressing parameters satisfy the first pressing condition, such as a pressing operation with a pressing duration greater than a first pressing duration, or a pressing area greater than a first pressing area. The first operation can also be a click operation targeting a content identifier, where the number of consecutive clicks satisfies a first-time number condition. This first-time number condition can be that the number of consecutive clicks is equal to the first click count, such as 2 or 3 times, or it can be that the number of consecutive clicks is greater than the first click count. Of course, in the embodiments of this application, the specific operation type of the first operation described above is not limited.
[0034] In some implementations, the target content can be content selected based on user actions on the interface, or it can be pre-defined content that can be shared to other applications. The type of the target content is not limited; for example, it can be text content, image content, video content, audio content, web links, etc.
[0035] In one possible implementation, before displaying at least one application identifier on the interface in response to a first operation targeting the content identifier, the electronic device may, upon detecting a second operation targeting the target content on the interface, display a content identifier corresponding to the target content in response to the second operation. This second operation can be viewed as selecting target content from the interface and triggering the display of the content identifier for that target content. In this way, users can freely select content to share on the interface and trigger a content sharing process, thereby better meeting users' needs for content sharing between applications.
[0036] The second operation described above can be an operation that satisfies a second operation condition. This second operation can be a pressing operation where the pressing parameters satisfy the second pressing condition, such as a pressing operation with a pressing duration greater than a second pressing duration, or a pressing area greater than a second pressing area. Alternatively, the second operation can be a click operation targeting a content identifier, where the number of consecutive clicks satisfies a second number condition. This second number condition can be that the number of consecutive clicks is equal to the second number of clicks, such as 2 or 3 times, or that the number of consecutive clicks is greater than the second number of clicks. Of course, in this embodiment, the specific operation type of the second operation is not limited.
[0037] Optionally, after the content identifier is displayed, the electronic device can also cancel its display upon detecting an operation to cancel sharing, thereby ending the content sharing process. For example, if no operation is detected on the content identifier within a third time period after it is displayed, the display of the content identifier can be canceled. Another example is that the display of the content identifier can be canceled if it is detected that the content identifier has been dragged to a target location.
[0038] In some implementations, the electronic device displays the above content identifiers on the interface. This could be a bubble-shaped identifier for the target content. A bubble is a temporary view element in the user interface (UI), typically popping up from a user click or action point to provide additional information, operation options, or prompts. Alternatively, the electronic device could display content icons for the target content. It could also display floating windows for the target content. Of course, the specific form of the content identifier corresponding to the target content displayed on the interface is not limited, as long as it serves as an identifier for the target content and informs the user that the content identifier represents the target content.
[0039] In one possible implementation, when the electronic device displays the above content identifier, it may be content information specific to the target content, and the content identifier may be displayed in a specific form according to the form of the content identifier. The above content identifier displayed by the electronic device may include at least part of the information of the target content, so that the user can know that the content identifier represents the above target content.
[0040] Optionally, when displaying the above content identifier, the electronic device can extract content information from the target content; based on the extracted content information, obtain key information from the target content; and then display the above content identifier based on the key information, which may include the key information. For example, if the target content is text content, keywords, titles, etc., can be extracted from the text content as key information and displayed in the content identifier; or, for example, if the target content is image content, the main content of the image can be identified as the above key information and displayed in the content identifier. Of course, the specific key information extracted by the electronic device for the target content is not limited.
[0041] Step S120: In response to the content identifier being dragged to the position of the application identifier, a preview area corresponding to the application identifier is displayed in the interface, the preview area including the current application interface of the application corresponding to the application identifier.
[0042] In this embodiment, after the electronic device displays the above application identifiers on the interface, it can detect operations on the interface. Upon detecting a drag operation on a content identifier, it can respond to the drag operation and control the content identifiers to move along the drag trajectory. If it is determined that the content identifier has been dragged to the position of any displayed application identifier, the electronic device can display a preview area corresponding to that application identifier on the interface, and display the current application interface of the application corresponding to that application identifier in the preview area. This allows the user to preview the current application interface of the application to be shared on the current interface, making it easier for the user to know the currently selected application to be shared and its current interface.
[0043] In some implementations, when the electronic device displays the preview area, it can display a floating window in the interface, showing the current application interface of the application corresponding to the application identifier. In this method, the application corresponding to the application identifier can be running in the foreground, and a scaled-down version of the application's current application interface can be displayed in the floating window. Foreground operation refers to the state where the electronic device displays the application's interface on the screen. When the application is running in the foreground, the user can see the application's interface on the screen. In contrast, background operation refers to the state where the electronic device does not display the application's interface on the screen, and the user cannot interact with the application's interface. However, the application still consumes the electronic device's system resources when running in the background.
[0044] A floating window, also known as a hovering window, is a window that floats on the screen of an electronic device. Floating windows are used to display the application interface of a running application. The application interface displayed in the floating window is a scaled-down version of the application interface, which can include all interface elements within the application interface; alternatively, the floating window can display the core interface elements within the application interface, which are pre-defined by the application.
[0045] In some implementations, when the electronic device displays the above preview area, it can determine the current application interface of the application corresponding to the above application identifier and generate a preview image for the current application interface; when displaying the above preview area, the preview image can be displayed in the preview area. The above current application interface can be the application interface displayed if the application corresponding to the above application identifier is currently running in the foreground, that is, if the application is currently running in the foreground, then the currently displayed application interface of the application is the above current application interface. Of course, in the embodiments of this application, the specific way the electronic device displays the above preview area is not limited, as long as it allows the user to preview the current application interface of another application in the current interface.
[0046] In some implementations, when determining whether the content identifier has been dragged to the location of any application identifier, the electronic device can obtain the current position of the content identifier and match it with the position of each displayed application identifier. If the current position of the content identifier matches the position of any application identifier, it means that the content identifier has been dragged to that application identifier's location. If the current position of the content identifier does not match the position of any application identifier, it means that the content identifier has not been dragged to the location of any application identifier. In the above implementations, the matching of the current position of the content identifier with the position of the application identifier can mean that the current position of the content identifier is located within the display area where the application identifier is located, or that there is an intersection between the display area occupied by the content identifier and the display area where the application identifier is located.
[0047] In some implementations, after displaying the application icons, the electronic device can also cancel the display of the application icons and content icons after detecting an operation to cancel sharing, thereby ending the content sharing process. For example, if no content icon is detected being dragged to the position of any application icon or to the target position within a third time period, the display of the application icons and content icons can be canceled.
[0048] Step S130: In response to the end of dragging the content identifier, while the current position of the content identifier is still at the position of the application identifier, share the target content to the current application interface of the application corresponding to the application identifier.
[0049] In this embodiment, after the electronic device determines that the content identifier has been dragged to the position corresponding to the application identifier and displays the preview area, the user can confirm the selected application to be shared and its current application interface based on the preview area. Furthermore, the electronic device can further detect the dragging of the content identifier. After detecting the end of the dragging, it can determine the current position of the content identifier on the interface. If the current position of the content identifier is still within the position of the application identifier, it indicates that the user has confirmed that the target content needs to be shared to the application corresponding to the application identifier and its current application interface, and therefore the target content can be shared to the current application interface of the application corresponding to the application identifier. If the current position of the content identifier is not within the position of the application identifier, it indicates that the user has determined through the preview area that the application corresponding to the application identifier is not the application to which the target content needs to be shared, or that the current application interface of the application is not the application interface to which the content needs to be shared, and therefore the target content will not be shared to the current application interface of the application corresponding to the application identifier.
[0050] In some implementations, when an electronic device shares the target content to the application interface corresponding to the application identifier, it may input the target content into the input area of the application's current interface. For example, if the target content is text, the application identifier corresponds to a document editing application, and the current interface of the document editing application is an editing interface, then the text content can be inserted into the text input area of that editing interface. As another example, if the target content is an image, the application identifier corresponds to a chat application, and the current interface of the chat application is a chat interface, then the image content can be input into the input area of that chat interface. Of course, the above methods of sharing target content to an application interface are merely examples; the specific method by which the electronic device shares target content to an application interface can be determined based on the type of target content, the application to which it is to be shared, and the application's current interface.
[0051] In some implementations, after sharing the target content to the current application interface of the application corresponding to the application identifier, the electronic device can also switch the currently displayed interface to the current application interface of the application corresponding to the application identifier, so that the user can use the shared target content in the current application interface of the application.
[0052] The content sharing method provided in this application embodiment can display the current application interface of the application corresponding to the application identifier after dragging and dropping a content identifier to the position of the application identifier. This allows users to preview the current application interface of the application to which the content is to be shared, thus clearly knowing the selected application and its current interface. On the one hand, it enables users to accurately select the application and its interface to be shared, and on the other hand, it facilitates users in selecting the application and its interface to be shared and sharing the content in the interface to the current application interface of the desired application, thereby improving the efficiency of sharing content to the desired application interface. In addition, by displaying a content identifier for the content to be shared and triggering the sharing of the content to the current application interface of the application identifier by dragging the content identifier to the position of the application identifier, the linkage between content and application can be enhanced. This allows the content to be shared to interact more directly and intuitively with the application to which it is to be shared, making the content to be shared visible and usable, thereby improving the user's experience of using electronic devices.
[0053] Please see Figure 2 , Figure 2 A flowchart illustrating a content sharing method according to another embodiment of this application is shown. This content sharing method is applied to the aforementioned electronic device, and will be discussed below. Figure 2 The process shown will be explained in detail. The content sharing method may specifically include the following steps:
[0054] Step S210: In response to a first operation targeting the content identifier corresponding to the target content in the interface, display the application identifier of at least one application running in the background in the interface.
[0055] In this embodiment, when the electronic device displays a content identifier corresponding to the target content on the interface, the electronic device can detect operations on the interface. Upon detecting a first operation targeting the content identifier, the electronic device can respond to the first operation by displaying an application identifier corresponding to the background-running application on the interface. That is, when providing users with selectable applications to share with, background-running applications are provided for selection. It is understandable that sharing content to another application typically occurs in a scenario of inter-application collaboration, where the application to be shared is usually already running. Therefore, when displaying application identifiers, the electronic device can display the icon of the background-running application so that the user can select the background application as the application to which the target content is to be shared.
[0056] In some implementations, when an electronic device displays the application identifier of at least one application running in the background on the interface, it can determine the application currently running in the background, identify at least one application from the background applications, and display the application identifier of the at least one application on the interface.
[0057] In one possible implementation, considering the different permissions possessed by different applications on an electronic device—some applications may have content sharing permissions, while others may not—content sharing permissions refer to the permission to share content between applications. For applications with content sharing permissions, they typically have a sharing interface for content sharing, thus enabling content sharing between applications. For applications without content sharing permissions, they lack such an interface, making content sharing between applications impossible. Therefore, when the electronic device displays the application identifier for an application running in the background, it can identify the target application with content sharing permissions from among the background applications and display the application identifier of that target application on the interface. In other words, the application corresponding to the application identifier displayed on the interface not only runs in the background but also has content sharing permissions. This allows the user to be provided with applications that can share content and are running in the background as the target application to which the content is to be shared, enabling the user to successfully share the target content to the current interface of the selected application.
[0058] In some implementations, the currently displayed interface of the electronic device includes an interface area corresponding to the application interface to which the target content belongs. The application interface to which the target content belongs is the application interface of the application to which the target content belongs. When the electronic device displays the application identifiers of at least one application running in the background, it can hide the interface area corresponding to the application interface to which the target content belongs and display an application selection area on the interface. This application selection area includes the application identifiers of at least one application running in the background. It is understood that when the interface displayed by the electronic device includes the above-mentioned interface area, it typically occupies a large display space. To facilitate the user's selection of the application to which the target content will be shared, this interface area can be hidden, and an application selection area including the application identifiers of at least one application running in the background can be displayed on the interface.
[0059] In one possible implementation, the application interface to which the target content belongs can be displayed as a floating window, meaning the interface area can be a floating window. The interface displayed on the electronic device can be a desktop or the interface of other applications. In other words, when the electronic device displays any interface, it can display a floating window within that interface, and the floating window can display the interface area corresponding to the application interface to which the target content belongs.
[0060] In one possible implementation, when hiding the above interface area, the electronic device can either hide the entire interface area, i.e., cancel the display of the interface area; or it can hide a portion of the interface area, thereby creating more space on the interface to display the selected application area. Furthermore, the content identifiers can remain displayed within the selected application area, allowing users to continue dragging and dropping content identifiers to the corresponding application identifiers to share the target content to other applications.
[0061] Optionally, after hiding a portion of the above interface area, the electronic device can cancel the display of the above application and content identifiers after detecting a trigger operation targeting that interface area, thereby ending the content sharing process.
[0062] Optionally, the content sharing method provided in this application embodiment can be used in scenarios where content generated by a smart assistant is shared to the application interface of other applications. A smart assistant is a software program that utilizes artificial intelligence technology to help users complete various tasks and provide necessary information and services. After detecting an operation that invokes the smart assistant in the interface, the electronic device can display the interface area corresponding to the smart assistant in the interface, which includes the interface corresponding to the smart assistant. In this scenario, the target content can be the smart assistant's response to a user's input question. This response can be content generated by the smart assistant, such as content generated by a large language model in response to a user's input question. A content identifier can be displayed in this interface area for the target content to be shared. After detecting a first operation targeting this content identifier, the electronic device can hide a portion of the interface area corresponding to the smart assistant and can display an application selection area in the interface, including the application identifier of the application running in the background. In the above scenarios, since intelligent assistants can provide artificial intelligence (AI) services, their responses can be AI-generated content. This allows AI-generated content to be used more extensively in other applications of electronic devices, enabling users to fully utilize the value of AI-generated content, experience a sense of intelligence, and increase the stickiness of electronic device systems. Furthermore, since AI-generated content can be shared by users in other applications for secondary creation or sharing, it can also improve users' productivity.
[0063] For example, please refer to Figure 3 In a scenario where content generated by a smart assistant is shared to the application interface of other applications, the interface A1 displayed on the electronic device includes an interface area A2, which includes the smart assistant's interface A3. The smart assistant's response content and the corresponding content identifier A4 are displayed on the smart assistant's interface A3. Please refer to [link to relevant documentation]. Figure 4 After detecting the first operation targeting content identifier A4, a portion of interface area A2 can be hidden, i.e. Figure 4 The interface area A2 shown is in a collapsed state, and the application selection area A5 can be displayed in the interface A1. The application selection area A5 includes the application identifier A6 corresponding to the application running in the background, and the above content identifier A4 can be displayed in the application selection area A5, so that the user can further operate on the content identifier A4, thereby completing the sharing of the smart assistant's reply to the current application interface of the corresponding application.
[0064] In some implementations, when the electronic device displays the application identifiers of at least one application running in the background, it may also switch the current interface to a task management interface. This task management interface includes the application identifiers of the at least one application running in the background, as well as the content identifiers corresponding to the target content. In other words, to enable users to share the target content to background applications, the electronic device can directly switch the current interface to a task management interface. In addition to the application identifiers of the background applications already displayed in the task management interface, it can also display the content identifiers corresponding to the target content, allowing users to drag and drop the content identifiers to the corresponding application identifiers, thereby sharing the target content to the current application interface of the desired background application.
[0065] For example, please refer to Figure 5 The task management interface A7 displayed on the electronic device can include the application identifier A6 corresponding to the application running in the background, and the task management interface A7 also includes the content identifier A4 corresponding to the above target content. This allows the user to drag and drop the content identifier A4 to the application identifier A6 corresponding to the application to which the content needs to be shared, so that the target content can be shared to the current application interface of the corresponding application.
[0066] In one possible implementation, due to the limited screen size of electronic devices, the task management interface can display application icons for some background applications. The electronic device can also, upon detecting a switching operation on application icons in the task management interface, hide the currently displayed application icons and display the application icons for background applications that are not currently displayed, thus allowing the user to search for the desired application within the task management interface.
[0067] In some implementations, considering that different applications support different content types for sharing—for example, an audio playback application may not support sharing video content to its application interface—the electronic device, in response to a first operation targeting the above content identifier and displaying the application identifier of at least one application running in the background, can determine a target application matching the content type from among the background applications and display the application identifier of the determined target application on the interface. The target application matching the content type supports sharing content of that type to its application interface; that is, if any background application matches the content type, then the content of that type can be shared to that application's application interface. The above content types can include text, audio, video, image, link, etc. Through this method, users can successfully share the above target content to the current application interface of the selected application.
[0068] In some implementations, when an electronic device displays the application icon of at least one application running in the background on the interface, it can also obtain the duration of the background running state of each application, sort the background running applications in ascending order of duration, and then display the application icon of at least one background running application on the interface according to the sorting result. Specifically, based on the number N application icons to be displayed, the top N applications can be selected from the sorting result and displayed on the interface. Understandably, the longer an application runs in the background, the lower the probability that the user is currently using that application. Therefore, application icons corresponding to background running applications with shorter durations can be displayed so that users can more quickly find the application they want to share.
[0069] In some implementations, when an electronic device displays the application identifiers of at least one application running in the background on the interface, it can also obtain the historical time when the background application last appeared in the foreground, and for each background application, determine the duration of that historical time from the current time as a target duration. Then, the background applications are sorted in ascending order of target duration, and the application identifiers of at least one background application are displayed on the interface based on the sorting result. Specifically, based on the number N application identifiers to be displayed, the top N applications can be selected from the sorting result and their application identifiers displayed on the interface. Understandably, the longer the historical time when an application last appeared in the foreground is from the current time, the lower the probability that the user is currently using that application. Therefore, application icons corresponding to background applications with shorter target durations can be displayed to allow users to quickly find the application they want to share.
[0070] It should be noted that the above implementation methods can also be combined. For example, after identifying applications with content sharing permissions that match the content type of the target content from the background applications, the identified applications can be sorted according to at least one of the above duration and target duration, and then the application identifier corresponding to the application to be displayed can be determined from the sorting results.
[0071] Step S220: In response to the content identifier being dragged to the position of the application identifier, a preview area corresponding to the application identifier is displayed in the interface, the preview area including the current application interface of the application corresponding to the application identifier.
[0072] Step S230: In response to the end of dragging the content identifier, while the current position of the content identifier is still at the position of the application identifier, share the target content to the current application interface of the application corresponding to the application identifier.
[0073] In the embodiments of this application, steps S220 and S230 can be referred to the contents of other embodiments, and will not be repeated here.
[0074] The content sharing method provided in this application embodiment can display the current application interface of the application corresponding to the application identifier after dragging and dropping the content identifier to the application identifier position. This allows users to preview the current application interface of the application to be shared in the current interface, thus clearly knowing the selected application and its current interface. On the one hand, it allows users to accurately select the application and its interface to be shared, and on the other hand, it facilitates users to select the application and its interface to be shared and share the content in the interface to the current application interface of the desired application, thereby improving the efficiency of sharing content to the desired application interface. In addition, the application identifier displayed in this application embodiment can be the application identifier of the background application, so that users can select the background application as the application to which the above target content is to be shared, which can reduce the steps when sharing content to the background application and help users quickly find the application to be shared.
[0075] Please see Figure 6 , Figure 6 A flowchart illustrating another embodiment of the content sharing method provided in this application is shown. This content sharing method is applied to the aforementioned electronic device, and will be discussed below. Figure 6 The process shown will be explained in detail. The content sharing method may specifically include the following steps:
[0076] Step S310: In response to a first operation targeting the content identifier corresponding to the target content on the desktop, the interface area superimposed on the desktop is hidden, and at least one application identifier is displayed on the desktop, with the interface area corresponding to the application interface to which the target content belongs being superimposed on the desktop.
[0077] In this embodiment, the interface currently displayed by the electronic device can be a desktop, and an interface area corresponding to the application interface to which the target content belongs is overlaid on the desktop. The application interface to which the target content belongs is the application interface of the application to which the target content belongs. When the electronic device displays the application identifier of at least one application running in the background, it can hide the above interface area and display at least one application identifier on the desktop. The application identifier displayed on the desktop can include at least one of an application icon and an application name; the at least one application identifier displayed after hiding the above interface area can be the application identifier originally displayed on the desktop, that is, the application identifier on the desktop that was obscured by the above interface area.
[0078] In some implementations, the application interface to which the target content belongs may be displayed on the desktop as a floating window, that is, the interface area may be a floating window displayed on the desktop, and the application interface to which the target content belongs may be displayed in the floating window.
[0079] In some implementations, when an electronic device hides the above interface area, it may hide the entire interface area, i.e., cancel the display of the interface area, or it may hide a portion of the above interface area, so that the application icons on the desktop that are obscured by the interface area can be displayed.
[0080] Step S320: In response to the content identifier being dragged to the position of the application identifier, a preview area corresponding to the application identifier is displayed in the interface, the preview area including the current application interface of the application corresponding to the application identifier.
[0081] In the embodiments of this application, once the position of the above content identifier is determined to be dragged to any application identifier displayed on the desktop, the electronic device can display a preview area corresponding to the application identifier on the desktop, and display the current application interface of the application corresponding to the application identifier in the preview area, so that the user can preview the current application interface of the application to be shared on the desktop, making it easier for the user to know the currently selected application to be shared and the current interface of the application.
[0082] In some implementations, considering that the application corresponding to the application icon displayed on the desktop may be running or not, and the electronic device cannot display the application interface of an application that is not running, the electronic device can determine the running status of the application corresponding to the application icon after determining that the content icon has been dragged to the position of any application icon. If it is determined that the application corresponding to the application icon is running, then a preview area corresponding to the application icon can be displayed on the desktop, and the preview area includes the current application interface of the application corresponding to the application icon.
[0083] In one possible implementation, after determining that a content identifier has been dragged to the position of any application identifier, the electronic device can determine the running status of the application corresponding to that application identifier; if it is determined that the application corresponding to that application identifier is not running, the electronic device can also launch the application and display a preview area on the desktop, the preview area including the interface displayed after the application is launched.
[0084] Step S330: In response to the end of dragging the content identifier, while the current position of the content identifier is still at the position of the application identifier, share the target content to the current application interface of the application corresponding to the application identifier.
[0085] In this embodiment, step S330 can be found in other embodiments and will not be repeated here.
[0086] The content sharing method provided in this application embodiment can display the current application interface of the application corresponding to the application identifier after dragging and dropping the content identifier to the application identifier position. This allows users to preview the current application interface of the application to be shared in the current interface, thus clearly knowing the selected application and its current interface. On the one hand, it enables users to accurately select the application and its interface to be shared, and on the other hand, it facilitates users to select the application and its interface to be shared and share the content in the interface to the current application interface of the desired application, thereby improving the efficiency of sharing content to the desired application interface. In addition, it can also realize the sharing of the content in the interface to the current application interface of the application corresponding to the application identifier on the desktop, which can better meet the user's need to select the current application interface of the application to be shared.
[0087] Please see Figure 7 , Figure 7 A flowchart illustrating a content sharing method provided in another embodiment of this application is shown. This content sharing method is applied to the aforementioned electronic device, and will be discussed below. Figure 7 The process shown will be explained in detail. The content sharing method may specifically include the following steps:
[0088] Step S410: In response to a first operation targeting a content identifier corresponding to the target content in the interface, display at least one application identifier in the interface.
[0089] Step S420: In response to the content identifier being dragged to the position of the application identifier, a preview area corresponding to the application identifier is displayed in the interface, the preview area including the current application interface of the application corresponding to the application identifier.
[0090] In the embodiments of this application, steps S410 and S420 can be referred to the contents of other embodiments, and will not be repeated here.
[0091] Step S430: In response to the end of dragging the content identifier, if the current position of the content identifier is still at the position of the application identifier, and the application corresponding to the application identifier has content sharing permission, the target content is shared to the current application interface of the application corresponding to the application identifier.
[0092] In this embodiment, considering that different applications in an electronic device have different permissions, some applications may have content sharing permissions, while others may not. Content sharing permissions refer to the permission to share content between applications. For applications with content sharing permissions, the application typically has a sharing interface for content sharing, thus enabling content sharing between applications. For applications without content sharing permissions, the application does not have a sharing interface for content sharing, thus preventing content sharing between applications. Therefore, after determining that a content identifier has been dragged to the position of any application identifier, the electronic device can further determine whether the application corresponding to that application identifier has content sharing permissions. Based on the determination result, if the application corresponding to that application identifier has content sharing permissions, the target content can be shared to the current application interface of the application corresponding to that application identifier.
[0093] In addition, after determining whether the application corresponding to the application identifier has content sharing permission, if the application corresponding to the application identifier does not have content sharing permission, then the above target content will not be shared to the current application interface of the application corresponding to the application identifier.
[0094] In some implementations, if it is determined that the application corresponding to the application identifier does not have content sharing permissions, a prompt message can also be output to inform the user that the content cannot be shared to the application's interface.
[0095] In one possible implementation, some applications may have a sharing interface for content sharing, but content sharing permissions may not be enabled. Therefore, the prompt message output when it is determined that the application corresponding to the application identifier does not have content sharing permissions can also be used to prompt the user to enable the application's content sharing permissions.
[0096] Optionally, when the electronic device outputs the above prompt information, it may display the prompt information on the interface. After displaying the prompt information, if an operation related to the prompt information is detected, the electronic device may display the permission settings interface for the application corresponding to the above application identifier; if the electronic device detects an enabling operation for content sharing permission for that application in the permission settings interface, it may control the content sharing permission of that application to be enabled. After the content sharing permission of that application is enabled, the above target content can be shared to the current application interface of the application corresponding to the application identifier.
[0097] The content sharing method provided in this application embodiment can display the current application interface of the application corresponding to the application identifier after dragging and dropping the content identifier to the application identifier position. This allows the user to preview the current application interface of the application to be shared in the current interface, thus clearly knowing the selected application and its current interface. On the one hand, it allows the user to accurately select the application and its interface to be shared, and on the other hand, it facilitates the user to select the application and its interface to be shared and share the content in the interface to the current application interface of the desired application, thereby improving the efficiency of sharing content to the desired application interface. In addition, before sharing the content in the interface to the current application interface of the selected application, it is determined whether the application has content sharing permission. Only if the application has content sharing permission will the content be shared to the current application interface of the application, thereby ensuring that the target content can be successfully shared to the current application interface of the selected application.
[0098] Please see Figure 8 , Figure 8 A flowchart illustrating a content sharing method according to another embodiment of this application is shown. This content sharing method is applied to the aforementioned electronic device, and will be discussed below. Figure 8 The process shown will be explained in detail. The content sharing method may specifically include the following steps:
[0099] Step S510: In response to a drag operation on a content identifier corresponding to a target content in the interface, if the drag operation satisfies the target drag condition, display at least one application identifier in the interface.
[0100] In this embodiment, when the electronic device displays a content identifier corresponding to the target content on the interface, it can detect operations on the interface. When a drag operation targeting the content identifier is detected, it can determine whether the drag operation meets the target drag condition. The target drag condition is used to determine whether the user needs to share the target content to other applications. If the drag operation meets the target drag condition, it indicates that the user needs to share the target content to other applications, and therefore at least one application identifier can be displayed on the interface. If the drag operation does not meet the target drag condition, it indicates that the user does not need to share the target content to other applications, and therefore the application identifier is not displayed on the interface.
[0101] In some implementations, after detecting the above drag operation, the electronic device can also control the above content markers to move along the operation trajectory of the drag operation.
[0102] In some implementations, the currently displayed interface of the electronic device includes an interface area corresponding to the application interface to which the target content belongs. The application interface to which the target content belongs is the application interface of the application to which the target content belongs, and the display size of this interface area is smaller than the display size of the main display interface. In this approach, if it is determined that the drag position of the drag operation is outside the target area within the interface, it indicates that the user requests to share the target content to other applications, and therefore at least one application identifier can be displayed on the interface. Here, the target area is the interface area corresponding to the application interface to which the target content belongs. If it is determined that the drag position of the drag operation is not outside the target area within the interface, then the application identifier is not displayed on the interface.
[0103] In some implementations, after detecting the above drag operation, the electronic device may compare the drag distance of the drag operation with the target distance; according to the comparison result, if the drag distance of the drag operation is greater than the target distance, it indicates that the user needs to share the above target content to other applications, so at least one application icon can be displayed on the interface; if it is determined that the drag distance of the drag operation is not greater than the target distance, the above application icon will not be displayed on the interface.
[0104] Of course, in this embodiment of the application, the specific target drag conditions are not limited. For example, the drag position of the drag operation can be located in a specified position in the interface area mentioned above.
[0105] Step S520: In response to the content identifier being dragged to the position of the application identifier, a preview area corresponding to the application identifier is displayed in the interface, the preview area including the current application interface of the application corresponding to the application identifier.
[0106] In some implementations, the drag-and-drop operation of moving the content identifier to the displayed application identifier can be the same drag-and-drop operation that triggers the display of the application identifier, i.e., the drag-and-drop operation in step S510. Thus, after triggering the display of the application identifier corresponding to the shareable application on the interface through a drag-and-drop operation, the user can continue to drag the content identifier to the location of the application identifier corresponding to the application to which the content is to be shared, thereby triggering the sharing of the target content to the current application interface of that application. In this way, the user can achieve the sharing of target content to the current application interface of the desired application through a continuous drag-and-drop operation of the content identifier, simplifying user operation and improving the user experience.
[0107] In some implementations, the drag operation that drags the content identifier to the position of the displayed application identifier may also be a different drag operation than the drag operation that triggers the display of the application identifier. That is, after the user triggers the display of the application identifier through the drag operation, the drag operation can be ended; and then another drag operation can be performed on the application identifier to control the content identifier to be dragged to the position of the corresponding application identifier.
[0108] Step S530: In response to the end of dragging the content identifier, while the current position of the content identifier is still at the position of the application identifier, share the target content to the current application interface of the application corresponding to the application identifier.
[0109] In this embodiment, step S530 can be found in other embodiments and will not be repeated here.
[0110] The content sharing method provided in this application embodiment can display the current application interface of the application corresponding to the application identifier after dragging and dropping the content identifier to the application identifier position. This allows users to preview the current application interface of the application to which the content is to be shared in the current interface, thus clearly knowing the selected application and its current interface. On the one hand, it allows users to accurately select the application and its interface to be shared, and on the other hand, it facilitates users to select the application and its interface to be shared and share the content in the interface to the current application interface of the desired application, thereby improving the efficiency of sharing content to the desired application interface. In addition, when the content identifier corresponding to the target content is displayed in the interface, the display of the application identifier corresponding to the application to which the content is to be shared is triggered by dragging the content identifier, and the content is subsequently dragged to the position of the corresponding application identifier to trigger the sharing of the content to the corresponding application. This allows users to better perceive that the content to be shared is visible and usable, thereby improving the user experience.
[0111] The content sharing method provided in the aforementioned embodiments will be further illustrated below with examples.
[0112] For example, the content sharing method provided in this application embodiment can be used in scenarios where content generated by a smart assistant is shared to the application interface of other applications. For scenarios involving sharing content generated by a smart assistant to other applications, please refer to... Figure 9 The electronic device displays an interface A1, which includes an interface area A2. This interface area A2 includes the smart assistant's interface A3, and the smart assistant's response is displayed on the smart assistant's interface A3. Please refer to [link / reference]. Figure 3 After detecting a press operation with a duration exceeding a specified duration for the response content A4, the content identifier A4 corresponding to the response content can be displayed in interface area A2; please refer to [link / reference]. Figure 4 Upon detecting a drag operation targeting content identifier A4, if the drag position is outside the interface area A4, a portion of the interface area A2 can be hidden. Figure 4 The interface area A2 shown is collapsed, and the application selection area A5 can be displayed in interface A1. The application selection area A5 includes the application identifier A6 corresponding to the application running in the background, and the above identifier A4 can be maintained in the application selection area A5; please refer to Figure 10 After detecting that content identifier A4 has been dragged to the location of any application identifier A6, a preview area A8 corresponding to application identifier A6 can be displayed at the location of application identifier A6, and the current application interface of the application corresponding to application identifier A6 can be displayed in preview area A8. Furthermore, after detecting that the dragging of content identifier A4 has ended, if the dragged position of content identifier A4 is still at the location of application identifier A6, then the above reply content can be shared to the current application interface of the application corresponding to application identifier A6. Please refer to [link / reference]. Figure 11 The electronic device can also display a floating window A10 corresponding to the current application interface A9, which is the application identifier A6 in the interface, so that the user can operate on the shared reply content in the application.
[0113] Please see Figure 12This document illustrates a structural block diagram of a content sharing device 600 provided in an embodiment of this application. The content sharing device 600 utilizes the aforementioned electronic device and includes: an icon display module 610, a preview display module 620, and a sharing execution module 630. The icon display module 610 displays at least one application identifier in the interface in response to a first operation targeting a content identifier corresponding to target content in the interface. The preview display module 620 displays a preview area corresponding to the application identifier in the interface in response to the content identifier being dragged to the position of the application identifier. The preview area includes the current application interface of the application corresponding to the application identifier. The sharing execution module 630, in response to the end of dragging the content identifier while the current position of the content identifier is still at the position of the application identifier, shares the target content to the current application interface of the application corresponding to the application identifier.
[0114] In some implementations, the icon display module 610 may be specifically used to: display the application identifier of at least one application running in the background in the interface in response to a first operation on the content identifier.
[0115] In one possible implementation, the icon display module 610 may be specifically used to: in response to a first operation on the content identifier, hide the interface area corresponding to the application interface to which the target content belongs, and display an application selection area in the interface, wherein the application selection area includes the application identifier of at least one application running in the background.
[0116] In one possible implementation, the icon display module 610 may be specifically used to: in response to a first operation on the content identifier, switch the current interface to a task management interface, the task management interface including the application identifier of at least one application running in the background and the content identifier.
[0117] In one possible implementation, the icon display module 610 may be specifically used to: in response to a first operation on the content identifier, display the application identifier of a target application running in the background in the interface, wherein the target application is an application with content sharing permissions among background applications.
[0118] In some implementations, the interface area corresponding to the application interface to which the target content belongs is overlaid on the desktop, and the icon display module 610 can be specifically used to: in response to a first operation on the content identifier, hide the interface area overlaid on the desktop, and display at least one application identifier on the desktop.
[0119] In one possible implementation, the preview display module 620 may be specifically used to: in response to the content identifier being dragged to the position of the application identifier, determine the running state of the application corresponding to the application identifier; if the application corresponding to the application identifier is running, display the preview area corresponding to the application identifier on the desktop, the preview area including the current application interface of the application corresponding to the application identifier.
[0120] In some implementations, the sharing execution module 630 may be specifically used to: in response to the end of dragging the content identifier, while the current position of the content identifier is still at the position of the application identifier, and the application corresponding to the application identifier has content sharing permissions, share the target content to the current application interface of the application corresponding to the application identifier.
[0121] In some implementations, the icon display module 610 may be specifically used to: in response to a drag operation on the content identifier, display at least one application identifier in the interface if the drag operation satisfies the target drag condition.
[0122] In one possible implementation, the icon display module 610 may be specifically configured to: in response to a drag operation on the content identifier, when the drag position of the drag operation is outside the target area in the interface, display at least one application identifier in the interface, wherein the target area is the interface area corresponding to the application interface to which the target content belongs, and the display size of the interface area is smaller than the display size of the display interface; or
[0123] In response to a drag operation targeting the content identifier, if the drag distance of the drag operation is greater than the target distance, at least one application identifier is displayed in the interface.
[0124] In some embodiments, the content sharing device 600 may further include an identifier display module, which may be specifically used to: display a content identifier corresponding to the target content in the interface in response to a second operation on target content in the interface.
[0125] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0126] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0127] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0128] In summary, the solution provided in this application, in response to a first operation targeting a content identifier corresponding to the target content on the interface, displays at least one application identifier on the interface. Then, in response to the content identifier being dragged to the position of the application identifier, a preview area corresponding to the application identifier is displayed on the interface. This preview area includes a preview image of the current application interface of the application corresponding to the application identifier. Finally, in response to the end of dragging the content identifier, while the content identifier is still at the position of the application identifier, the target content is shared to the application corresponding to the application identifier. Thus, by dragging the content identifier to the position of the application identifier, the current application interface of the application corresponding to the application identifier is displayed, allowing the user to preview the current application interface of the application to be shared to within the current interface. This clearly shows the selected application and its current interface, facilitating the user's selection of the desired application and improving the efficiency of sharing content to the desired application.
[0129] Please refer to Figure 13 This document illustrates a structural block diagram of an electronic device according to an embodiment of this application. The electronic device 100 can be a smartphone, tablet computer, e-reader, laptop computer, smartwatch, or other electronic device capable of running applications. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a display screen 130, and one or more applications. The one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110. The one or more applications are configured to perform the methods described in the foregoing method embodiments.
[0130] The processor 110 uses various interfaces and lines to connect various parts within the electronic device 100. It executes various functions of the electronic device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120.
[0131] The memory 120 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the various method embodiments described above, etc.
[0132] The display screen 130 is a display component used for displaying images and is usually located on the front panel of the electronic device 100.
[0133] Please refer to Figure 14 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 800 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0134] The computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 810 may, for example, be compressed in a suitable form.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A content sharing method, characterized in that, The method includes: In response to a first operation targeting a content identifier corresponding to a target content in the interface, at least one application identifier is displayed in the interface; In response to the content identifier being dragged to the position of the application identifier, a preview area corresponding to the application identifier is displayed in the interface, the preview area including the current application interface of the application corresponding to the application identifier; In response to the end of dragging the content identifier, while the current position of the content identifier is still at the position of the application identifier, the target content is shared to the current application interface of the application corresponding to the application identifier.
2. The method according to claim 1, characterized in that, The first operation in response to a content identifier corresponding to target content in the interface, displaying at least one application identifier in the interface, includes: In response to a first operation on the content identifier, the application identifier of at least one application running in the background is displayed in the interface.
3. The method according to claim 2, characterized in that, The step of displaying the application identifier of at least one application running in the background in the interface in response to the first operation on the content identifier includes: In response to the first operation on the content identifier, the interface area corresponding to the application interface to which the target content belongs is hidden, and an application selection area is displayed in the interface, the application selection area including the application identifier of at least one application running in the background.
4. The method according to claim 2, characterized in that, The step of displaying the application identifier of at least one application running in the background in the interface in response to the first operation on the content identifier includes: In response to a first operation on the content identifier, the current interface is switched to a task management interface, which includes the application identifier of at least one application running in the background and the content identifier.
5. The method according to claim 2, characterized in that, The step of displaying the application identifier of at least one application running in the background in the interface in response to the first operation on the content identifier includes: In response to the first operation on the content identifier, the application identifier of the target application running in the background is displayed in the interface, wherein the target application is an application with content sharing permission among the background applications.
6. The method according to claim 1, characterized in that, The interface area corresponding to the application interface to which the target content belongs is overlaid on the desktop. The first operation in response to the content identifier corresponding to the target content in the interface, displaying at least one application identifier in the interface, includes: In response to a first operation on the content identifier, the interface area overlaid on the desktop is hidden, and at least one application identifier is displayed on the desktop.
7. The method according to claim 6, characterized in that, The step of responding to the content identifier being dragged to the position of the application identifier by displaying a preview area corresponding to the application identifier in the interface includes: In response to the content identifier being dragged to the position of the application identifier, the running status of the application corresponding to the application identifier is determined; If the application corresponding to the application identifier is running, a preview area corresponding to the application identifier is displayed on the desktop, and the preview area includes the current application interface of the application corresponding to the application identifier.
8. The method according to any one of claims 1-7, characterized in that, The response to ending the drag on the content identifier, while the current position of the content identifier is still at the position of the application identifier, includes sharing the target content to the current application interface of the application corresponding to the application identifier, wherein: In response to the end of dragging the content identifier, if the current position of the content identifier is still at the position of the application identifier, and the application corresponding to the application identifier has content sharing permissions, the target content is shared to the current application interface of the application corresponding to the application identifier.
9. The method according to any one of claims 1-7, characterized in that, The first operation in response to a content identifier corresponding to target content in the interface, displaying at least one application identifier in the interface, includes: In response to a drag operation targeting the content identifier, if the drag operation satisfies the target drag condition, at least one application identifier is displayed in the interface.
10. The method according to claim 9, characterized in that, In response to a drag operation targeting the content identifier, if the drag operation satisfies the target drag condition, displaying at least one application identifier in the interface includes: In response to a drag operation targeting the content identifier, if the drag position is outside the target area of the interface, at least one application identifier is displayed on the interface, where the target area is the interface area corresponding to the application interface to which the target content belongs, and the display size of the interface area is smaller than the display size of the display interface; or In response to a drag operation targeting the content identifier, if the drag distance of the drag operation is greater than the target distance, at least one application identifier is displayed in the interface.
11. The method according to any one of claims 1-7, characterized in that, Before displaying at least one application identifier in the interface in response to a first operation targeting a content identifier corresponding to the target content in the interface, the method further includes: In response to a second operation targeting the target content in the interface, a content identifier corresponding to the target content is displayed in the interface.
12. A content sharing device, characterized in that, The device includes: an icon display module, a preview display module, and a sharing execution module, wherein... The icon display module is used to display at least one application icon in the interface in response to a first operation targeting the content identifier corresponding to the target content in the interface. The preview display module is used to display a preview area corresponding to the application identifier in the interface in response to the content identifier being dragged to the position of the application identifier. The preview area includes the current application interface of the application corresponding to the application identifier. The sharing execution module is used to share the target content to the current application interface of the application corresponding to the application identifier when the drag for the content identifier ends and the current position of the content identifier is still at the position of the application identifier.
13. An electronic device, characterized in that, include: One or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method as described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the method as described in any one of claims 1-11.