Data sharing method and electronic device

By displaying the second interface on the electronic device and allowing the user to drag the controls to the application icon area, the complexity of data sharing in the existing technology is solved, and the effect of simplifying operations and improving the user experience is achieved.

WO2025001241A9PCT designated stage expired Publication Date: 2025-03-20HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/079209
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-29
Filing Date
2024-02-29
Publication Date
2025-03-20

AI Technical Summary

Technical Problem

In the prior art, users need to complexly switch between multiple applications to realize data sharing across applications, resulting in poor user experience.

Method used

A data sharing method is provided, by performing a specific operation on an electronic device, displaying a second interface, including corresponding controls and application icons, the user can drag the controls to the application icon area to realize data sharing, simplifying user operations.

Benefits of technology

It realizes fast, convenient and smooth data transmission across applications, without the need for users to switch between multiple applications, simplifying user operations and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079209_20032025_PF_FP_ABST
    Figure CN2024079209_20032025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a data sharing method and an electronic device. The method comprises: displaying a first interface, wherein the first interface comprises first content and second content; in response to a first operation that a user executes in the first interface, displaying a second interface, wherein the second interface comprises a first control corresponding to the first content, a second control corresponding to the second content, and an icon of a first application; in response to a second operation that the user acts on the first control, displaying a third control; in response to a third operation of continuing to drag the third control into a region in which the icon of the first application is located and release same, sharing, to the first application, data corresponding to the first content; in response to a fourth operation that the user acts on the second control, displaying a fourth control; and in response to a fifth operation of continuing to drag the fourth control into the region in which the icon of the first application is located and release same, sharing, to the first application, data corresponding to the second content. The method can simplify user operations, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Data sharing method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on June 29, 2023, with application number 202310794454.X and application name “Data Sharing Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of electronic technology, and in particular to a data sharing method and electronic equipment. Background Art

[0003] Mobile phones, tablets, and other electronic devices typically have numerous applications installed and offer numerous services. Users often need to share content from their current interface with another application or service. Currently, in this situation, users must first select and copy the content on the interface, then exit the current application, open another application, and then paste the copied content into the other application. This process is complex and results in a poor user experience.

[0004] Summary of the Invention

[0005] The present application provides a data sharing method and electronic device that can quickly, conveniently and smoothly transmit data across applications without requiring users to switch between multiple applications, thereby simplifying user operations and improving user experience.

[0006] The present application provides a data sharing method, which is performed by an electronic device and includes:

[0007] Display a first interface, which includes first content and second content; in response to a first operation performed by a user in the first interface, display a second interface, which includes a first control corresponding to the first content, a second control corresponding to the second content, and an icon of a first application; in response to a second operation performed by a user on the first control, display a third control; detect a third operation of continuing to drag the third control into the area where the icon of the first application is located and releasing it; in response to the third operation, share data corresponding to the first content with the first application; in response to a fourth operation performed by the user on the second control, display a fourth control; detect a fifth operation of continuing to drag the fourth control into the area where the icon of the first application is located and releasing it; in response to the fifth operation, share data corresponding to the second content with the first application.

[0008] The first interface is the interface before interface extraction. The second interface is the interface after interface extraction.

[0009] Optionally, the first content and the second content can be one of text, pictures, videos, files, links, etc. The types of the first content and the second content can be the same or different. It is understandable that the first interface can also include other content in addition to the first content and the second content.

[0010] Optionally, the first operation may be a side-sliding and hovering operation, or a combination of a side-sliding and hovering operation and other operations, such as continuing to slide a preset distance toward the inside of the screen after a side-sliding and hovering operation, or clicking a preset control (such as a lock control) in a control bar (such as a sidebar) after a side-sliding and hovering operation.

[0011] Optionally, the second interface may be an "any door" interface or a "locked state interface".

[0012] The first control and the second control are controls that can be used by users to perform operations (including the second operation, the third operation, the fourth operation and the fifth operation, etc.) that trigger the smart flow.

[0013] Optionally, the second operation and the fourth operation may be a long press operation, or an operation of long pressing after selection, etc.

[0014] Optionally, the third and fourth controls may be in the form of cards, capsules, bubbles, or the like. The third and fourth controls may be movable with a user's dragging operation, i.e., the user may drag the third and fourth controls. The third and fourth controls may be displayed in a suspended manner within the interface.

[0015] In the data sharing method provided in the first aspect of the present application, the user only needs to trigger the display of the second interface through the first operation. In the second interface, the second operation and the third operation can trigger the sharing of the data corresponding to the first content to the first application, that is, triggering the smart flow service, quickly, conveniently and smoothly realizing cross-application data transmission, without the user having to switch between multiple applications, simplifying user operations and improving user experience. Moreover, the electronic device extracts multiple contents from the interface at the same time, and displays multiple controls (including the first control and the second control) in the second interface, so that the user can select any one or more smart flow services according to needs, which is convenient to use and further improves the user experience. And after sharing the data corresponding to the third control to the first application, the user can further perform the fourth operation and the fifth operation to share the data corresponding to the fourth control to the first application. In other words, based on the second interface, the user can trigger the smart flow service multiple times, without the user having to repeatedly perform the interface extraction operation, further simplifying the user operation and improving the user experience.

[0016] In a possible implementation, the second interface includes a control bar, the control bar includes an icon of at least one application, and the at least one application includes the first application.

[0017] That is, the first operation triggers the display of the first control, the second control, and the control bar, which includes at least one application icon. The application icons are displayed in the control bar, which facilitates unified display and management of the application icons and also makes it easier for the user to perform control dragging operations, thereby improving the user experience.

[0018] In a possible implementation, the method further includes: in response to a second operation, displaying an icon of a second application matching the first content; and in response to a fourth operation, displaying an icon of a third application matching the second content.

[0019] Optionally, the application that matches the first content, that is, the candidate application for the first content, refers to an application that can receive the first content. Optionally, the corresponding second application can be matched according to the type of the first content. For example, when the first content is text, the second application that matches the first content may include one or more of sharing, forwarding, collection, memo, printing and translation. When the first content is a picture, the second application that matches the first content may include one or more of collection, sharing, saving, printing and object recognition. When the first content is a shopping link, the second application that matches the first content may include one or more of shopping, price comparison, collection, sharing and forwarding. When the first content is an address link, the second application that matches the first content may include one or more of navigation, taxi, collection and sharing.

[0020] The same is true for the icon of the third application that matches the second content, which will not be described in detail.

[0021] In this implementation, in response to the user's operation on a certain control, the application that matches the content corresponding to the control is automatically displayed, providing the user with a more content-oriented and flexible sharing service, without the user having to manually search for matching applications, further simplifying user operations and improving user experience.

[0022] In one possible implementation, the method further includes: displaying a fifth control in response to a sixth operation performed by the user on the first control; detecting a seventh operation of continuing to drag the fifth control into the area where the icon of the second application is located and releasing it; and sharing data corresponding to the first content to the second application in response to the seventh operation.

[0023] Optionally, the sixth operation can be the same as the second operation, and can be a long press operation, or a long press operation after selection. The fifth control is similar to the third and fourth controls and can be a control in the form of a card, capsule, or bubble. Part or all of the first content can be displayed on the fifth control.

[0024] In other words, the user can further perform the sixth and seventh operations based on the first control to share the data corresponding to the first content with an application that matches the first content. This facilitates a more flexible sharing service that better meets the user's usage scenarios and needs, further improving the user experience.

[0025] Of course, the user may also perform related operations based on the second control to share the data corresponding to the second content to an application that matches the second content, which will not be described in detail here.

[0026] In a possible implementation, the first content is displayed on the first control and the third control, and the second content is displayed on the second control and the fourth control.

[0027] Optionally, the first and third controls may display all or part of the first content. Furthermore, the content displayed on the first and third controls may be the same or different. The second and fourth controls may display all or part of the second content. Furthermore, the content displayed on the second and fourth controls may be the same or different.

[0028] In this implementation, content is displayed on the first control, the third control, the third control, and the fourth control, so that users can intuitively know the correspondence between the controls and the content, thereby facilitating users to operate the corresponding controls according to their needs, triggering the intelligent flow of the content corresponding to the controls, and improving the user experience.

[0029] In one possible implementation, the first content is text, the first interface also includes third content, the third content is text, the first content and the third content are displayed on the first control, and the second operation is: select the first content on the second control and long press it; the second content is an image, and the fourth operation is: long press the image.

[0030] That is, in addition to the first text content, the first interface also displays a third text content. In the second interface, the first and third contents are displayed together on the first control. In this case, the user can trigger the display of the third control by first selecting the first content and then long pressing the selected content.

[0031] Optionally, the user may select the first content by one or more operations such as long pressing, dragging, smearing, and taking a screenshot with a knuckle.

[0032] Optionally, the operation of selecting the first content on the control and the long press operation can be continuous operations or intermittent operations, that is, the hand is raised after performing the selection operation, and then the long press operation is performed.

[0033] For the second control corresponding to the image in the second interface, the user can trigger the display of the fourth control through a long press operation.

[0034] In this implementation, controls for different types of content provide different operations. For text, users can select part or all of it, then perform actions like long-pressing or dragging to trigger smart transfers. This makes it easier for users to select the content they need and share it with other apps, making it more convenient and flexible, further improving the user experience.

[0035] In one possible implementation, the first content is physical text, the first interface also includes third content, the third content is text, the third content and the first sub-control are displayed on the first control, the first content is displayed on the first sub-control, and the second operation is: long press the first sub-control.

[0036] Optionally, the third content may be entity text or general text. The first sub-control may be a control in the form of a capsule, a bubble, etc. The first sub-control may be displayed in a suspended or highlighted manner.

[0037] In this implementation, for entity text, the user does not need to select the text, and the third control can be directly triggered to be displayed through a long press operation, which simplifies the user operation and further improves the user experience.

[0038] In a possible implementation, the method further includes: in response to a user clicking on the first sub-control, displaying a third interface, where the third interface includes an interface of at least one application matching the first content.

[0039] The third interface is the interface displayed after clicking the first sub-control. Depending on the type of the first content, the third interface displays different applications. For example, if the first content is a phone number, the third interface may include the interface of the phone application; if the first content is a shopping link, the third interface may include the interface of the shopping application; if the first content is an address link, the third interface may include the interface of the map application, etc.

[0040] In one possible implementation, the first operation is: performing a first sliding operation from the edge of the screen of the electronic device to the inside, and staying at the end point of the first sliding operation for more than a preset time; wherein the sliding distance of the first sliding operation exceeds a first preset distance; the second interface also includes part or all of the content of the first interface, and the content of the first interface is displayed with a right perspective effect.

[0041] Optionally, in this implementation, the second interface may further include a control bar, the control bar including an icon of at least one application, the at least one application including the first application. That is, the first operation is a slide-and-hover operation, and the second interface is an "Any Door" interface.

[0042] In this implementation, by swiping and hovering, the first control, the second control, and the first application can be displayed in one step, making it easier for users to operate. In addition, the second interface is displayed with a "anywhere door" effect, which improves the visual display effect and further enhances the user experience.

[0043] In a possible implementation, the first control and the second control are displayed with a right perspective effect.

[0044] That is, the first control and the second control are displayed on the door of the "any door".

[0045] In a possible implementation, the first control and the second control are displayed in a floating manner above the layer where the content of the first interface is located.

[0046] These two implementation methods provide different display effects for the first control and the second control, bringing different visual experiences to users, further improving the display effect of the interface and enhancing the user experience.

[0047] In one possible implementation, the first content and the second content are links, the first control includes fourth content, and the second control includes fifth content. The fourth content is obtained from the web page corresponding to the first content, and the fifth content is obtained from the web page corresponding to the second content.

[0048] Optionally, the fourth content may vary depending on the link type of the first content. The fifth content may also vary depending on the link type of the second content. For example, if the first content is a shopping link, the fourth content may be an image of an item on the shopping webpage corresponding to the shopping link. If the first content is a news link, the fourth content may be the title, summary, or image of the news on the news webpage corresponding to the news link. The same applies to the second and fifth content, and will not be further described.

[0049] In this implementation, the fourth content is displayed in the first control and the fifth content is displayed in the second control, realizing visualization of the first control and the second control. The user can intuitively know the key information in the web page corresponding to the link, which is convenient for the user to select the required control to trigger the intelligent flow, thereby improving the user experience.

[0050] In one possible implementation, the first operation is: performing a first sliding operation from the edge of the screen of the electronic device to the inside, and staying at the end point of the first sliding operation for more than a preset time, and then continuing to perform the second sliding operation; the sliding distance of the first sliding operation exceeds the first preset distance, and the sliding distance of the second sliding operation exceeds the second preset distance; in response to the first operation performed by the user in the first interface, displaying the second interface, including: in response to the user performing the first sliding operation from the edge of the screen of the electronic device to the inside, and staying at the end point of the first sliding operation for more than a preset time, displaying the fourth interface, the fourth interface including a control bar, the control bar including an icon of at least one application, and the at least one application including the first application; in response to the user continuing to perform the second sliding operation, displaying the second interface.

[0051] That is, the fourth interface is an interface including a control bar in a temporary state.

[0052] In one possible implementation, the first operation is: performing a first sliding operation from the edge of the screen of the electronic device to the inside, and staying at the end point of the first sliding operation for more than a preset time, and then clicking the sixth control; the sliding distance of the first sliding operation exceeds the first preset distance; in response to the first operation performed by the user in the first interface, displaying the second interface, including: in response to the user performing a first sliding operation from the edge of the screen of the electronic device to the inside, and staying at the end point of the first sliding operation for more than a preset time, displaying the fifth interface, the fifth interface including a control bar, the control bar including an icon of at least one application and a sixth control, the at least one application including the first application; in response to the user clicking the sixth control, displaying the second interface.

[0053] That is, the fifth interface is an interface including a control bar in a temporary state. Optionally, the fourth interface may be the same as or different from the fifth interface.

[0054] The sixth control is also called the lock control.

[0055] In a possible implementation, the second operation and the third operation are continuous and uninterrupted operations; the fourth operation and the fifth operation are continuous and uninterrupted operations.

[0056] In this implementation, the second operation and the third operation are continuous and uninterrupted operations, and the fourth operation and the fifth operation are continuous and uninterrupted operations, which further simplifies the user's operation and improves the user experience.

[0057] In one possible implementation, in response to a first operation performed by a user in a first interface, a second interface is displayed, including: in response to the first operation, extracting target content in the first interface, the target content including first content and second content; and displaying the second interface according to the target content.

[0058] The target content is the extracted content in the first interface.

[0059] In a second aspect, an embodiment of the present application provides a data sharing method, which is performed by an electronic device and includes:

[0060] Display a first interface, which includes a first control and a second control; display a third control in response to a first operation performed by a user on the first control; detect a second operation of dragging the third control into a first area of ​​the screen; display an icon of a first application in response to the second operation; detect a third operation of continuing to drag the third control into the area where the icon of the first application is located and releasing it; share first data corresponding to the third control with the first application in response to the third operation; display a fourth control in response to a fourth operation performed by the user on the second control; detect a fifth operation of dragging the fourth control into the first area; display the icon of the second application in response to the fifth operation; detect a sixth operation of continuing to drag the fourth control into the area where the icon of the second application is located and releasing it; share second data corresponding to the fourth control with the second application in response to the sixth operation.

[0061] The first interface is the interface after the interface extraction. It is understandable that the first interface may include other controls in addition to the first control and the second control.

[0062] Optionally, the first operation and the fourth operation may be a long press operation, or an operation of long pressing after selection, etc.

[0063] The first area may be an area at a preset position in the interface, such as the area on the right 1 / 4 of the screen.

[0064] Optionally, the third and fourth controls may be in the form of cards, capsules, bubbles, or the like. The third and fourth controls may be movable with a user's dragging operation, i.e., the user may drag the third and fourth controls. The third and fourth controls may be displayed in a suspended manner within the interface.

[0065] In the data sharing method provided in the second aspect of the present application, the user can trigger the sharing of the data corresponding to the first content to the first application through the first operation, the second operation and the third operation in the first interface, that is, trigger the smart flow service, quickly, conveniently and smoothly realize cross-application data transmission, without the user having to switch between multiple applications, simplifying user operations and improving user experience. Moreover, multiple controls (including the first control and the second control) are displayed in the first interface, which facilitates the user to select any one or more smart flow services according to needs, facilitates use, and further improves user experience. And after sharing the data corresponding to the third control to the first application, the user can further perform the fourth operation, the fifth operation and the sixth operation to share the data corresponding to the fourth control to the second application. In other words, based on the first interface, the user can trigger the smart flow service multiple times, without the user having to repeatedly perform the interface extraction operation, further simplifying user operations and improving user experience.

[0066] In a possible implementation, the first operation, the second operation, and the third operation are continuous and uninterrupted operations. The fourth operation, the fifth operation, and the sixth operation are continuous and uninterrupted operations.

[0067] In other words, users can trigger a smart flow through a single operation, realizing cross-application data transmission, further simplifying user operations and improving user experience.

[0068] In one possible implementation, before displaying the first interface, the method also includes: displaying a second interface, the second interface including first content and second content; the first content is content corresponding to the first data, and the second content is content corresponding to the second data; in response to a seventh operation performed by the user in the second interface, displaying the first interface; the first control is a control corresponding to the first content, and the second control is a control corresponding to the second content.

[0069] The second interface is the interface before interface extraction. Optionally, the first content and the second content can be one of text, pictures, videos, files, links, etc. The first content and the second content can be of the same type or different types. It is understood that the second interface can include other content in addition to the first content and the second content.

[0070] In this implementation method, the user only needs to trigger the extraction of multiple contents in the interface through the seventh operation, and then display the corresponding multiple controls in the first interface, which makes it convenient for the user to operate the required controls according to needs, trigger intelligent flow, and improve user experience.

[0071] In one possible implementation, the seventh operation is one of a two-finger long press operation, a three-finger left swipe operation, a three-finger right swipe operation, a knuckle swipe up operation, a knuckle swipe left operation, or a knuckle swipe right operation.

[0072] In one possible implementation, in response to the second operation, the icon of the first application is displayed, including: in response to the second operation, a third interface is displayed, the third interface includes the content and a control bar of the second interface, the control bar includes the icon of at least one application, the at least one application includes the first application, and the content of the second interface is displayed with a right perspective effect.

[0073] The third interface is the "Any Door" interface. The "Any Door" interface can improve the visual display effect and further enhance the user experience.

[0074] In a possible implementation, the at least one application includes an application matching the first content.

[0075] In this implementation, in response to the user's second operation, applications matching the first content are automatically displayed, providing users with more content-appropriate and flexible sharing services without the need for users to manually search for matching applications, further simplifying user operations and improving user experience.

[0076] It is understandable that when the user performs the fourth operation, the "Any Door" interface may also be displayed, and the application matching the second content may be displayed in the control bar in the interface, which will not be described in detail here.

[0077] In a possible implementation, in response to a fourth operation performed by the user on the second control, before displaying the fourth control, the method further includes: restoring the display of the first interface.

[0078] It can be understood that restoring the display of the first interface refers to displaying an interface, which includes at least a first control and a second control for users to trigger the smart flow. The specific content displayed in this interface can be the same as or different from the specific content displayed in the above-mentioned first interface.

[0079] In this implementation, the first interface is restored and displayed, making it easier for the user to perform related operations again to trigger the smart flow service. The user does not need to perform the operation of triggering interface extraction multiple times, which simplifies user operations and improves user experience.

[0080] In a possible implementation, the third interface includes a first control and a second control.

[0081] That is to say, after displaying the "Any Door" interface, the first control and the second control can be further displayed in the "Any Door" interface, so that the user can perform related operations again to trigger the smart flow service, without the need for the user to perform the trigger interface extraction operation multiple times, thereby simplifying user operations and improving user experience.

[0082] Optionally, the first control and the second control may be displayed in the third interface with a right perspective effect, or may be displayed suspended above a layer where other content is located.

[0083] In one possible implementation, the first application and the second application are the same as or different from each other.

[0084] That is to say, when executing the smart flow service multiple times, the application receiving the data can be the same or different.

[0085] In a third aspect, the present application provides a device, which is included in an electronic device and has the function of implementing the electronic device behavior described in the first aspect and possible implementations of the first aspect. The function can be implemented through hardware or through hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a receiving module or unit, a processing module or unit, etc.

[0086] In a fourth aspect, the present application provides a device, which is included in an electronic device and has the function of implementing the behavior of the electronic device in the above-mentioned second aspect and the possible implementation methods of the above-mentioned second aspect.

[0087] In a fifth aspect, the present application provides an electronic device, which includes: a processor, a memory, and an interface; the processor, the memory, and the interface cooperate with each other to enable the electronic device to execute any one of the methods in the technical solution of the first aspect, or to enable the electronic device to execute any one of the methods in the technical solution of the second aspect.

[0088] In a sixth aspect, the present application provides a chip comprising a processor, wherein the processor is configured to read and execute a computer program stored in a memory to perform the method of the first aspect and any possible implementation thereof, or to perform the method of the second aspect and any possible implementation thereof.

[0089] Optionally, the chip also includes a memory, and the memory is connected to the processor via circuits or wires.

[0090] Further optionally, the chip also includes a communication interface.

[0091] In the seventh aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes any one of the methods in the technical solution of the first aspect, or the processor executes any one of the methods in the technical solution of the second aspect.

[0092] In an eighth aspect, the present application provides a computer program product, which includes: a computer program code, which, when the computer program code runs on an electronic device, enables the electronic device to execute any one of the methods in the technical solution of the first aspect, or enables the electronic device to execute any one of the methods in the technical solution of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] FIG1 is a schematic diagram of an interface of an example of an “Any Door” provided by an example of this application;

[0094] FIG2 is a schematic diagram of another example of an “Any Door” interface provided in an embodiment of the present application;

[0095] FIG3 is a schematic diagram of interface changes of an example of a data sharing method provided in an embodiment of the present application;

[0096] FIG4 is a schematic diagram of interface changes of an example of a data sharing method provided in an embodiment of the present application;

[0097] FIG5 is a schematic diagram of interface changes of another data sharing method provided in an embodiment of the present application;

[0098] FIG6 is a schematic diagram of interface changes of another data sharing method provided in an embodiment of the present application;

[0099] FIG7 is a schematic diagram of interface changes of another data sharing method provided in an embodiment of the present application;

[0100] FIG8 is a schematic diagram of interface changes of another data sharing method provided in an embodiment of the present application;

[0101] FIG9 is a schematic diagram of interface changes of another data sharing method provided in an embodiment of the present application;

[0102] FIG10 is a schematic diagram of interface changes of another data sharing method provided in an embodiment of the present application;

[0103] FIG11 is a schematic diagram of an example service interface provided in an embodiment of the present application;

[0104] FIG12 is a schematic diagram of another example of a service interface provided in an embodiment of the present application;

[0105] FIG13 is a schematic diagram of interface changes of another data sharing method provided in an embodiment of the present application;

[0106] FIG14 is a schematic diagram of interface changes of another data sharing method provided in an embodiment of the present application;

[0107] FIG15 is a flow chart of a data sharing method according to an embodiment of the present application;

[0108] FIG16 is a flow chart of another data sharing method provided in an embodiment of the present application;

[0109] FIG17 is a flowchart of another data sharing method provided in an embodiment of the present application;

[0110] FIG18 is a flow chart of another data sharing method provided in an embodiment of the present application;

[0111] FIG19 is a flow chart of another data sharing method provided in an embodiment of the present application;

[0112] FIG20 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0113] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0114] In the following, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the technical features indicated. Therefore, a feature specified as "first," "second," or "third" may explicitly or implicitly include one or more of the features.

[0115] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of the present application include a particular feature, structure, or characteristic described in conjunction with that embodiment. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in different places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0116] To better understand the embodiments of the present application, the terms or concepts that may be involved in the embodiments are explained below.

[0117] 1. Applications, Services, and Atomic Services

[0118] An application is a complete entity installed on an electronic device's system that provides services to users. Applications are provided by application service providers. Applications can consist of multiple services, forming a series of aggregated services. For example, applications may include: camera, map, music, phone, memo, and so on.

[0119] Services are described and defined from a business (or functional) perspective and refer to the business service capability units within the operating system of an electronic device. Multiple services can be combined based on business scenarios to form one or a series of intelligent services (e.g., an application) within an electronic device. For example, services may include favorites, sharing, translation, and taxi hailing.

[0120] Atomic services are the indecomposable basic service units that make up an application. They are also the smallest unit that the operating system can manage and assign permissions to. An atomic service can also be "shared" by multiple applications.

[0121] In summary, services can be divided into atomic services and non-atomic services. Non-atomic services are service units that can be further decomposed. An application can include multiple services. For example, a map application can include navigation services, ride-hailing services, etc. A memo application can include note-taking services, to-do services, etc. Of course, services can also be provided directly by the electronic device's system without being included in the application, such as sharing services.

[0122] Electronic devices can provide users with access to a range of services through applications, or they can provide users with access to a specific service through services. For example, the sidebar of an electronic device can display both application portals (icons) and service portals (icons) to facilitate users to access the corresponding application or service through the portal.

[0123] 2. Application

[0124] In the embodiment of the present application, applications and services can be collectively referred to as applications. In other words, an application can be an application or a service.

[0125] 3. Entity Text

[0126] Entity text, also known as named entity text, refers to text corresponding to an entity with specific meaning or strong referentiality. In other words, entity text refers to text that belongs to a predefined entity type. Entity text can include names of people, places, organizations, dates, URLs, phone numbers, and more.

[0127] The process of identifying entity text is called named entity recognition (NER), also known as proper name recognition. It is a fundamental task in natural language processing. NER extracts entities of a predetermined type from unstructured input text. NER can also identify more types of entities, such as product names, models, and prices, based on business needs.

[0128] 4. Generic Text

[0129] Generic text is also known as non-entity text.

[0130] 5. Smart circulation and smart circulation services

[0131] In the embodiments of the present application, smart transfer refers to the process of sharing data (referred to as data to be transferred) from one application to another application or another service. The data to be transferred includes but is not limited to text, pictures, videos, documents, links, etc.

[0132] Smart transfer service refers to matching applications or services (collectively referred to as candidate applications) that can receive data to be transmitted, and providing users with a service that quickly forwards the data to the candidate applications.

[0133] Before describing in detail the data sharing method provided in the embodiment of the present application, the application scenario of the method is first described.

[0134] Mobile phones, tablet computers and other electronic devices usually have a large number of applications installed, and can provide many services. During use, users often need to copy the content in the current interface to another APP or service for use, so they need to switch between multiple applications or services. For example, when using an instant messaging application, you need to copy the text related to the address in the current interface, then open the map application, and paste the text in the map application to search and navigate to the address. The above process of copying content to other applications or services is relatively complicated, and the user operation is relatively cumbersome. In addition, in actual use, there are even some interfaces where the copy operation cannot be performed directly. In this scenario, the user needs to apply the content in the interface to other services or applications, and the operation is even more cumbersome.

[0135] In view of this, an embodiment of the present application provides a data sharing method, in which the user can trigger the electronic device to extract and display the elements of the interface through preset operations, and in response to the user's related operations on the extracted elements (such as long press and drag, etc.), trigger the smart flow service, determine one or more candidate applications that can receive the extracted elements, and display the icons of the candidate applications. When the user drags the extracted elements to the area where the icon of a candidate application is located and raises his hand (also called release), the electronic device shares the extracted elements to the candidate application to realize smart flow. The above process can quickly, conveniently and smoothly realize cross-application data transmission without the user having to switch between multiple applications, simplifying user operations and improving user experience. On the other hand, the method provided in the embodiment of the present application allows the electronic device to extract multiple types of elements in the interface at the same time, so that the user can select the required elements from them for smart flow service, and after one interface extraction, the user can perform multiple smart flow services without the user having to repeatedly perform the operation to trigger interface extraction, further simplifying user operations and improving user experience.

[0136] The data sharing method provided in the embodiments of the present application can be applied to electronic devices that can install application programs (APPs), such as mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). The embodiments of the present application do not impose any restrictions on the specific types of electronic devices. The hardware structure and software architecture of the electronic devices will be described in detail in subsequent embodiments.

[0137] The following takes a mobile phone as an example of an electronic device, and describes in detail the data sharing method provided in the embodiment of the present application in combination with the accompanying drawings and application scenarios.

[0138] The data sharing method provided in the embodiment of the present application is that the user performs a preset operation, triggering the mobile phone to extract and display a variety of preset types of elements (also called content) in the interface. Optionally, when extracting the interface, a preset area of ​​the screen can be extracted. Optionally, the content of the preset type of components in the interface can also be extracted according to the interface layout. For example, the content area in the interface can be extracted, and the content in the form and control is not extracted. Among them, the content area refers to the component used to display the content of the main elements in the interface. The form may include a status bar, a navigation bar, a toolbar, a tab bar, an input box and a search bar (also called a search box), etc. In addition, the user avatar and input method interface in the content area may not be extracted.

[0139] Optionally, multiple preset types of elements may include but are not limited to text elements, picture elements, video elements, file elements, and link elements. Among them, text elements refer to the text content in the interface. The format of the picture element can be JPG or PNG, etc. The format of the video element can be MP4, AVI or WMV, etc. There is no limitation on the format of the file element. Link elements refer to links to other pages in the interface, which can be links to pages in any application. For example, a link element can be a web link in a browser, a shopping link in a shopping application, an address link in a map application, or a meeting link in a meeting application, etc. In addition, the link element can be a plain text link, an anchor text link or a hyperlink, or an image link, etc.

[0140] After extracting the elements in the interface, the mobile phone displays the extracted elements. At the same time, a sidebar can also be displayed in the interface, and the sidebar includes icons of preset services or applications. The user can move the elements extracted from the interface to the area where the icon of the required service or application is located by long pressing, dragging, etc., triggering the smart flow service, and sharing the extracted elements to the service or application. The area where the icon is located refers to the preset area containing the icon, that is, the area of ​​the icon and the surrounding preset range. In the embodiment of the present application, the sharing of data may include data transmission, data exchange or data sharing, etc. The following embodiment is explained by taking data transmission as an example. In addition, in the embodiment of the present application, the data transmitted during the smart flow (that is, the data to be transmitted) is the data corresponding to the element, so the following embodiment can also be referred to as transmitting the element to other applications or services.

[0141] The implementation process of the data sharing method is described below with reference to the accompanying drawings.

[0142] In the embodiments of the present application, at least three data sharing methods are provided (the following embodiments 1 to 3) according to the different ways of triggering interface extraction, triggering the smart flow service, and displaying the extracted elements, original interface, etc. In the process of smart flow service, the icons of candidate applications can be displayed in the sidebar. In the following embodiments 1 and 2, the sidebar and other content can be displayed in the form of "any door". For ease of understanding, the "any door" is first explained.

[0143] Exemplarily, Figure 1 is a schematic diagram of an interface of an "Any Door" provided by the example of this application. As shown in Figure 1, after extracting elements in a certain interface, the original interface can be adjusted to a right perspective effect and displayed as a sub-interface 401. The extracted elements are also displayed in a right perspective effect on the top layer of the sub-interface 401. At the same time, a sidebar 402 is displayed on the right side of the sub-interface 401 (i.e., the right edge of the screen). The display effect presented by the sub-interface 401 and the sidebar 402 is like an open door on the screen. In this embodiment of the application, the interface of this display effect is called "Any Door". In this embodiment of the application, the process of starting to display "Any Door" on the screen can be called opening "Any Door", or "pushing the door".

[0144] Optionally, the mobile phone can further identify and process the extracted elements, analyze the semantics of the elements, and display the elements in groups according to the results of the semantic analysis. Specifically, when displaying in groups, the principles to be followed may include but are not limited to: 1) The elements in the same group are of the same type. For example, the elements contained in a certain group are all text elements, and the elements contained in another group are all picture elements. 2) For picture elements, video elements, file elements, link elements, etc., one element is regarded as a group. For example, a picture is regarded as a group, the link corresponding to a page is regarded as a group, a file is regarded as a group, etc. 3) For text elements, they can be grouped according to the results of semantic recognition and text paragraphs. For example, the text of one or more semantically continuous paragraphs is regarded as a group.

[0145] Specifically, as shown in FIG1 , the text 1011 extracted from the interface can be divided into a group, the image 1012 in the interface can be divided into a group, and the text 1013 can be divided into a group. The display is performed according to the grouping results. In this embodiment, the extracted elements are grouped and displayed to facilitate subsequent user operations on the elements of each group, triggering the smart flow service and improving the user operation experience.

[0146] Optionally, when the extracted elements are grouped and displayed, the elements of the same group can be displayed in the form of a card, a bubble or a capsule. For example, in Figure 1, text 1011 is displayed in card 4011, picture 1012 is displayed in card 4012, and text 1013 is displayed in card 4013. Optionally, shadows, fills (shown as pattern fills in the figure of the present application) and the like can also be set for these controls to present the display effect of each group of elements emerging in the interface, thereby further improving the user experience. The embodiment of the present application does not make any limitation on the display mode of the elements or the controls corresponding to the elements, but no matter which display mode, after the extracted elements or the controls corresponding to the elements are displayed in the interface, the user can perform related operations on the elements or the controls corresponding to the elements, for example, select, long press, long press and drag, etc.

[0147] As another possible implementation, after extracting and grouping elements from the interface, the phone can display only the original interface with a right-angle effect, forming a "portal" between the original interface and the sidebar. The grouped elements can be displayed floating above the layer where the "portal" interface resides (without the right-angle effect).

[0148] Optionally, the mobile phone can directly display the grouped elements in a floating manner above the layer where the "Any Door" interface is located, or the elements can be processed before being displayed in a floating manner. In a specific embodiment, the mobile phone can obtain key information from each group of elements based on the extracted elements, and based on the key information, a control (such as a card, capsule, bubble, etc.) for each group of elements can be displayed in a floating manner. This control can be called a visual control.

[0149] Specifically, for link elements, you can view the content of the corresponding page according to the link, and select relevant pictures or texts in the page as key information to generate a visual control for the group of elements. For example, for a news link, you can open the news webpage in the background according to the link, and obtain the title or picture in the news webpage, and display the title or picture in the control corresponding to the news link to generate a visual control. For a shopping link, you can open the shopping webpage corresponding to the link in the background according to the link, obtain the picture of the product in the shopping webpage as key information, and display the picture in the control corresponding to the shopping link to generate a visual control. For file elements, you can read the file name and file type, or open and read the content of the file in the background, obtain the title of the file as key information, and display the key information in the control corresponding to the file to generate a visual control. Optionally, these visual controls can be displayed floating above the layer where the "any door" is located.

[0150] For example, FIG2 is a schematic diagram of another example of an "Any Door" interface provided by an embodiment of the present application. As shown in FIG2(a), the current mobile phone screen displays a chat interface 501, which includes a news link 5011, a shopping link 5012, a file 5013, and an address link 5014. After extracting elements from interface 101, the mobile phone can display the original interface (i.e., interface 101) with a right perspective effect, as shown in FIG2(b) interface 502. The grouped elements are displayed in the form of visual cards. As shown in FIG2(b), the visual cards include visual card 503, visual card 504, visual card 505, and visual card 506. Among them, visual card 503 is generated based on the news link 5011 in the original interface (i.e., interface 501), visual card 504 is generated based on the shopping link 5012 in the original interface 501, visual card 505 is generated based on the file 5013 in the original interface 501, and visual card 506 is generated based on the address link 5014. Visualization card 503, visualization card 504, visualization card 505, and visualization card 506 are displayed floating above the "Any Door" layer. Optionally, each visualization card can also be provided with a shadow or fill (shown as a pattern fill in the figure of this application) to present the display effect of each group of elements floating in the interface, thereby further improving the user experience. This embodiment of the application does not impose any limitation on this. Sidebar 807 includes icons of multiple applications or services.

[0151] It should be noted that, in this implementation, image elements, text elements, video elements, etc. can be directly displayed in the card.

[0152] In this implementation, key information of each element group is obtained based on the extracted elements, and the element controls are displayed based on the key information. In this way, users can intuitively understand the content corresponding to the elements, making it easier for users to select the required elements for service operations, thereby improving the user experience.

[0153] The following describes the implementation processes of the three data sharing methods respectively with reference to FIG1 and FIG2.

[0154] Example 1: Side sliding and hovering operations trigger interface extraction and the opening of a "portal" for intelligent flow.

[0155] A side-slide hover operation refers to sliding inward from the left or right edge of the screen and staying at the end point of the sliding operation for more than a preset time (i.e., hovering). The sliding operation distance exceeds the preset distance.

[0156] In this embodiment, the user performs a side-slide hover operation in the interface to trigger interface extraction and trigger the opening of the "Any Door". Among them, when the "Any Door" is opened, the original interface and the extracted elements can be displayed with a right perspective effect (as shown in Figure 1 above), or only the original interface is displayed with a right perspective effect, and the extracted elements are displayed in the form of a visual control suspended above the layer where the "Any Door" is located (as shown in Figure 2 above). Then, the user long presses an element and drags it to trigger the smart flow service. The sidebar displays candidate icons that match the element that the user long presses. The user continues to drag the element to the area where the icon of an application or service is located in the sidebar and raises his hand to realize smart flow and transfer the element to the application or service. Optionally, after the element is transferred to the icon of an application or service, the electronic device can also start the application or service and display the corresponding interface. It should be noted that in the embodiment of the present application, when describing a certain operation, if it is not emphasized that it is a two-finger, three-finger, etc., then the operation defaults to a single-finger operation, which will not be repeated below.

[0157] First, in combination with the application scenario of "pictures in the collection interface", the data sharing method in this embodiment is explained by taking the "any door" shown in Figure 1 as an example.

[0158] For example, FIG3 is a schematic diagram of the interface changes of an example data sharing method provided in an embodiment of the present application. As shown in FIG3 (a), an interface 101 is displayed on the screen. The interface 101 includes text 1011, a picture 1012, and text 1013. The user performs a side sliding and hovering operation in the interface 101, and the mobile phone extracts the elements in the interface 101 in response to the user's side sliding and hovering operation, that is, extracts the text 1011, the picture 1012, and the text 1013. Afterwards, the mobile phone groups the extracted elements, treating the text 1011 as a group, the picture 1012 as a group, and the text 1013 as a group. Then, the mobile phone opens the "any door" based on the grouping results of the elements, and displays the sub-interface 401 and the sidebar 402 as shown in FIG3 (b).

[0159] The sub-interface 401 includes cards corresponding to each group of elements, such as card 4011, card 4012 and card 4013. For details, please refer to the embodiment shown in Figure 1. It is worth noting that at this time, the icons displayed in the sidebar 402 are icons of default applications or services.

[0160] Afterwards, the user long presses a card of a certain group of elements, and the mobile phone displays the icons of applications or services that match the group of elements in the card selected by the user and the semantics of the elements in the sidebar 402. Specifically, taking the user long pressing card 4013 as an example, as shown in Figure 3 (c), in response to the user's long press operation, the mobile phone determines that the element in the card selected by the user is a picture, and thus the sidebar 402 displays the icon 601 of "Note Collection", the icon 602 of "Shopping" and the icon 603 of "Identifying Objects". At the same time, in response to the user's long press operation, card 4012 is reduced to a small card 604, and the other cards (i.e., card 4011 and card 4013) disappear, and the original interface (i.e., interface 101) is displayed with a right view effect. Optionally, the small card 604 can be provided with a fill or highlight effect, etc., and Figure 3 (c) shows a pattern fill.

[0161] Then, the user moves the finger, and the small card 604 moves with the user's finger, that is, the user drags the small card 604. During the dragging process, when the small card 604 is close to an icon in the sidebar 402, the icon can be highlighted, as shown in Figure 3 (d).

[0162] When the small card 604 is dragged to the area where the icon of a service or application is located in the sidebar 402, the user raises his hand, and the mobile phone transmits the data corresponding to the small card 604 (picture 1012) to the service or application corresponding to the icon, and the service or application provides relevant services based on the picture 1012. Taking the case where the user drags the small card 604 to the area where the "Note Collection" icon 601 is located and raises his hand as an example, in response to the user's operation, the mobile phone sends the data to be transmitted corresponding to the card 4012, that is, picture 1012, to the note application, and the note application collects the picture 1012. After the collection is completed, the interface can display relevant prompt information, such as "Collection successful!", etc., to prompt the user. At the same time, the "Any Door" restores the state of the interface when it was extracted, that is, the original interface and the extracted elements are displayed in the right perspective effect, and the sidebar displays the icons of the default applications and services, as shown in Figure (e) in Figure 3.

[0163] It should be noted that the user's finger does not leave the screen between the long press operation shown in Figure 3 (b) and the drag operation shown in Figures 3 (c) and (d), that is, these two operations are performed continuously, which can be called a long press and drag operation. Of course, in some possible implementations, the long press operation and the drag operation can also be two discontinuous operations, that is, the user performs a long press operation and then lifts his hand, and then performs a drag operation. This embodiment of the application is not limited to this.

[0164] Exemplarily, FIG4 is a schematic diagram of the interface changes of another data sharing method provided in an embodiment of the present application. Continuing from FIG3 (e), after the user completes a smart flow service according to the process described in the above embodiment, the user can continue to perform the smart flow service. Specifically, the user can continue to trigger the smart flow service by long pressing and dragging the card of a group of elements in the sub-interface 401. As shown in FIG4 (a), taking the user long pressing card 4013 as an example, the mobile phone matches the candidate application that can receive the data to be transmitted corresponding to card 4013, and displays the "Note Collection" icon 601, the "Translation" icon 605 and the "Share" icon 606 in the sidebar 402. At the same time, in response to the user's long press operation, card 4013 is reduced to a small card 607, and the other cards (i.e., card 4011 and card 4012) disappear, and the original interface (i.e., interface 101) is displayed in a right view effect.

[0165] As the user's finger moves, small card 607 moves with the user's finger, that is, the user drags small card 607. As shown in Figure 4 (b), when small card 607 is dragged to the area where the icon of a service or application (taking the "Note Collection" icon 601 as an example) is located in the sidebar 402, the user raises his hand, and the phone sends the to-be-transmitted data corresponding to card 4013 to the note application. The note application collects text 1013, and the prompt message "Collected successfully!" is displayed on the interface. The "Any Door" restores the state of the interface when it was extracted, as shown in Figure 4 (c).

[0166] When the user no longer needs to use the smart transfer service, he can close the "Any Door" by clicking a blank space in the interface or swiping right. After the "Any Door" is closed, the interface returns to the interface before the extraction, that is, the display interface 101, as shown in Figure 4 (d).

[0167] Alternatively, as a possible implementation, the user can select multiple elements simultaneously and trigger the smart transfer service to transfer data from multiple elements to other applications or services. For example, in the embodiments shown in Figures 3 or 4 above, the user can simultaneously long-press and drag card 4012 and card 4013 to simultaneously trigger the smart transfer of image 1012 and text 1013. This further simplifies user operations and improves the user experience.

[0168] It is understood that in some other embodiments, depending on the element or service selected by the user, the mobile phone may need to jump to the interface of other applications or services when providing other services. In this case, the mobile phone can also exit the "Any Door". The next time the user needs to extract the element in the interface, the interface extraction and intelligent flow service will be triggered through the above process.

[0169] The following is an explanation of the "Image Recognition Shopping" application scenario: Referring to Figure 5, continuing from Figure 3 (c), as shown in Figure 5 (a), when the user drags the small card 604 to the area where the "Shopping" icon 602 is located and raises his hand, in response to the user's operation, the mobile phone transmits the data corresponding to the small card 604 (image 1012) to the preset shopping app 1. Shopping app 1 searches for the items in image 1012 and displays the search results in the floating window 701. At this time, the mobile phone can exit the "Any Door" (that is, close the "Any Door") and display the original interface 101 under the layer where the floating window 701 is located, as shown in Figure 5 (b). The next time the user needs to extract an element in the interface, the "Any Door" can be opened again through the above process.

[0170] In the data sharing method provided in this embodiment, users only need to trigger interface extraction by side-swiping and hovering, and trigger the smart flow service by long-pressing and dragging, realizing cross-application data transmission. There is no need for users to switch between multiple applications, which simplifies user operations and improves user experience. Moreover, the mobile phone extracts multiple elements in the interface at the same time and displays them to the user at the same time, making it easy for users to select any required element for smart flow service according to their needs, which is convenient to use and further improves user experience. After one interface extraction, users can perform multiple smart flow services without the need for users to repeatedly perform operations to trigger interface extraction, further simplifying user operations and improving user experience.

[0171] Next, the data sharing method in this embodiment will be described by taking the "Any Door" shown in FIG2 as an example in combination with the application scenario of "transmitting the address link in the interface to the navigation service for navigation".

[0172] For example, FIG6 is a schematic diagram of interface changes in another data sharing method provided in an embodiment of the present application. As shown in FIG6(a), a chat interface 501 is displayed on the screen. Interface 501 includes news links 5011, shopping links 5012, files 5013, and address links 5014. The user performs a side-slide hovering operation in interface 501. In response to the user's side-slide hovering operation, the mobile phone extracts elements in interface 501, namely, extracts news links 5011, shopping links 5012, files 5013, and address links 5014. The mobile phone then groups the extracted elements, extracting news links 5011 as a group, shopping links 5012 as a group, files 5013 as a group, and address links 5014 as a group. In addition, the mobile phone extracts key information based on news links 5011, shopping links 5012, files 5013, and address links 5014. The phone then generates a visualization card based on the key information and opens the "any door." The original interface (i.e., interface 501) is displayed as sub-interface 502 with a right-view effect, as shown in Figure 6(b). The visualization cards include visualization card 503, visualization card 504, visualization card 505, and visualization card 506. For details, please refer to the embodiment shown in Figure 2 and will not be repeated here.

[0173] Afterwards, the user long-presses a visual card, and icons of applications or services that match the elements corresponding to the visual card are displayed in the sidebar 507. Specifically, taking the case of a user long-pressing visual card 506 as an example, as shown in Figure 6 (c), in response to the user's long-press operation, the sidebar 507 displays an icon 5071 for "View Location," an icon 5072 for "Navigation," and an icon 5073 for "Take a Taxi." At the same time, in response to the user's long-press operation, the visual card 506 is highlighted, and the other cards are displayed semi-transparently. It will be understood that the above-mentioned "highlighted display" and "semi-transparent display" are merely implementation examples and are not intended to limit the specific display method.

[0174] Then, the user moves the finger, and the highlighted visual card 506 moves with the user's finger, that is, the user drags the highlighted visual card 506. During the dragging process, when the small card 604 is close to an icon in the sidebar 507, the icon can be highlighted, as shown in Figure 6 (d).

[0175] When the user drags the highlighted visual card 506 to the area where the icon of a service or application is located in the sidebar 507, the user raises his hand, and the mobile phone transmits the data corresponding to the highlighted visual card 506 (address link 5014) to the service or application, and the service or application provides related services based on the address link 5014. Taking the example of a user dragging the highlighted visual card 506 to the area where the "Navigation" icon 5072 is located and raising his hand, in response to the user's operation, the mobile phone transmits the address link 5014 to the navigation service and starts the navigation service, and all visual cards disappear, as shown in Figure 6 (e). In addition, during the process of starting the navigation service, the "Navigation" icon 5072 in the sidebar 507 can display the startup progress, as shown in Figure 6 (e).

[0176] After the navigation service is started, the address (address information a) in the address link 5014 will be used as the navigation destination for navigation, and a navigation interface 801 will be displayed, as shown in FIG6(f).

[0177] Similar to the above embodiment, in the embodiment of the present application, the smart flow service can also be triggered for multiple elements at the same time, and after one smart flow service is completed, the second, third... smart flow service can be performed continuously, which will not be repeated in this embodiment.

[0178] Figures 3 to 6 above illustrate the data sharing method provided by the embodiment of the present application, using the application scenarios of "collecting pictures in the interface," "image recognition for shopping," and "transmitting address links in the interface to the navigation service for navigation" as examples. It should be noted that in the method provided by this embodiment, in other application scenarios, other element-related services can also be implemented through side-slide hovering operations and long-press and drag operations, which can also achieve the above-mentioned beneficial effects. These will not be detailed here.

[0179] Example 2: Preset gesture trigger interface extraction, drag the element to the preset position range to trigger the opening of the "any door" for intelligent flow.

[0180] In this embodiment, the user can trigger the mobile phone to extract the interface through a preset gesture. After the interface is extracted, the mobile phone displays the extracted elements. Afterwards, the user selects an element and drags it to the preset position range of the screen to trigger the opening of the "any door" and trigger the smart flow service. The icons of candidate applications that match the elements selected by the user are displayed in the sidebar. After that, the user can continue to drag the selected element to the area where the icon of a certain application or service is located in the sidebar and raise his hand to trigger smart flow. Among them, the preset position range of the screen can be designed according to actual needs. For example, it can be a preset area on the side of the screen, such as 1 / 3 on the right or left side of the screen, 1 / 4 on the left or right side of the screen, etc.

[0181] Optionally, the preset gesture may be one of two-finger long press, three-finger left swipe, three-finger right swipe, knuckle up swipe, knuckle left swipe, knuckle right swipe, etc. In the following embodiments, the two-finger long press gesture is taken as an example for description.

[0182] For example, Figures 7 and 8 are schematic diagrams of interface changes of another data sharing method provided in an embodiment of the present application, wherein Figure (a) in Figure 8 follows Figure (d) in Figure 7 . As shown in Figure (a) in Figure 7 , an interface 101 is displayed on the screen. The interface 101 includes text 1011, a picture 1012, and text 1013. The user performs a two-finger long press operation in the interface 101, and the mobile phone extracts elements in the interface 101 in response to the user's two-finger long press operation, that is, extracts text 1011, picture 1012, and text 1013. Afterwards, the mobile phone groups the extracted elements, treating text 1011 as a group, picture 1012 as a group, and text 1013 as a group. Then, the mobile phone displays the extracted elements according to the grouping of the elements, such as the interface 902 shown in Figure (b) in Figure 7 .

[0183] In interface 902, each group is presented as card 9021, card 9022, and card 9023. Among them, card 9021, card 9022, and card 9023 can also be provided with shadows and fills to present the display effect of each group of elements floating on the interface, similar to sub-interface 401 in Figure 1. Unlike sub-interface 401 in Figure 1, sub-interface 401 is displayed in a right view effect, while interface 902 in Figure 7 is not displayed in a right view effect. Of course, each card in interface 902 can also be set to other display forms as needed, and this embodiment of the application does not impose any limitation on this.

[0184] When a user selects part or all of a group of elements in interface 902, the selected elements may be highlighted. For example, when a user selects part of the text in card 9023 in interface 902, the text is highlighted, as shown in FIG7 (c). Optionally, the selection operation may be set according to actual needs. For example, the selection operation for an image element may be a long press operation, and the selection operation for a text element may include one or more operations such as long press, drag, smear, and knuckle screenshot.

[0185] Afterwards, the user performs a long press operation at any position of the selected text, and card 903 is displayed in the interface, and card 903 includes the content selected by the user, as shown in Figure 7 (d). Optionally, card 903 can be displayed floating above the layer where interface 902 is located and highlighted (shown as a pattern fill in the figure). In addition, when card 903 is displayed in the interface, the text in card 9023 can be unhighlighted, as shown in Figure 7 (d).

[0186] Afterwards, the user can move his finger, and the card 903 moves with the user's finger, that is, the user can drag the card 903. When the user's finger enters the preset area 904 on the side of the screen, it triggers the opening of the "any door". Specifically, the original interface (i.e., interface 101) is displayed in a right view effect, and a sidebar 905 is displayed on the side of the screen, as shown in Figure 8 (a). The sidebar 905 displays icons of services or applications that match the elements selected by the user. For example, in Figure 8 (a), the sidebar 905 may display an icon 9051 for the "Note Collection" service that matches the text 1013, an icon 9052 for the "Navigation" service, and an icon 9053 for the "Search" service.

[0187] The user then continues to drag the card 903. Similar to the above embodiment, during the dragging process, when the card 903 approaches an icon in the sidebar 905, the icon may be highlighted, as shown in FIG8 (b).

[0188] When the user drags the card 903 to the area where the icon of a certain application or service is located in the sidebar 905 and raises his hand, the mobile phone transmits the data (text 1013) corresponding to the card 903 to the application or service, and the application or service provides relevant services based on the text 1013. Taking the case where the user drags the card 903 to the area where the icon 9052 of the "Navigation" service is located in the sidebar 905 and raises his hand as an example, as shown in Figure (c) in Figure 8, in response to the user's operation, the mobile phone transmits the text 1013 to the navigation service, starts the navigation service, and the card 903 disappears. As in the above embodiment, during the startup of the navigation service, the "Navigation" icon 9053 in the sidebar 905 can display the startup progress, as shown in Figure (c) in Figure 8.

[0189] Optionally, after the navigation service is activated, it will generate a navigation route based on the content selected by the user in text 1013 and display a navigation interface. Specifically, the navigation service may perform entity recognition on the content selected by the user in text 1013, identify the addresses therein, and generate a navigation route based on the identified addresses. In a specific embodiment, when text 1013 includes multiple addresses, the navigation service may use the multiple addresses as destinations or waypoints in the navigation route, generate a navigation route, and display navigation interface 1001, as shown in Figure 8 (d). In other words, the navigation service connects the multiple addresses in series to generate the navigation route. Optionally, the navigation interface may be displayed in a floating window 1002. After the floating window 1002 is displayed, the mobile phone can exit the "Any Door" (i.e., close the "Any Door"), and the original interface 101 will be displayed below the layer where the floating window 1002 is located, as shown in Figure 8 (d). The next time the user needs to extract an element from the interface, the "Any Door" can be opened again through the above process.

[0190] Optionally, after the user closes the floating window 1002, the mobile phone can restore the display interface 902. In this way, the user can continue to perform related operations of the smart flow based on the interface 902. For example, after restoring the display interface 902, the user can further long press the card 9022 in the interface 902. In response to the user's operation, the interface displays a card containing the content of the picture 1012. The user moves his finger, and the card moves with the user's finger, that is, the user drags the card. When the user's finger enters the preset area 904 on the side of the screen, it triggers the opening of the "any door", and the sidebar displays the icons of services or applications related to the picture 1012. For example, the icon of "Note Collection", the icon of "Shopping" and the icon of "Identify Objects". When the user drags the card to the area where the icon of an application or service is located in the sidebar and raises his hand, the mobile phone transmits the data corresponding to the card (picture 1012) to the application or service. The application or service provides related services based on the picture 1012, once again realizing the smart flow service. In other words, after the mobile phone performs an interface extraction once, the user can perform multiple smart flow services without the need for the user to repeatedly perform operations to trigger the interface extraction, further simplifying user operations and improving user experience.

[0191] As another possible implementation, when floating window 1002 is displayed, interface 902 including the extracted elements can also be displayed below the layer where floating window 1002 is located. In this way, after closing floating window 1002, the user can directly drag one or more elements in interface 902 to a preset area on the screen, triggering the "any door" to open and triggering the smart flow service. In this way, the user can achieve multiple smart flows based on a single interface extraction, eliminating the need for the user to repeatedly perform the operation to trigger the interface extraction, further simplifying user operations and improving the user experience.

[0192] As another possible implementation, when floating window 1002 is displayed, the mobile phone can also display the extracted elements in the right perspective sub-interface displayed in the "Any Door" without exiting the "Any Door". In this way, after closing floating window 1002, the user can directly drag one or more elements in the right perspective sub-interface to the icon in the sidebar to trigger the smart flow again. In this way, the user can realize multiple smart flows based on a single interface extraction, without the user having to repeat the operation to trigger the interface extraction, further simplifying the user operation and improving the user experience.

[0193] The data sharing method provided by this embodiment can be applied to many practical application scenarios. For example, when a user views a travel guide, he or she wants to query the navigation route based on the address provided in the travel guide. In this case, the method provided by this embodiment can be used to obtain navigation services simply and quickly without having to select addresses one by one in a large text and then enter them into the navigation application one by one, which greatly simplifies the user's operation and improves the user experience. In addition, when the user views the interface, for some interfaces where the content cannot be directly copied, the method provided by the embodiment of this application can quickly extract elements in the interface and provide services related to the elements, thereby improving the user experience.

[0194] As a possible implementation method, the "Any Door" service can also be combined with the entity recognition function to provide users with a smarter experience. Specifically, after the interface is extracted, the extracted text elements can be subjected to entity recognition to extract the entity text in the text elements. Entity text can be displayed separately from general text, and different operation methods can be used for entity text and general text. Specifically, in one possible implementation method, there is no need to perform a selection operation on the entity text. A long press directly causes the highlighted card to be displayed in a floating manner, and the Any Door can be triggered by dragging the card to the preset area. See Figure 9 for details.

[0195] For example, FIG9 is a schematic diagram of the interface changes of another data sharing method provided in an embodiment of the present application. As shown in FIG9 (a), an interface 1101 is displayed on the screen. The interface 1101 includes text 1111, a picture 1012, and text 1013, wherein the text 1111 is a phone number. The user performs a two-finger long press operation in the interface 1101, and the mobile phone extracts the elements in the interface 1101 in response to the user's two-finger long press operation, that is, extracts the text 1111, the picture 1012, and the text 1013. Afterwards, the mobile phone performs entity recognition on the extracted elements and identifies the entity text in the text elements. Then, the mobile phone groups the extracted elements, treating the text 1111 as a group, the picture 1012 as a group, and the text 1013 as a group. Based on the grouping of the elements and the entity recognition results, the mobile phone displays the extracted elements, such as the interface 1102 shown in FIG9 (b).

[0196] In interface 1102, text 1111, image 1012, and text 1013 from the original interface (i.e., interface 1101) are presented as cards 1121, 1122, and 1123, respectively. The recognized entity text (text 1111) can be displayed differently from the generic text. For example, the entity text can have a different font color, be underlined, or be displayed within a capsule. In Figure 9, the entity text is displayed within a capsule.

[0197] Afterwards, for the general text in interface 1102, the user can select it by smearing or other methods, referring to the embodiment shown in Figure 7 above, which will not be repeated here. For physical text, the user can long press the physical text without selecting it, and the card will be suspended and highlighted in the interface. Specifically, as shown in Figure 9 (c), the user long presses the phone number in card 1121, and the card 1103 is suspended and highlighted in the interface, and card 1103 includes text 1111.

[0198] Subsequently, the user can move his finger, and the card 1103 will follow the movement of the user's finger, that is, the user can drag the card 1103. When the user's finger enters the preset area on the side of the screen, the "any door" is triggered to open, and the original interface (i.e., interface 1101) is displayed in a right view effect, and the sidebar 1104 is displayed on the side of the screen, as shown in Figure 9 (d). The sidebar 1104 displays icons of services or applications that match the elements selected by the user. For example, in Figure 9 (d), the sidebar 1104 may display an icon 1141 for the "SMS" application, an icon 1142 for the "Phone" application, and an icon 1143 for the "New Contact" service.

[0199] The user then continues to drag card 1103. When the user drags card 1103 to the area where the icon of an application or service is located in the sidebar 1104 and raises his hand, the phone sends the data corresponding to card 1103 to the application or service, and the application or service provides related services based on the data corresponding to card 1103. For example, when the user drags card 1103 to the icon 1142 of the "Phone" application in the sidebar 1104 and raises his hand, in response to the user's operation, the phone launches the phone application and displays the dialing interface 1105, as shown in Figure 9 (e).

[0200] The data sharing method provided in this embodiment uses entity recognition to identify entity text within text elements. For these entity texts, a long press triggers the display of a small card, eliminating the need for the user to select them. This allows users to open any door by dragging. In other words, a single long press and drag operation selects and opens any door, providing services. This further simplifies user operations and improves the user experience.

[0201] As a possible implementation, the entity text can also be linked to a corresponding service portal. The user can directly click on the entity text to open the service portal interface corresponding to the entity text. For details, please refer to Figure 10.

[0202] Exemplarily, Figure 10 is a schematic diagram of the interface changes of another data sharing method provided in an embodiment of the present application. As shown in Figure 10 (a), interface 1201 is displayed on the screen. Interface 1201 includes text 1011, picture 1012 and text 1211, wherein text 1211 includes a shopping link (plain text link) 1212. The user performs a two-finger long press operation in interface 1201, and the mobile phone performs interface extraction, element grouping and entity recognition in response to the user's two-finger long press operation. Afterwards, the mobile phone displays interface 1202, as shown in Figure 10 (b). In interface 1202, the shopping link 1212 is displayed separately from other general texts in card 1223. The specific display method is similar to the embodiment shown in Figure 9 and will not be repeated here.

[0203] Afterwards, the user can click on the shopping link 1212 in the card 1223. The mobile phone will enter the preset service based on the type of shopping link 1212 and recommend other services that match the shopping link 1212. Specifically, when the user clicks on the shopping link 1212 in FIG. 10 (b), the interface jumps to the service interface 1203 shown in FIG. 10 (c).

[0204] Optionally, the service interface 1203 may include a main portion 1231, an enhanced service portion 1232, and an other service portion 1233. The main portion 1231 is used to display the relevant content of the entity text. The enhanced service portion 1232 is used to display the content of the preset service related to the entity text. The other service portion 1233 is used to display other recommended services related to the entity text in addition to the services in the enhanced service portion. In this embodiment, the main portion 1231 is used to display the key information corresponding to the shopping link 1212, that is, the picture corresponding to the shopping link 1212, as shown in Figure (b) of Figure 10; the enhanced service portion 1232 is used to display the results of shopping price comparison based on the shopping link 1212, such as the price of the item corresponding to the shopping link 1212 in the shopping app 1 and the price in the shopping app 2, as shown in Figure (b) of Figure 10; the other service portion 1233 is used to display the service entrances (icons, cards, etc.) of other services related to the shopping link 1212, such as collection, sharing, forwarding, etc., as shown in Figure (b) of Figure 10.

[0205] It is understood that a preset type of service may include only one or multiple services. When a preset type of service includes multiple services, information of the multiple services may be selected based on the degree of relevance between the services and the entity text, with some services being displayed, while the others are hidden but can be expanded using an expansion bar. The expansion bar may be, for example, shown as 1204 in FIG. 10 .

[0206] As a possible implementation, when the entity text is a location link, the preset types of services may include, for example, navigation services, weather services, etc., and other services may include, for example, collection, sharing, taxi hailing, etc. When the user clicks the entity text, the interface jumps to the service interface 1301 shown in FIG11 .

[0207] As another possible implementation method, when the physical text is a web link, the preset types of services may include printing, translation, etc., and the interface jumps to the service interface 1401 shown in Figure 12. Other services may include collection, sharing, memo, etc.

[0208] On the service interface, users can activate the corresponding service by clicking controls in the main section 1231, enhanced service section 1232, or other service section 1233. Specifically, using the service interface 1203 shown in Figure 10(c) as an example, users can click anywhere in the main section 1231 to jump to the page corresponding to the shopping link 1212. Users can also launch shopping app 1 or shopping app 2 by clicking a control in the enhanced service section 1232; or by clicking a control in the other service section 1233 to activate the service and enter the corresponding interface, which will not be detailed here.

[0209] In addition, it is understood that in the interface shown in Figure (c) of Figure 10, the user can return to the interface shown in Figure (b) of Figure 10 through the exit operation, so that the above operations can be performed on different elements in the interface respectively, and the above operations can be performed multiple times on the same element in the interface to enter different services. Among them, the exit operation may include but is not limited to a side-slide operation or clicking the return control in the interface. The side-slide operation refers to the operation of sliding from the left or right edge of the screen to the inside of the screen. It is understandable that the difference between the side-slide operation and the side-slide hover operation is that the side-slide hover operation hovers for a preset period of time after the side-slide.

[0210] The data sharing method provided in this embodiment identifies entity text in text elements through entity recognition. For entity text, it can also directly trigger the smart flow service through a single-click operation, start the preset type of service, and provide other types of service entrances. In other words, the user only needs to use preset gestures (such as a two-finger long press operation) and a single-click operation to start related services and display entrances to other services, further improving the convenience of operation and enhancing the user experience.

[0211] Example 3: The side sliding and hovering operation triggers the start of the sidebar, and the interface is extracted when the sidebar is locked to perform intelligent flow.

[0212] In this embodiment, the sidebar can be triggered to start by sliding and hovering, and the state of the sidebar at this time is called a temporary state. Afterwards, the sidebar is locked to put it into a locked state. When the sidebar is in a locked state, the mobile phone can extract and display elements in the interface. In an embodiment of the present application, the sidebar is in a locked state, and the sidebar and the extracted elements are displayed in the interface, wherein the extracted elements can be reduced and displayed in a sub-interface relative to the original interface to reduce or avoid the sidebar from blocking the extracted elements, which is convenient for user operation. For the sake of convenience of description, the interface including the sub-interface and the sidebar is referred to as a "locked state interface". The user can perform long press, selection, or drag operations on the extracted elements in the "locked state interface". The user drags the element to the area where the icon of an application or service is located in the sidebar and raises his hand to trigger the smart flow service.

[0213] Optionally, locking the sidebar can be triggered by some preset gestures or operations, for example, when the sidebar is in a temporary state, continuing to perform a side swipe operation to trigger locking the sidebar, or when the sidebar is in a temporary state, triggering locking the sidebar by using a preset control in the sidebar. The embodiments of the present application do not impose any restrictions on the specific method of triggering locking the sidebar.

[0214] Optionally, when the sidebar is in a locked state, the mobile phone can periodically perform interface extraction. Of course, in another possible implementation, the operation of locking the sidebar can also trigger interface extraction only once, and the embodiment of the present application does not limit this. After the interface extraction, the mobile phone can group and display the extracted elements as in the above embodiment. In addition, after the interface extraction, the mobile phone can also perform entity recognition on the text elements and display the entity text differently when displaying, so that the user can drag the entity text into the area where the icon of the application or service in the sidebar is located by directly long pressing and dragging, or start the service corresponding to the entity text by clicking. For details, please refer to the above-mentioned embodiment one and embodiment two, which will not be repeated here. In short, in the absence of conflict, the contents of the embodiment one and embodiment two schemes can be combined in this embodiment. Of course, the contents of this embodiment can also be combined in embodiment one and embodiment two. This embodiment mainly explains the triggering of interface extraction and the display method after interface extraction.

[0215] For example, Figure 13 is a schematic diagram of interface changes in another data sharing method provided in an embodiment of the present application. As shown in Figure 13 (a), the screen displays interface 101. Interface 101 includes image 1012. The user performs a side swipe and hover operation, and the phone responds to the user's side swipe and hover operation by displaying a temporary sidebar 402, as shown in Figure 13 (b).

[0216] After that, the user continues to slide his finger toward the inside of the screen without lifting it. After the user's finger slides a preset distance, the sidebar is locked and enters a locked state. In the sidebar locked state, the mobile phone extracts the elements in the interface 101 and displays a "locked state interface" based on the extracted elements, as shown in Figure (c) in Figure 13. The "locked state interface" includes a sub-interface 1501, and the sub-interface 1501 includes cards 1511, 1512, and 1513 generated based on the extracted elements. Optionally, cards 1511, 1512, and 1513 can be highlighted (shown as pattern fills in the figure).

[0217] Afterwards, the user long presses a card in the sub-interface 1501, or selects part of the content in a card. The mobile phone displays the icon of the application or service that matches the group of elements in the card selected by the user and the semantics of the elements in the sidebar 402. Specifically, taking the user long pressing card 1512 as an example, as shown in Figure (d) in Figure 13, in response to the user's long press operation, the mobile phone determines that the element in the card selected by the user is a picture, and thus the sidebar 402 displays the icon 601 of "Note Collection", the icon 602 of "Shopping" and the icon 603 of "Identify Objects". At the same time, in response to the user's long press operation, the card 1512 is reduced to a small card 604, and the card in the sub-interface 1501 is unhighlighted. Optionally, the small card 604 can be provided with a fill or highlight effect, etc., and Figure (d) in Figure 13 shows a pattern fill.

[0218] Then, the user moves the finger, and the small card 604 moves with the user's finger, that is, the user drags the small card 604. During the dragging process, when the small card 604 is close to an icon in the sidebar 402, the icon can be highlighted, as shown in Figure 13 (e).

[0219] When the small card 604 is dragged to the area where the icon of a service or application is located in the sidebar 402, the user raises his hand, and the mobile phone transmits the data corresponding to the small card 604 (picture 1012) to the service or application, and the service or application provides relevant services based on the picture 1012. Taking the case where the user drags the small card 604 to the area where the "Note Collection" icon 601 is located and raises his hand as an example, in response to the user's operation, the mobile phone starts the note collection service and collects the picture 1012. After the collection is completed, relevant prompt information can be displayed in the interface, such as "Collection successful!", etc., to prompt the user. At the same time, card 1511, card 1512 and card 1513 are restored to highlight, and the icons in the sidebar 402 are restored to the default icons, as shown in Figure (f) in Figure 13.

[0220] Optionally, the locking of the sidebar can also be triggered by operating the lock control in the sidebar. Specifically, referring to Figure 14, as shown in Figure 14 (a), the screen displays interface 101. The user performs a side sliding and hovering operation, and the mobile phone responds to the user's side sliding and hovering operation, and displays a temporary sidebar 402, as shown in Figure 14 (b). The temporary sidebar 402 includes a lock control 1601. The user clicks the lock control 1601, and the sidebar 402 is locked and enters a locked state. When the sidebar is locked, the mobile phone extracts the elements in the interface 101 and displays a "locked state interface" based on the extracted elements, as shown in Figure 14 (c). Subsequent users operate based on the sub-interface 1501 in the "locked state interface". For details, please refer to Figure 13 and will not be repeated here.

[0221] In this embodiment, by locking the sidebar, multiple types of elements in the extraction interface are triggered and displayed to the user at the same time, so that the user can select any required element to start the service according to their needs, which is convenient for use. Furthermore, no matter which type of element in the interface the user needs to operate, it is only necessary to perform side sliding operations, long press and drag operations, etc. to trigger the smart flow service, which simplifies user operations and improves user experience. Moreover, as with the above-mentioned embodiment one and embodiment two, in this embodiment, the user can also trigger the smart flow service for elements in the interface multiple times, without the user having to repeatedly perform operations to trigger interface extraction, further simplifying user operations and improving user experience. In addition, when the sidebar is locked, the mobile phone can periodically extract the interface, and even if the interface changes, the results of the interface extraction can be continuously provided to the user, so that the user can select the required elements for smart flow services at any time according to needs, further improving user experience.

[0222] Optionally, as a possible implementation, the locked state of the sidebar can be exited by performing two exit operations, restoring the temporary state, stopping the interface extraction, and exiting the "locked state interface." The exit operation can be, for example, a side swipe operation. As another possible implementation, the sidebar can also include an unlock control in the locked state, and the user can exit the locked state of the sidebar by clicking the unlock control.

[0223] In addition, it can be understood that in the embodiment of the present application, whether it is a temporary state or a locked state, the sidebar can include a recommendation area and a resident area. Taking Figure (c) in Figure 14 as an example, 4021 in the figure is a recommendation area, 4022 is a resident area, and a partition bar 4023 can be displayed between the recommendation area 4021 and the resident area 4022. The recommendation area 4021 is used to display services or applications recommended by the system. For example, when a user selects an element, the services or applications recommended by the system that match the element can be displayed in the recommendation area 4021. The resident area 4022 is used to display system defaults or applications or services frequently used by users. During use, as the number of applications or services in the recommendation area 4021 and the resident area 4022 changes, the position of the partition bar 4023 can be adjusted up and down.

[0224] The data sharing method provided in the embodiments of the present application will be further described below in conjunction with the interfaces shown in the above embodiments 1 to 3.

[0225] For example, Figure 15 is a flowchart of a data sharing method provided in an embodiment of the present application. The method shown in this embodiment is the process corresponding to the above-mentioned embodiment 1. The execution subject of the method is an electronic device. As shown in Figure 15, the method includes:

[0226] S101, display interface a.

[0227] Interface a may be, for example, interface 101 or interface 501 in the above embodiment, and is not limited in this embodiment of the present application.

[0228] S102 : In response to operation 1 performed by the user in interface a, extract elements in interface a (hereinafter referred to as extracted elements).

[0229] Optionally, operation 1 may be the above-mentioned sidesliding and hovering operation.

[0230] S103, displaying interface b, which includes controls and a sidebar corresponding to the extracted elements. The controls corresponding to the extracted elements are displayed in sub-interface 1, and the sub-interface is displayed with a right perspective effect.

[0231] Optionally, interface b may be the "any door" interface in the first embodiment described above.

[0232] S104, in response to operation 2 in which the user acts on control 1 corresponding to element 1 in interface b and moves (or drags), icons of candidate applications matching element 1 are displayed in the sidebar, card 1 is displayed in interface b, and card 1 moves with operation 2; element 1 is any group of extracted elements, and card 1 includes element 1.

[0233] Optionally, operation 2 can be a long press and move operation, that is, the user long presses control 1 and moves it, and the icons of candidate applications matching element 1 are displayed in the sidebar, and card 1 corresponding to element 1 is displayed in interface b. Optionally, card 1 can also be other forms of controls such as bubbles or capsules.

[0234] S105 , in response to operation 2 lifting up the area of ​​element 1 where the icon of a candidate application 1 is located, transferring element 1 to candidate application 1 .

[0235] S106, restore display interface b.

[0236] After performing operation 2 and transferring element 1 to candidate application 1, the electronic device can restore display interface b. It will be appreciated that after restoring display interface b, the elements in the restored display interface b may or may not be the same as the elements in interface b in step S103, but both include control 1 corresponding to element 1 and control 2 corresponding to element 2. The same applies to other embodiments of the present application and will not be repeated here.

[0237] S107, in response to operation 3 in which the user acts on control 2 corresponding to element 2 and moves, the candidate application icon matching element 2 is displayed in the sidebar, card 2 is displayed in interface b, and card 2 moves with operation 3; element 2 is any group of the extracted elements, and card 2 includes element 2.

[0238] Optionally, control 2 may be the same as control 1 or may be different.

[0239] S108 : In response to operation 3 , the area of ​​element 2 where the icon of a candidate application 2 is located is lifted, and element 2 is transferred to candidate application 2 .

[0240] In other words, after one interface extraction, the electronic device can provide multiple intelligent flow services.

[0241] For example, Figure 16 is a flowchart of another data sharing method provided in an embodiment of the present application. The method shown in this embodiment is the process corresponding to the above-mentioned embodiment 2. The execution subject of the method is an electronic device. As shown in Figure 16, the method includes:

[0242] S201, display interface a.

[0243] S202 : In response to operation 4 performed by the user in interface a, extract elements in interface a (referred to as extracted elements).

[0244] Optionally, operation 4 can be one of the preset gestures in the above embodiment, namely, two-finger long press operation, three-finger left swipe, three-finger right swipe, knuckle swipe up, knuckle left swipe or knuckle right swipe.

[0245] S203: Displaying interface c, which includes controls corresponding to the extracted elements.

[0246] Optionally, interface c may be interface 902 in the above-mentioned second embodiment.

[0247] S204, in response to operation 2 in which the user acts on control 1 corresponding to element 1 in interface c and moves, card 1 is displayed in interface c, and card 1 moves with operation 2; element 1 is any group of the extracted elements, and card 1 includes element 1.

[0248] Optionally, operation 2 may be an operation of long pressing control 1 and moving it, or an operation of long pressing and moving it after selecting control 1.

[0249] S205, in response to the touch point of operation 2 moving into the preset area on the screen, interface d is displayed, interface d includes the content and sidebar in interface a, the sidebar includes icons of candidate applications matching element 1, the content in interface a is displayed in sub-interface 2, and sub-interface 2 is displayed with a right perspective effect.

[0250] That is, interface d is an "Any Door" interface. Unlike the above interface b, in this embodiment, the sidebar of interface d includes icons of candidate applications that match element 1.

[0251] S206 , in response to operation 2 lifting up the area of ​​element 1 where the icon of a candidate application 1 is located, transferring element 1 to candidate application 1 .

[0252] S207, restore display interface c.

[0253] S208 , in response to operation 3 in which the user acts on control 2 corresponding to element 2 and moves, card 2 is displayed in interface c, and card 2 moves with operation 3 ; element 2 is any group of the extracted elements, and card 2 includes element 2 .

[0254] S209, in response to the touch point of operation 3 moving into the preset area on the screen, interface d is displayed, interface d includes the content and sidebar in interface a, the sidebar includes icons of candidate applications matching element 2, the content in interface a is displayed in sub-interface 3, and sub-interface 3 is displayed with a right perspective effect.

[0255] S210 , in response to operation 3 , lifting up the area of ​​element 2 where the icon of a candidate application 2 is located, transferring element 2 to candidate application 2 .

[0256] For example, Figure 17 is a flowchart of another data sharing method provided in an embodiment of the present application. The method shown in this embodiment is the process corresponding to the above-mentioned embodiment 3. The execution subject of this method is an electronic device. As shown in Figure 17, the method includes:

[0257] S301, display interface a.

[0258] S302: In response to operation 1 performed by the user on interface a, a sidebar is displayed on interface a.

[0259] S303, in response to the sidebar being displayed in interface a, the touch point of operation 1 continues to move a preset distance, or in response to the user acting on the lock control (also called the sixth control) in the sidebar, extracting elements in interface a.

[0260] S304 , displaying interface e, which includes controls and a sidebar corresponding to the extracted elements.

[0261] Optionally, the interface e may be the “locked state interface” in the third embodiment.

[0262] S305, in response to operation 2 in which the user acts on control 1 corresponding to element 1 in interface e and moves, icons of candidate applications matching element 1 are displayed in the sidebar, card 1 corresponding to element 1 is displayed in interface e, and card 1 moves with operation 2, element 1 is any group of extracted elements, and card 1 includes element 1.

[0263] S306 : In response to operation 2 lifting up the area of ​​element 1 where the icon of candidate application 1 is located, element 1 is transferred to candidate application 1 .

[0264] S307, restore display interface e.

[0265] S308, in response to operation 3 in which the user acts on control 2 corresponding to element 2 and moves, a candidate application icon matching element 2 is displayed in the sidebar, card 2 is displayed in interface b, and card 2 moves with operation 3; element 2 is any group of the extracted elements, and card 2 includes element 2.

[0266] S309 : In response to operation 3 lifting up the area of ​​element 2 where the icon of a candidate application 2 is located, element 2 is transferred to candidate application 2 .

[0267] In combination with the processes shown in FIG. 15 and FIG. 17 , referring to FIG. 18 , the data sharing method provided in the embodiment of the present application may include:

[0268] S410: Display a first interface, which includes a first element (also called a first content) and a second element (also called a second content).

[0269] The first interface is also the above interface a. The types of the first element and the second element can be the same or different.

[0270] S420: In response to a first operation performed by the user in the first interface, extract a first element and a second element.

[0271] Optionally, the first operation can be operation 1 (side sliding and hovering operation) in the above-mentioned embodiment 1, or operation 4 (operation of continuing to slide after side sliding and hovering) in embodiment 3, or the side sliding and hovering operation in embodiment 3 and the operation of locking the control in the sidebar after the side sliding and hovering operation.

[0272] Optionally, the electronic device may extract elements in the interface of various types, including text elements, picture elements, video elements, link elements, etc.

[0273] S430: Display a second interface, where the second interface includes a first control corresponding to the first element, a second control corresponding to the second element, and an icon of the first application.

[0274] Optionally, the second interface may be interface b (“any door” interface) in the above embodiment 1, or interface e (“locked state interface”) in the above embodiment 3.

[0275] Optionally, the second interface may further include a control bar (such as a sidebar), and the icon of the first application may be displayed in the control bar.

[0276] Optionally, part or all of the content of the first element may be displayed on the first control, and part or all of the content of the second element may be displayed on the second control.

[0277] Optionally, when displaying the second interface, the electronic device may directly display the extracted elements on the second interface, or may extract key information, perform semantic analysis, entity recognition, or group the extracted elements before displaying them. The display format includes but is not limited to cards, capsules, bubbles, etc.

[0278] Optionally, the second interface may also include the content in the original interface (ie, the first interface).

[0279] S440: Display a third control in response to a second operation performed by the user on the first control.

[0280] Optionally, the second operation can be a long press operation, or an operation of long pressing after selection. In one possible implementation, when the first element is a text element, the second operation can be an operation of long pressing the text element or long pressing the first control. In another possible implementation, the first interface also includes other elements (also called third content), and other elements are displayed on the first control. In other words, what is intelligently transferred is the data corresponding to some elements in the first control. In this case, if the first element is general text, the second operation can be an operation of long pressing after selecting the text element. If the first element is entity text, a first sub-control can be displayed on the first control, and the first element is displayed on the first sub-control, and the second operation can be an operation of long pressing the first sub-control.

[0281] Optionally, the third control may be, for example, a card, in which part or all of the content of the first element is displayed.

[0282] Optionally, in response to the second operation, an icon of a second application matching the first element is displayed in the control bar.

[0283] S450 , in response to a third operation in which the user continues to drag the third control into the area where the icon of the first application is located and releases the control, sharing the data corresponding to the first element with the first application.

[0284] Specifically, the electronic device detects the third operation, and then shares the first element to the first application in response to the third operation.

[0285] S460: Display a fourth control in response to a fourth operation performed by the user on the second control.

[0286] Similar to the second operation, the fourth operation may be a long press operation, or a long press operation after selection. In a possible implementation, when the second element is a picture element, the second operation may be a long press operation of the picture element.

[0287] Optionally, the fourth control may be, for example, a card, in which part or all of the content of the second element is displayed.

[0288] Optionally, in response to the fourth operation, an icon of a third application matching the second element is displayed in the control bar.

[0289] S470 , in response to a fifth operation in which the user continues to drag the fourth control into the area where the icon of the first application is located and releases the control, sharing the data corresponding to the second element with the first application.

[0290] In conjunction with the process shown in FIG. 16 , referring to FIG. 19 , the data sharing method provided in the embodiment of the present application may include:

[0291] S510: Display a second interface, which includes a first element and a second element.

[0292] In this embodiment, the second interface is the aforementioned interface a. The types of the first element and the second element may be the same or different.

[0293] S520: In response to the seventh operation performed in the second interface, display the first interface, where the first interface includes a first control corresponding to the first element and a second control corresponding to the second element.

[0294] Optionally, the seventh operation can be operation 3 in the above-mentioned embodiment 2, that is, one of the two-finger long press operation, three-finger left swipe operation, three-finger right swipe operation, knuckle up swipe operation, knuckle left swipe operation or knuckle right swipe operation.

[0295] In this embodiment, the first interface is also interface c.

[0296] S530: Display a third control in response to a first operation performed by the user on the first control.

[0297] The third control in this embodiment may be the same as the third control in the embodiment shown in FIG18 , and will not be described in detail.

[0298] The first operation in this embodiment may be the same as the second operation in the embodiment shown in FIG18 , and will not be described in detail.

[0299] S540: In response to a second operation of the user dragging the third control into the first area of ​​the screen, displaying an icon of the first application.

[0300] Specifically, the electronic device detects a second operation of dragging a third control into the first area of ​​the screen. In response to the second operation, the electronic device displays a control bar, which includes an icon of at least one application, including the first application. Optionally, the at least one application icon also includes an icon of a third application that matches the first element. Optionally, the third application and the first application can be the same application or different applications.

[0301] Optionally, the first area is also the preset area of ​​the screen in the above embodiment.

[0302] S550 : In response to a third operation in which the user continues to drag the third control into the area where the icon of the first application is located and releases the control, the first data corresponding to the third control is shared with the first application.

[0303] Specifically, the electronic device detects a third operation of continuing to drag the third control into the area where the icon of the first application is located and releasing it, and in response to the third operation, shares the first data corresponding to the third control with the first application.

[0304] S560: Display a fourth control in response to a fourth operation performed by the user on the second control.

[0305] The fourth operation in this embodiment may be the same as the fourth operation in the embodiment shown in FIG. 18 , and will not be described in detail.

[0306] S570 : In response to a fifth operation of the user dragging the fourth control into the first area, displaying an icon of the second application.

[0307] Specifically, the electronic device detects a fifth operation of dragging a fourth control into the first area of ​​the screen. In response to the fifth operation, the electronic device displays a control bar, wherein the control bar includes an icon of at least one application, and the at least one application includes the first application. Optionally, the at least one application icon also includes an icon of a fourth application that matches the first element. Optionally, the fourth application can be the same application as the second application or a different application.

[0308] S580 , in response to a sixth operation in which the user continues to drag the fourth control into the area where the icon of the second application is located and releases the control, sharing the second data corresponding to the fourth control with the second application.

[0309] Specifically, the electronic device detects a sixth operation of continuing to drag the fourth control into the area where the icon of the second application is located and releasing it, and in response to the sixth operation, shares the second data corresponding to the fourth control with the second application.

[0310] Optionally, the first application and the second application may be the same application or different applications.

[0311] In the embodiments shown in FIG. 15 to FIG. 19 , the specific implementation process and beneficial effects of the method are the same as those of the first to third embodiments, and will not be described in detail.

[0312] The structure of an electronic device to which the data sharing method provided in the embodiments of the present application is applicable is described below.

[0313] For example, FIG20 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0314] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

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

[0316] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0317] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0318] In some embodiments, processor 110 may include one or more interfaces.

[0319] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0320] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0321] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

[0322] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0323] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0324] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.

[0325] The above describes in detail an example of a data sharing method provided by an embodiment of the present application. It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0326] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each function can be divided into various functional modules, such as a detection unit, a processing unit, a display unit, etc., or two or more functions can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0327] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0328] The electronic device provided in this embodiment is used to execute the above-mentioned data sharing method, and thus can achieve the same effect as the above-mentioned implementation method.

[0329] When integrated, the electronic device may also include a processing module, a storage module, and a communication module. The processing module may be used to control and manage the operation of the electronic device. The storage module may be used to support the execution of program code and data stored in the electronic device. The communication module may be used to support communication between the electronic device and other devices.

[0330] The processing module may be a processor or a controller. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, and so on. The storage module may be a memory. The communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.

[0331] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a device having the structure shown in FIG. 20 .

[0332] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the data sharing method of any of the above embodiments.

[0333] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the data sharing method in the above-mentioned embodiment.

[0334] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the data sharing method in the above-mentioned method embodiments.

[0335] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0336] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0337] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0338] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0339] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0340] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0341] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A data sharing method, the method being executed by an electronic device, characterized in that: The method comprises: Displaying a first interface, wherein the first interface includes first content and second content; In response to a first operation performed by a user in the first interface, displaying a second interface, wherein the second interface includes a first control corresponding to the first content, a second control corresponding to the second content, and an icon of a first application; In response to a second operation performed by the user on the first control, displaying a third control; detecting a third operation of continuing to drag the third control into the area where the icon of the first application is located and releasing the control; In response to the third operation, sharing the data corresponding to the first content to the first application; In response to a fourth operation performed by the user on the second control, displaying a fourth control; detecting a fifth operation of continuing to drag the fourth control into the area where the icon of the first application is located and releasing the control; In response to the fifth operation, data corresponding to the second content is shared to the first application.

2. The method according to claim 1, characterized in that The second interface includes a control bar, the control bar includes an icon of at least one application, and the at least one application includes the first application.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: In response to the second operation, displaying an icon of a second application matching the first content; In response to the fourth operation, an icon of a third application matching the second content is displayed.

4. The method according to claim 3, characterized in that The method further comprises: In response to a sixth operation performed by the user on the first control, displaying a fifth control; detecting a seventh operation of continuing to drag the fifth control into the area where the icon of the second application is located and releasing the control; In response to the seventh operation, data corresponding to the first content is shared to the second application.

5. The method according to any one of claims 1 to 4, characterized in that The first content is displayed on the first control and the third control, and the second content is displayed on the second control and the fourth control.

6. The method according to claim 5, characterized in that The first content is text, the first interface also includes a third content, the third content is text, the first control displays the first content and the third content, and the second operation is: selecting the first content on the second control and long pressing it; The second content is an image, and the fourth operation is: long pressing the image.

7. The method according to claim 5, characterized in that The first content is physical text, the first interface also includes third content, the third content is text, the first control displays the third content and a first sub-control, the first sub-control displays the first content, and the second operation is: long press the first sub-control.

8. The method according to claim 7, characterized in that The method further comprises: In response to a user clicking on the first sub-control, a third interface is displayed, wherein the third interface includes an interface of at least one application matching the first content.

9. The method according to any one of claims 1 to 8, characterized in that The first operation is: performing a first sliding operation from the edge of the screen of the electronic device to the inside, and staying at the end point of the first sliding operation for more than a preset time; wherein the sliding distance of the first sliding operation exceeds a first preset distance; The second interface also includes part or all of the content of the first interface, and the content of the first interface is displayed with a right perspective effect.

10. The method according to claim 9, characterized in that The first control and the second control are displayed with a right perspective effect.

11. The method according to claim 9, characterized in that The first control and the second control are displayed floating above the layer where the content of the first interface is located.

12. The method according to claim 11, characterized in that The first content and the second content are links, the first control includes fourth content, the second control includes fifth content, the fourth content is obtained from a web page corresponding to the first content, and the fifth content is obtained from a web page corresponding to the second content.

13. The method according to any one of claims 1 to 8, characterized in that The first operation is: performing a first sliding operation from the edge of the screen of the electronic device to the inside, and staying at the end point of the first sliding operation for more than a preset time, and then continuing to perform a second sliding operation; the sliding distance of the first sliding operation exceeds a first preset distance, and the sliding distance of the second sliding operation exceeds a second preset distance; The step of displaying a second interface in response to a first operation performed by a user in the first interface includes: In response to the user performing the first sliding operation from the edge of the screen of the electronic device to the inside and staying at the end point of the first sliding operation for more than the preset time, displaying a fourth interface, wherein the fourth interface includes a control bar, the control bar includes an icon of at least one application, and the at least one application includes the first application; In response to the user continuing to perform the second sliding operation, the second interface is displayed.

14. The method according to any one of claims 1 to 8, characterized in that The first operation is: performing a first sliding operation from the edge of the screen of the electronic device to the inside, staying at the end point of the first sliding operation for more than a preset time, and then clicking the sixth control; the sliding distance of the first sliding operation exceeds a first preset distance; The step of displaying a second interface in response to a first operation performed by a user in the first interface includes: In response to the user performing the first sliding operation from the edge of the screen of the electronic device to the inside and staying at the end point of the first sliding operation for more than the preset time, displaying a fifth interface, wherein the fifth interface includes a control bar, the control bar includes an icon of at least one application and the sixth control, and the at least one application includes the first application; In response to the user clicking the sixth control, the second interface is displayed.

15. The method according to any one of claims 1 to 14, characterized in that The second operation and the third operation are continuous and uninterrupted operations; the fourth operation and the fifth operation are continuous and uninterrupted operations.

16. The method according to any one of claims 1 to 15, characterized in that The step of displaying a second interface in response to a first operation performed by a user in the first interface includes: In response to the first operation, extracting target content in the first interface, the target content including the first content and the second content; The second interface is displayed according to the target content.

17. A data sharing method, the method being executed by an electronic device, characterized in that: The method comprises: Display a first interface, wherein the first interface includes a first control and a second control; In response to a first operation performed by a user on the first control, displaying a third control; detecting a second operation of dragging a third control into the first area of ​​the screen; In response to the second operation, displaying an icon of the first application; detecting a third operation of continuing to drag the third control into the area where the icon of the first application is located and releasing the control; In response to the third operation, sharing the first data corresponding to the third control to the first application; In response to a fourth operation performed by the user on the second control, displaying a fourth control; detecting a fifth operation of dragging the fourth control into the first area; In response to the fifth operation, displaying an icon of a second application; detecting a sixth operation of continuing to drag the fourth control into the area where the icon of the second application is located and releasing the control; In response to the sixth operation, the second data corresponding to the fourth control is shared to the second application.

18. The method according to claim 17, characterized in that Before displaying the first interface, the method further includes: Displaying a second interface, the second interface including first content and second content; the first content is content corresponding to the first data, and the second content is content corresponding to the second data; In response to a seventh operation performed by the user in the second interface, the first interface is displayed; the first control is a control corresponding to the first content, and the second control is a control corresponding to the second content.

19. The method according to claim 18, characterized in that The seventh operation is one of a two-finger long press operation, a three-finger left swipe operation, a three-finger right swipe operation, a knuckle swipe up operation, a knuckle swipe left operation or a knuckle swipe right operation.

20. The method according to claim 18 or 19, characterized in that The step of displaying the icon of the first application in response to the second operation includes: In response to the second operation, a third interface is displayed, wherein the third interface includes the content of the second interface and a control bar, wherein the control bar includes an icon of at least one application, wherein the at least one application includes the first application, and the content of the second interface is displayed with a right perspective effect.

21. The method according to claim 20, characterized in that The at least one application includes an application matching the first content.

22. The method according to claim 20 or 21, characterized in that Before displaying the fourth control in response to the fourth operation performed by the user on the second control, the method further includes: The first interface is restored to display.

23. The method according to claim 20 or 21, characterized in that The third interface includes the first control and the second control.

24. The method according to any one of claims 17 to 23, characterized in that The first application is the same as or different from the second application.

25. An electronic device, characterized in that: include: Processors, memory, and interfaces; The processor, the memory and the interface cooperate with each other so that the electronic device executes the method as claimed in any one of claims 1 to 24.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 24.