CN115407909A - Content sharing method, device, terminal and storage medium - Google Patents
Content sharing method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN115407909A CN115407909A CN202110586893.2A CN202110586893A CN115407909A CN 115407909 A CN115407909 A CN 115407909A CN 202110586893 A CN202110586893 A CN 202110586893A CN 115407909 A CN115407909 A CN 115407909A
- Authority
- CN
- China
- Prior art keywords
- application
- target
- candidate
- thumbnail
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请实施例公开了一种内容分享方法、装置、终端及存储介质,属于人机交互技术领域。该方法包括:响应于对目标内容的触发操作,显示目标内容的缩略图以及至少一个候选应用对应的候选应用卡片,候选应用卡片中显示有候选应用的应用界面;响应于对缩略图的拖动操作,从至少一个候选应用中确定目标应用;响应于目标应用界面内对缩略图的拖动操作,通过目标应用分享目标内容,目标应用界面是目标应用对应目标应用卡片中显示的应用界面。采用本申请实施例提供的方案,用户只需要通过连续的拖动操作即可在目标应用中完成内容分享,简化了内容分享操作和流程。
The embodiment of the present application discloses a content sharing method, device, terminal and storage medium, belonging to the field of human-computer interaction technology. The method includes: in response to a trigger operation on the target content, displaying a thumbnail of the target content and a candidate application card corresponding to at least one candidate application, where an application interface of the candidate application is displayed in the candidate application card; in response to dragging the thumbnail The operation is to determine the target application from at least one candidate application; in response to the drag operation of the thumbnail in the target application interface, share the target content through the target application interface, the target application interface is the application interface displayed in the target application card corresponding to the target application. With the solution provided in the embodiment of the present application, the user only needs to perform continuous drag operations to complete content sharing in the target application, which simplifies the content sharing operation and process.
Description
技术领域technical field
本申请实施例涉及人机交互技术领域,特别涉及一种内容分享方法、装置、终端及存储介质。The embodiments of the present application relate to the field of human-computer interaction technology, and in particular to a content sharing method, device, terminal and storage medium.
背景技术Background technique
随着网络技术的不断发展,越来越多的应用开始具备分享属性。比如,用户可以通过应用向网络中的单个或多个好友分享拍摄的照片、文章或视频等等。With the continuous development of network technology, more and more applications begin to have sharing attributes. For example, users can share photos, articles or videos taken with one or more friends in the network through the application.
相关技术中,用户选中待分享的内容后,首先点击分享控件,触发终端显示应用列表,然后从应用列表中选择目标应用,触发终端跳转显示目标应用的分享页面,进而在该分享页面中执行一系列分享操作,完成内容分享。In the related technology, after the user selects the content to be shared, first clicks the share control, triggers the terminal to display the application list, then selects the target application from the application list, triggers the terminal to jump to display the sharing page of the target application, and then executes on the sharing page A series of sharing operations to complete content sharing.
发明内容Contents of the invention
本申请实施例提供了一种内容分享方法、装置、终端及存储介质。所述技术方案如下:Embodiments of the present application provide a content sharing method, device, terminal, and storage medium. Described technical scheme is as follows:
一方面,本申请实施例提供了一种内容分享方法,所述方法包括:On the one hand, the embodiment of the present application provides a content sharing method, the method includes:
响应于对目标内容的触发操作,显示所述目标内容的缩略图以及至少一个候选应用对应的候选应用卡片,所述候选应用卡片中显示有所述候选应用的应用界面;In response to a trigger operation on the target content, displaying a thumbnail of the target content and a candidate application card corresponding to at least one candidate application, where an application interface of the candidate application is displayed in the candidate application card;
响应于对所述缩略图的拖动操作,从至少一个所述候选应用中确定目标应用;determining a target application from at least one of the candidate applications in response to a drag operation on the thumbnail;
响应于目标应用界面内对所述缩略图的拖动操作,通过所述目标应用分享所述目标内容,所述目标应用界面是所述目标应用对应目标应用卡片中显示的应用界面。The target content is shared through the target application in response to a drag operation on the thumbnail in the target application interface, where the target application interface is an application interface displayed in a target application card corresponding to the target application.
另一方面,本申请实施例提供了一种内容分享装置,所述装置包括:On the other hand, an embodiment of the present application provides a content sharing device, and the device includes:
显示模块,用于响应于对目标内容的触发操作,显示所述目标内容的缩略图以及至少一个候选应用对应的候选应用卡片,所述候选应用卡片中显示有所述候选应用的应用界面;A display module, configured to display a thumbnail of the target content and a candidate application card corresponding to at least one candidate application in response to a trigger operation on the target content, where the application interface of the candidate application is displayed in the candidate application card;
确定模块,用于响应于对所述缩略图的拖动操作,从至少一个所述候选应用中确定目标应用;a determining module, configured to determine a target application from at least one of the candidate applications in response to a drag operation on the thumbnail;
分享模块,用于响应于目标应用界面内对所述缩略图的拖动操作,通过所述目标应用分享所述目标内容,所述目标应用界面是所述目标应用对应目标应用卡片中显示的应用界面。A sharing module, configured to share the target content through the target application in response to the drag operation of the thumbnail in the target application interface, where the target application interface is an application displayed in the target application card corresponding to the target application interface.
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如上述方面所述的内容分享方法。On the other hand, an embodiment of the present application provides a terminal, the terminal includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the above aspects The content sharing method described.
另一方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上述方面所述的内容分享方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium, the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the content sharing method as described in the above aspect .
另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面提供的内容分享方法。On the other hand, an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the content sharing method provided by the above aspect.
本申请实施例提供的技术方案至少包括如下有益效果:The technical solutions provided by the embodiments of the present application at least include the following beneficial effects:
本申请实施例中,当接收到对目标内容的触发操作时,终端显示目标内容的缩略图,并显示提供内容分享服务的候选应用的应用卡片供用户选择,当接收到对缩略图的拖动操作时,终端基于拖动操作确定进行内容分享的目标应用,并进一步基于目标应用卡片内对缩略图的拖动操作,通过目标应用分享目标内容;采用本申请实施例提供的方案,用户只需要通过连续的拖动操作即可在目标应用中完成内容分享,简化了内容分享操作和流程;并且,通过应用卡片展示应用界面,并基于应用界面内对缩略图的拖动操作实现内容分享,使内容分享过程更加清楚直观,有助于提高内容分享的效率以及准确性。In this embodiment of the application, when a trigger operation on the target content is received, the terminal displays a thumbnail of the target content, and displays application cards of candidate applications that provide content sharing services for the user to select. During operation, the terminal determines the target application for content sharing based on the drag operation, and further based on the drag operation of the thumbnail in the target application card, shares the target content through the target application; using the solution provided by the embodiment of this application, the user only needs to The content sharing can be completed in the target application through continuous dragging operations, which simplifies the content sharing operation and process; moreover, the application interface is displayed through the application card, and the content sharing is realized based on the drag operation of the thumbnail in the application interface, so that The content sharing process is clearer and more intuitive, which helps to improve the efficiency and accuracy of content sharing.
附图说明Description of drawings
图1示出了本申请一个示例性实施例提供的内容分享方法的方法流程图;FIG. 1 shows a flow chart of a content sharing method provided in an exemplary embodiment of the present application;
图2是本申请一个示例性实施例示出的内容分享过程的实施示意图;Fig. 2 is an implementation schematic diagram of a content sharing process shown in an exemplary embodiment of the present application;
图3是本申请一个示例性实施例示出的应用卡片内应用界面更新过程的界面示意图;Fig. 3 is an interface schematic diagram of an application interface updating process in an application card shown in an exemplary embodiment of the present application;
图4是本申请一个示例性实施例示出的缩略图以及候选应用卡片显示过程的流程图;Fig. 4 is a flow chart of a process of displaying thumbnail images and candidate application cards according to an exemplary embodiment of the present application;
图5是本申请一个示例性实施例示出的缩略图以及候选应用卡片显示过程的界面示意图;Fig. 5 is a schematic interface diagram showing a process of displaying thumbnails and candidate application cards according to an exemplary embodiment of the present application;
图6是本申请一个示例性实施例示出的候选应用卡片更新过程的界面示意图;Fig. 6 is a schematic interface diagram of a candidate application card update process shown in an exemplary embodiment of the present application;
图7是本申请一个示例性实施例示出的目标应用选择过程的界面示意图;Fig. 7 is a schematic interface diagram of a target application selection process shown in an exemplary embodiment of the present application;
图8是本申请一个示例性实施例示出的内容分享过程的流程图;FIG. 8 is a flowchart of a content sharing process shown in an exemplary embodiment of the present application;
图9是本申请一个示例性实施例示出的内容分享过程的界面示意图;Fig. 9 is a schematic interface diagram of a content sharing process shown in an exemplary embodiment of the present application;
图10是本申请一个示例性实施例示出的显示内容滚动过程的界面示意图;Fig. 10 is a schematic interface diagram showing a scrolling process of display content according to an exemplary embodiment of the present application;
图11是本申请一个示例性实施例示出的页面切换过程的界面示意图;Fig. 11 is a schematic interface diagram of a page switching process shown in an exemplary embodiment of the present application;
图12是本申请一个示例性实施例示出的分享结束后悬浮窗口显示过程的界面示意图;Fig. 12 is a schematic interface diagram of the process of displaying the floating window after the sharing is completed according to an exemplary embodiment of the present application;
图13示出了本申请一个实施例提供的内容分享装置的结构框图;Fig. 13 shows a structural block diagram of a content sharing device provided by an embodiment of the present application;
图14示出了本申请一个示例性实施例提供的终端的结构方框图。Fig. 14 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The "plurality" mentioned herein means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
相关技术中,当用户需要进行内容分享时,首先需要选择待分享的目标内容,然后通过点击分享控件,触发终端显示若干应用的应用图标。当接收到对应用图标的点击操作时,终端跳转显示所选中目标应用的分享对象选择列表(比如即时通信应用中的联系人列表),从而根据分享对象选择列表内的分享对象选择操作,通过目标应用将目标内容分享至目标对象。可见,整个内容分享过程的操作较为繁琐,且操作过程并未直接在应用界面内进行,导致分享过程不够直观。In related technologies, when a user needs to share content, he first needs to select the target content to be shared, and then click the share control to trigger the terminal to display application icons of several applications. When receiving a click operation on the application icon, the terminal jumps to display the sharing object selection list of the selected target application (such as the contact list in the instant messaging application), so as to select the operation according to the sharing object selection list in the sharing object selection list, through The target application shares the target content to the target object. It can be seen that the operation of the entire content sharing process is relatively cumbersome, and the operation process is not directly carried out in the application interface, which makes the sharing process not intuitive enough.
而本申请实施例提供的方案中,当用户需要进行内容分享时,通过对目标内容进行触发操作,触发终端显示若干候选应用的候选应用卡片,然后通过拖动目标内容对应的缩略图,从若干候选应用中选择出进行内容分享的目标应用。由于目标应用卡片中显示有目标应用的目标应用界面,因此用户可以进一步在目标应用界面内拖动缩略图,以实现内容分享。In the solution provided by the embodiment of the present application, when the user needs to share content, the terminal is triggered to display candidate application cards of several candidate applications by performing a trigger operation on the target content, and then by dragging the thumbnails corresponding to the target content, from several A target application for content sharing is selected from the candidate applications. Since the target application interface of the target application is displayed in the target application card, the user can further drag the thumbnail in the target application interface to realize content sharing.
可见,相较于在页面之间进行跳转点击,用户通过连续拖动操作即可完成内容分享,内容分享操作得到简化;并且,通过在目标应用的应用界面内拖动缩略图进行内容分享,操作过程更加直观,有助于提高分享操作的准确性和效率。It can be seen that compared with jumping and clicking between pages, users can complete content sharing by continuously dragging operations, and the content sharing operation is simplified; moreover, by dragging thumbnails in the application interface of the target application to share content, The operation process is more intuitive, which helps to improve the accuracy and efficiency of sharing operations.
本申请实施例提供的内容分享方法,可以应用于智能手机、平板电脑、个人计算机、数码播放器、个人计算机等终端中,其中,当终端的显示屏同时具备显示以及触控功能时,内容分享过程中的操作均为屏幕触控操作;当终端的显示屏仅具备显示功能,但不具备触控功能时,可以通过外接输入设备实现内容分享过程中的操作(比如鼠标、触控板等等),本申请实施例对此不作限定。The content sharing method provided by the embodiment of the present application can be applied to terminals such as smart phones, tablet computers, personal computers, digital players, and personal computers. When the display screen of the terminal has both display and touch functions, content sharing The operations in the process are all screen touch operations; when the display screen of the terminal only has the display function, but does not have the touch function, the operation during the content sharing process can be realized through an external input device (such as a mouse, a touchpad, etc. ), which is not limited in this embodiment of the present application.
请参考图1,其示出了本申请一个示例性实施例提供的内容分享方法的方法流程图。该方法可以包括如下步骤。Please refer to FIG. 1 , which shows a flow chart of a content sharing method provided by an exemplary embodiment of the present application. The method may include the following steps.
步骤101,响应于对目标内容的触发操作,显示目标内容的缩略图以及至少一个候选应用对应的候选应用卡片,候选应用卡片中显示有候选应用的应用界面。
可选的,目标内容包括如下至少一种:文本、图片、文件、音视频、应用、聊天记录;并且,目标内容的数量可以为一项或多项,比如,目标内容可以为选中的单张图片或多张图片,本申请实施例并不对目标内容的具体类型以及数量进行限定。Optionally, the target content includes at least one of the following: text, pictures, files, audio and video, applications, chat records; and the number of target content can be one or more items, for example, the target content can be a selected single Picture or multiple pictures, the embodiment of the present application does not limit the specific type and quantity of the target content.
可选的,触发操作用于触发内容分享,该触发操作为长按操作、按压操作或连续点击操作(比如双击、三击等等)等等,且该触发操作可以为系统默认设置,也可以由用户自行设置,本申请实施例并不对触发操作的具体类型以及设置方式进行限定。Optionally, the trigger operation is used to trigger content sharing. The trigger operation is a long press operation, a press operation, or a continuous click operation (such as double-click, triple-click, etc.), etc., and the trigger operation can be the default setting of the system, or it can be It is set by the user, and the embodiment of the present application does not limit the specific type and setting method of the trigger operation.
终端接收到对目标内容的触发操作时,确定需要进行内容分享,从而基于选中的目标内容显示缩略图,并显示至少一个候选应用卡片,该候选应用卡片为提供内容分享服务的候选应用(终端已安装)对应的应用卡片,且该应用卡片中显示有候选应用的应用界面。When the terminal receives a trigger operation on the target content, it determines that content sharing needs to be performed, thereby displaying a thumbnail based on the selected target content, and displaying at least one candidate application card, where the candidate application card is a candidate application that provides content sharing services (the terminal has installation) corresponding to the application card, and the application interface of the candidate application is displayed in the application card.
可选的,不同内容分享过程中显示的候选应用可以相同,也可以不同。比如,内容分享过程中显示的候选应用为预设应用,或者,候选应用的数量以及类型基于目标内容动态确定。Optionally, candidate applications displayed in different content sharing processes may be the same or different. For example, the candidate applications displayed during content sharing are preset applications, or the number and types of candidate applications are dynamically determined based on the target content.
在一种可能的实施方式中,响应于对目标内容的触发操作,终端在当前界面上层显示蒙层,并在蒙层上显示缩略图以及候选应用卡片。In a possible implementation manner, in response to a trigger operation on the target content, the terminal displays a mask layer on the current interface, and displays thumbnails and candidate application cards on the mask layer.
示意性的,如图2所示,用户在相册界面21中选中待分享的照片22,并长按选中的照片22时,终端在相册界面21上层显示蒙层,并在蒙层上显示缩略图23,以及第一候选应用卡片241、第二候选应用卡片242、第三候选应用卡片243。Schematically, as shown in Figure 2, when the user selects a
步骤102,响应于对缩略图的拖动操作,从至少一个候选应用中确定目标应用。
触发显示缩略图以及候选应用卡片后,用户进一步通过拖动缩略图,从候选应用中确定目标应用,该目标应用即对目标内容进行分享的应用。After triggering the display of the thumbnail and the candidate application card, the user further determines the target application from the candidate applications by dragging the thumbnail, and the target application is an application for sharing the target content.
可选的,对缩略图的拖动操作与对目标内容的触发操作为连续操作,即触发操作的触发位置为拖动操作的拖动起点位置;或者,对缩略图的拖动操作与对目标内容的触发操作并非连续操作,即触发操作的触发位置与动操作的拖动起点位置可以不同。Optionally, the dragging operation on the thumbnail and the triggering operation on the target content are continuous operations, that is, the triggering position of the triggering operation is the dragging start position of the dragging operation; or, the dragging operation on the thumbnail and the target content The triggering operation of the content is not a continuous operation, that is, the triggering position of the triggering operation may be different from the dragging start position of the moving operation.
示意性的,如图2所示,缩略图23显示在用户手指的长按位置,当接收对缩略图23的拖动操作时,终端基于拖动操作将第二候选应用卡片242对应的候选应用确定为目标应用。Schematically, as shown in FIG. 2 , the
步骤103,响应于目标应用界面内对缩略图的拖动操作,通过目标应用分享目标内容,目标应用界面是目标应用对应目标应用卡片中显示的应用界面。
由于目标应用卡片中显示有目标应用界面,因此用户可以通过在目标应用界面内继续拖动缩略图,选择目标内容在目标应用中的具体分享对象,并在结束对缩略图的拖动时完成内容分享。相较于相关技术中的分享方式,通过在应用界面内拖动缩略图实现内容分享,使得分享过程更加直观(即直接将内容拖动至应用中进行分享)。Since the target application interface is displayed in the target application card, the user can continue to drag the thumbnail in the target application interface to select the specific sharing object of the target content in the target application, and complete the content after dragging the thumbnail share. Compared with the sharing method in the related art, the content sharing is realized by dragging the thumbnails in the application interface, which makes the sharing process more intuitive (that is, directly dragging the content into the application for sharing).
在一种可能的实施方式中,当目标用户界面中存在多个候选分享对象时(比如会话界面中存在多个会话),终端基于对缩略图的拖动操作,实时确定拖动操作对应拖动位置处的候选分享对象,并在拖动操作结束时,将该候选分享对象确定为目标分享对象,从而通过目标应用将目标内容分享至目标分享对象。In a possible implementation, when there are multiple candidate sharing objects in the target user interface (for example, there are multiple sessions in the session interface), the terminal determines in real time that the drag operation corresponds to the drag operation based on the drag operation on the thumbnail The candidate sharing object at the location, and when the drag operation ends, the candidate sharing object is determined as the target sharing object, so as to share the target content to the target sharing object through the target application.
示意性的,如图2所示,第二候选应用卡片242显示的会话界面中包含多个会话,用户将缩率图23拖动到指定会话所在的显示位置,并结束拖动后,照片22即被分享至该指定会话。Schematically, as shown in FIG. 2 , the session interface displayed by the second
关于内容分享的技术实现原理,在一种可能的实施方式中,终端获取目标内容的存储路径,并将该存储路径传递给目标应用,由目标应用基于存储路径获取该目标内容,进而对该目标内容进行分享。Regarding the technical implementation principle of content sharing, in a possible implementation, the terminal obtains the storage path of the target content, and passes the storage path to the target application, and the target application obtains the target content based on the storage path, and then the target application content to share.
需要说明的是,本申请实施例中所指的分享,可以是通过目标应用将目标内容发送至指定联系人或发布至分享平台,也可以是将目标内容由原始应用分享至目标应用,以便后续通过目标应用对目标内容进行编辑处理。It should be noted that the sharing referred to in the embodiment of this application can be sending the target content to a designated contact or posting it to a sharing platform through the target application, or it can be sharing the target content from the original application to the target application for subsequent The target content is edited by the target application.
综上所述,本申请实施例中,当接收到对目标内容的触发操作时,终端显示目标内容的缩略图,并显示提供内容分享服务的候选应用的应用卡片供用户选择,当接收到对缩略图的拖动操作时,终端基于拖动操作确定进行内容分享的目标应用,并进一步基于目标应用卡片内对缩略图的拖动操作,通过目标应用分享目标内容;采用本申请实施例提供的方案,用户只需要通过连续的拖动操作即可在目标应用中完成内容分享,简化了内容分享操作和流程;并且,通过应用卡片展示应用界面,并基于应用界面内对缩略图的拖动操作实现内容分享,使内容分享过程更加清楚直观,有助于提高内容分享的效率以及准确性。To sum up, in this embodiment of the application, when a trigger operation on the target content is received, the terminal displays a thumbnail of the target content, and displays application cards of candidate applications that provide content sharing services for the user to select. During the drag operation of the thumbnail, the terminal determines the target application for content sharing based on the drag operation, and further based on the drag operation of the thumbnail in the target application card, shares the target content through the target application; solution, users only need to perform continuous drag operations to complete content sharing in the target application, which simplifies the content sharing operation and process; and, the application interface is displayed through the application card, and based on the drag operation of the thumbnail in the application interface Realize content sharing, make the content sharing process more clear and intuitive, and help to improve the efficiency and accuracy of content sharing.
为了实现在应用界面内拖动分享,终端接收到对目标内容的触发操作后,确定出至少一个候选应用,并获取至少一个候选应用的应用界面,以便在显示目标内容的缩略图时,在至少一个候选应用对应的候选应用卡片中显示应用界面。In order to realize dragging and sharing in the application interface, after receiving the trigger operation on the target content, the terminal determines at least one candidate application, and obtains the application interface of at least one candidate application, so that when displaying the thumbnail of the target content, at least An application interface is displayed in a candidate application card corresponding to a candidate application.
在一种可能的实施方式中,终端可以采用如下方式中的至少一种确定候选应用。In a possible implementation manner, the terminal may determine candidate applications in at least one of the following manners.
1、基于目标内容所属的目标类型,确定至少一个候选应用,候选应用支持分享属于目标类型的内容。1. Based on the target type to which the target content belongs, at least one candidate application is determined, and the candidate application supports sharing of the content belonging to the target type.
通常情况下,应用对分享内容的类型存在一定限制。比如,即时通信应用支持分享文本、文件、图片、音视频和聊天记录,社交类应用支持分享文本、图片、音视频和聊天记录,云存储应用支持分享文件、图片和音视频。Typically, apps have restrictions on the types of content that can be shared. For example, instant messaging applications support the sharing of text, files, pictures, audio and video, and chat records, social networking applications support the sharing of text, pictures, audio and video, and chat records, and cloud storage applications support the sharing of files, pictures, and audio and video.
因此,为了提高用户从候选应用中选取目标应用的效率,避免无法通过选中的应用进行内容分享,响应于对目标内容的触发操作,终端获取目标内容所属的目标类型,从而基于该目标类型,将已安装应用中支持分享该目标类型内容的应用确定为候选应用。Therefore, in order to improve the efficiency of the user in selecting a target application from candidate applications and avoid being unable to share content through the selected application, in response to a trigger operation on the target content, the terminal obtains the target type to which the target content belongs, and based on the target type, the Among the installed applications, an application that supports sharing content of the target type is determined as a candidate application.
在一种可能的实施方式中,终端基于已安装应用各自支持的分享内容类型,确定候选应用,且各个应用所支持的分享内容类型可以服务器收集并提供给终端。In a possible implementation manner, the terminal determines candidate applications based on the shared content types supported by the installed applications, and the shared content types supported by each application can be collected by the server and provided to the terminal.
在一个示意性的例子中,当目标内容为图片时,终端将即时通信应用、社交类应用和云存储应用确定为候选应用;当目标内容为聊天记录时,终端将即时通信应用和社交类应用确定为候选应用。In an illustrative example, when the target content is a picture, the terminal determines instant messaging applications, social networking applications, and cloud storage applications as candidate applications; when the target content is chat records, the terminal determines instant messaging applications and social networking applications identified as candidate applications.
2、基于目标内容所属的目标类型,获取目标历史分享记录,目标历史分享记录中包含各个应用分享属于目标类型的内容的分享次数;基于分享次数确定至少一个候选应用。2. Acquiring target historical sharing records based on the target type to which the target content belongs. The target historical sharing records include the number of sharing times of content belonging to the target type shared by each application; and determining at least one candidate application based on the sharing times.
为了使内容分享时推荐的候选应用更加符合用户的个人分享习惯,提高用户从候选应用中选取目标应用的效率,进而提高内容分享效率,在一种可能的实施方式中,终端对每次内容分享时所分享内容的类型,以及分享时所采用的应用进行记录,得到历史分享记录。In order to make the candidate applications recommended during content sharing more in line with the user's personal sharing habits, improve the efficiency of the user in selecting the target application from the candidate applications, and thereby improve the efficiency of content sharing, in a possible implementation, the terminal The type of content shared at the time and the application used for sharing are recorded, and the historical sharing record is obtained.
当接收到对目标内容的触发操作时,终端基于目标内容所属的目标类型,从历史分享记录中获取目标历史分享记录,该目标历史分享记录中包含各个应用分享属于该目标类型的内容的分享次数。When receiving a trigger operation on the target content, the terminal obtains the target historical sharing record from the historical sharing record based on the target type to which the target content belongs, and the target historical sharing record includes the number of times each application shares the content belonging to the target type .
进一步的,终端基于分享次数确定出至少一个候选应用。可选的,终端将分享次数最多的前n(n为正整数)个应用确定为候选应用。Further, the terminal determines at least one candidate application based on the sharing times. Optionally, the terminal determines the top n (n is a positive integer) applications with the most sharing times as candidate applications.
示意性的,终端中存储的历史分享记录如表一所示。Schematically, the history sharing records stored in the terminal are shown in Table 1.
表一Table I
当目标内容为图片时,终端将即时通信应用和社交类应用确定为候选应用;当目标内容为音视频时,终端将云存储应用和即时通信应用确定为候选应用;当目标内容为聊天记录时,终端将即时通信应用和社交类应用确定为候选应用。When the target content is pictures, the terminal determines instant messaging applications and social networking applications as candidate applications; when the target content is audio and video, the terminal determines cloud storage applications and instant messaging applications as candidate applications; when the target content is chat records , the terminal determines the instant messaging application and the social networking application as candidate applications.
3、将应用分享名单中的应用确定为候选应用。3. Determining applications in the application sharing list as candidate applications.
在一种可能的实施方式中,终端存储有应用分享名单,该应用分享名单中包含支持通过拖动操作进行内容分享的应用的标识。响应于对目标内容的触发操作,终端将属于该应用分享名单,且已安装的应用确定为候选应用。In a possible implementation manner, the terminal stores an application sharing list, and the application sharing list includes identifiers of applications that support content sharing through a drag operation. In response to a trigger operation on the target content, the terminal determines that the installed application belongs to the application sharing list as a candidate application.
在一个示意性的例子中,应用分享名单中包含即时通信应用A、即时通信应用B、即时通信应用C、社交类应用D、社交类应用E、云存储应用F以及备忘录应用G,由于终端仅安装有即时通信应用B和备忘录应用G,因此终端将即时通信应用B和备忘录应用G确定为候选应用。In an illustrative example, the application sharing list includes instant messaging application A, instant messaging application B, instant messaging application C, social application D, social application E, cloud storage application F, and memo application G. Since the terminal only The instant messaging application B and the memo application G are installed, so the terminal determines the instant messaging application B and the memo application G as candidate applications.
需要说明的是,上述实施例中确定候选应用的方式可以单独执行,也可以组合执行,比如可以将第1种方式与第3种方式结合,从而将属于应用分享名单,且支持分享属于目标类型内容的应用确定为候选应用,本实施例对此不作限定。It should be noted that the methods for determining candidate applications in the above-mentioned embodiments can be performed alone or in combination. For example, the first method can be combined with the third method, so that the application will belong to the sharing list, and the supported sharing belongs to the target type The content application is determined as a candidate application, which is not limited in this embodiment.
本实施例中,终端基于目标内容的目标类型,将支持分享该目标类型内容的应用确定为候选应用,确保后续进行内容分享时,所选择的目标应用能够正常分享目标内容,避免出现所选择的目标应用无法进行内容分享的问题,提高了内容分享的准确性以及分享效率。In this embodiment, based on the target type of the target content, the terminal determines the application that supports the sharing of the target type of content as the candidate application, so as to ensure that the selected target application can share the target content normally during the subsequent content sharing, and avoid the selected The problem that the target application cannot share content improves the accuracy and efficiency of content sharing.
此外,终端可以基于历史分享记录以及目标内容的目标类型,确定出候选应用,使内容分享时推荐的候选应用符合用户的个人分享习惯,进而提高内容分享的效率。In addition, the terminal can determine candidate applications based on historical sharing records and the target type of the target content, so that the candidate applications recommended during content sharing conform to the user's personal sharing habits, thereby improving the efficiency of content sharing.
由于确定出的候选应用可能处于开启状态(即在前台运行或在后台运行),也可能处于关闭状态,因此针对处于不同运行状态的候选应用,终端获取应用界面所采用的方式也不同。Since the determined candidate application may be in an open state (that is, running in the foreground or running in the background) or may be in a closed state, the terminal acquires the application interface in different ways for candidate applications in different running states.
可选的,响应于候选应用处于开启状态,终端获取候选应用的实时应用界面;响应于候选应用处于关闭状态,终端获取候选应用的非实时应用界面,非实时应用界面为候选应用的历史应用界面或默认应用界面。Optionally, in response to the candidate application being in the open state, the terminal acquires the real-time application interface of the candidate application; in response to the candidate application being in the off state, the terminal acquires the non-real-time application interface of the candidate application, where the non-real-time application interface is the historical application interface of the candidate application or the default application interface.
对于处于开启状态的候选应用,终端可以直接获取候选应用的实时应用界面,并将实时应用界面显示在候选应用卡片内,从而向用户清楚呈现候选应用当前显示的内容。For a candidate application in an open state, the terminal can directly obtain the real-time application interface of the candidate application, and display the real-time application interface in the candidate application card, so as to clearly present the content currently displayed by the candidate application to the user.
而对于处于关闭状态的候选应用,由于最终选中的目标应用可能并非该候选应用,因此为了避免直接开启处于关闭状态的候选应用,但是该候选应用未被选取而造成资源占用浪费,终端获取该候选应用的非实时应用界面,而无需开启该候选应用。For a candidate application that is in the closed state, since the final selected target application may not be the candidate application, in order to avoid directly opening the candidate application that is in the closed state, but the candidate application is not selected and wastes resources, the terminal acquires the candidate application. The non-real-time application interface of the application without opening the candidate application.
其中,终端可以对候选应用最近开启时的历史应用界面进行存储,并将该历史应用界面作为非实时界面进行显示,或者,终端可以将候选应用对应的默认应用界面作为非实时界面进行显示。Wherein, the terminal may store the historical application interface when the candidate application was started recently, and display the historical application interface as a non-real-time interface, or, the terminal may display the default application interface corresponding to the candidate application as a non-real-time interface.
进一步的,当选中的目标应用为处于开启状态的候选应用时,终端继续将获取到的实时应用界面显示在目标候选卡片中。当选中的目标应用为处于关闭状态的候选应用时,为了保证候选拖动分享操作的正确执行,在一种可能的实施方式中,终端需要开启目标应用,并获取目标应用的实时应用界面,从而将目标应用卡片中显示的非实时应用界面更新为实时应用界面。Further, when the selected target application is an open candidate application, the terminal continues to display the acquired real-time application interface in the target candidate card. When the selected target application is a closed candidate application, in order to ensure the correct execution of the candidate drag and share operation, in a possible implementation manner, the terminal needs to open the target application and obtain the real-time application interface of the target application, so that Update the non-real-time application interface displayed in the target application card to the real-time application interface.
示意性的,如图3所示,终端显示第一候选应用卡片241、第二候选应用卡片242和第三候选应用卡片243,其中,第一候选应用卡片241中显示有第一候选应用(当前处于关闭状态)的默认应用界面,第二候选应用卡片242中显示有第二候选应用(当前处于开启状态)的实时应用界面,第三候选应用卡片243中显示有第三候选应用(当前处于关闭状态)的默认应用界面。当用户通过拖动缩略图23选中第一候选应用作为目标应用时,终端开启第一候选应用,并将一候选应用卡片241中显示的默认运用界面更新为第一候选应用的实时应用界面。Schematically, as shown in FIG. 3 , the terminal displays a first
在一种可能的实施方式中,对目标内容的触发操作以及对缩略图的拖动操作为连续操作,为了保证操作的连贯性以及显示候选应用卡片的完整性,如图4所示,基于对目标内容的触发操作显示候选应用卡片的过程可以包括如下步骤。In a possible implementation manner, the trigger operation on the target content and the drag operation on the thumbnail are continuous operations. In order to ensure the continuity of the operation and the integrity of the displayed candidate application cards, as shown in FIG. 4 , based on the The process of displaying candidate application cards by triggering the operation of the target content may include the following steps.
步骤401,基于触发操作的触发区域,确定候选应用卡片的卡片显示区域,触发区域与卡片显示区域之间的间距为固定值。Step 401: Determine the card display area of the candidate application card based on the trigger area of the trigger operation, and the distance between the trigger area and the card display area is a fixed value.
可选的,候选应用卡片设置在卡片显示区域,且卡片显示区域与缩略图对应显示区域(即触发操作的触发区域)之间的间距为固定值。其中,卡片显示区域可以位于缩略图的上方、下方、左侧或右侧,且候选应用卡片在卡片显示区域内可以横向排布,也可以纵向排布,本实施例对此不作限定。Optionally, the candidate application cards are set in the card display area, and the distance between the card display area and the display area corresponding to the thumbnail (ie, the trigger area for triggering the operation) is a fixed value. The card display area can be located above, below, left or right of the thumbnail, and the candidate application cards can be arranged horizontally or vertically in the card display area, which is not limited in this embodiment.
为了保证卡片显示区域内候选应用卡片完整显示,终端需要基于触发操作的触发区域,动态确定卡片显示区域。In order to ensure the complete display of candidate application cards in the card display area, the terminal needs to dynamically determine the card display area based on the trigger area of the trigger operation.
在一种可能的实施方式中,当卡片显示区域可以位于缩略图的上方或下方(卡片显示区域的候选应用卡片横向排布)时,终端确定触发区域与屏幕上边缘之间的距离是否大于距离阈值,若大于,则确定卡片显示区域位于触发区域上方;若小于,则确定卡片显示区域位于触发区域下方。In a possible implementation, when the card display area can be located above or below the thumbnail (the candidate application cards in the card display area are arranged horizontally), the terminal determines whether the distance between the trigger area and the upper edge of the screen is greater than the distance If it is greater than the threshold, it is determined that the card display area is above the trigger area; if it is less than, it is determined that the card display area is below the trigger area.
当卡片显示区域可以位于缩略图的左侧或右侧时(卡片显示区域的候选应用卡片纵向排布),终端确定触发区域与屏幕左边缘之间的距离是否大于距离阈值,若大于,则确定卡片显示区域位于触发区域左侧;若小于,则确定卡片显示区域位于触发区域右侧。When the card display area can be located on the left or right side of the thumbnail (the candidate application cards in the card display area are arranged vertically), the terminal determines whether the distance between the trigger area and the left edge of the screen is greater than the distance threshold, and if it is greater, then determine The card display area is on the left side of the trigger area; if it is smaller, it is determined that the card display area is on the right side of the trigger area.
步骤402,在触发区域显示目标内容的缩略图。
步骤403,在卡片显示区域显示至少一个候选应用对应的候选应用卡片,并在候选应用卡片中显示应用界面。
确定出卡片显示区域后,终端即在触发操作的触发区域内显示目标内容的缩略图,并在卡片显示区域显示候选应用对应的候选应用卡片,使得用户对目标内容执行触发操作后,可以连贯执行对缩略图的拖动操作,并保证候选应用卡片的完整显示。After determining the card display area, the terminal displays the thumbnail of the target content in the trigger area of the trigger operation, and displays the candidate application card corresponding to the candidate application in the card display area, so that after the user performs the trigger operation on the target content, it can be executed continuously Drag operation on the thumbnail, and ensure the complete display of candidate application cards.
示意性的,如图5所示,由于触发操作的触发区域位于屏幕下半部区域,因此终端在触发区域显示目标内容51对应的缩略图52,并在缩略图52上方的卡片显示区域53内显示第一候选应用卡片531、第二候选应用卡片532以及第三候选应用卡片533。Schematically, as shown in Figure 5, since the trigger area of the trigger operation is located in the lower half of the screen, the terminal displays the thumbnail 52 corresponding to the
本实施例中,终端基于触发操作的触发区域,动态确定卡片显示区域的显示位置,既保证了触发操作与拖动操作的连续性,又确保卡片显示区域内候选卡片的完整显示。In this embodiment, the terminal dynamically determines the display position of the card display area based on the trigger area of the trigger operation, which not only ensures the continuity of the trigger operation and the drag operation, but also ensures the complete display of candidate cards in the card display area.
在其他可能的实施方式中,当对目标内容的触发操作以及对缩略图的拖动操作并非连续操作时,终端可以基于触发操作,在默认区域显示缩略图以及卡片显示区域,后续用户通过拖动缩略图同样能够完成拖动分享,其中,当缩略图的实际显示位置与触发操作的触发区域不同时,用户需要调整手势,从而从缩略图的实际显示位置开始拖动操作)。In other possible implementations, when the trigger operation on the target content and the drag operation on the thumbnail are not continuous operations, the terminal can display the thumbnail and the card display area in the default area based on the trigger operation, and the subsequent user can drag the Thumbnails can also be dragged and shared, wherein, when the actual display position of the thumbnail is different from the trigger area of the trigger operation, the user needs to adjust the gesture to start the drag operation from the actual display position of the thumbnail).
由于卡片显示区域可容纳候选应用卡片的数量有限,比如卡片显示区域最多支持同时容纳并显示3个候选应用卡片,当候选应用卡片的总数大于卡片显示区域的可容纳上限时,部分候选应用卡片无法显示在卡片显示区域,此时需要用户通过手动操作更新卡片显示区域中的候选应用卡片。Due to the limited number of candidate application cards that can be accommodated in the card display area, for example, the card display area can accommodate and display up to 3 candidate application cards at the same time. When the total number of candidate application cards is greater than the upper limit of the card display area, some candidate application cards cannot It is displayed in the card display area. At this time, the user needs to manually update the candidate application cards in the card display area.
在一种可能的实施方式中,响应于对缩略图的拖动操作,且缩略图位于屏幕边缘,终端更新卡片显示区域中显示的候选应用卡片。In a possible implementation manner, in response to a drag operation on the thumbnail, and the thumbnail is located at the edge of the screen, the terminal updates the candidate application cards displayed in the card display area.
其中,当卡片显示区域中的候选卡片横向排布时,若缩略图位于屏幕左边缘或右边缘,终端则更新卡片显示区域中的候选应用卡片;当卡片显示区域中的候选卡片纵向排布时,若缩略图位于屏幕上边缘或下边缘,终端则更新卡片显示区域中的候选应用卡片。Among them, when the candidate cards in the card display area are arranged horizontally, if the thumbnail is located at the left or right edge of the screen, the terminal will update the candidate application cards in the card display area; when the candidate cards in the card display area are arranged vertically , if the thumbnail is located at the upper or lower edge of the screen, the terminal updates the candidate application cards in the card display area.
示意性的,如图6所示,卡片显示区域53中初始显示有第一候选应用卡片531、第二候选应用卡片532以及第三候选应用卡片533,当用户将缩略图52拖动至屏幕右边缘时,终端将第一候选应用卡片531移出卡片显示区域53,并将第四候选应用卡片534移入卡片显示区域53,以便用户通过第四候选应用卡片534对应的候选应用分享目标内容。Schematically, as shown in FIG. 6, a first
可选的,卡片显示区域中候选应用卡片的显示优先级与利用候选应用进行内容分享的次数相关。比如,候选应用进行内容分享的频率越高,其对应候选应用卡片在卡片显示区域中的显示优先级越高,以便用户快速从卡片显示区域中选中目标应用。Optionally, the display priority of the candidate application cards in the card display area is related to the number of times the candidate applications are used for content sharing. For example, the higher the frequency of content sharing by the candidate application, the higher the display priority of the corresponding candidate application card in the card display area, so that the user can quickly select the target application from the card display area.
关于从若干候选应用中选取目标应用的过程,在一种可能的实施方式中,用户拖动缩略图的过程中,可以将缩略图拖动至某一候选应用卡片上方,并保持一段时间,从而完成目标应用选择。相应的,响应于对缩略图的拖动操作,终端基于缩略图的第一悬停位置从至少一个候选应用中确定目标应用。Regarding the process of selecting a target application from several candidate applications, in a possible implementation manner, when the user drags the thumbnail, the user can drag the thumbnail above a certain candidate application card and hold it for a period of time, so that Complete the target application selection. Correspondingly, in response to the drag operation on the thumbnail, the terminal determines a target application from at least one candidate application based on the first hovering position of the thumbnail.
在一些实施例中,为了降低误操作概率,响应于缩略图的第一悬停位置与候选应用卡片的显示位置存在交集,显示应用选中倒计时,并对候选应用卡片进行突出显示,提示用户到达倒计时后,该候选应用卡片对应的候选应用将被选中为目标应用,其中,突出显示的方式包括边框加粗、边框高亮和卡片放大中的至少一种。通过对候选应用卡片进行突出显示,能够更加显著地告知用户当前选中的应用卡片(即给出明确的选中反馈),从而提高应用卡片的选择准确性,降低误选择概率。In some embodiments, in order to reduce the probability of misuse, in response to the intersection of the first hovering position of the thumbnail and the display position of the candidate application card, display the countdown for selecting the application, highlight the candidate application card, and prompt the user to reach the countdown After that, the candidate application corresponding to the candidate application card will be selected as the target application, wherein the highlighting method includes at least one of thickening the border, highlighting the border and enlarging the card. By highlighting the candidate application cards, the user can be more clearly informed of the currently selected application card (that is, a clear selection feedback is given), thereby improving the accuracy of application card selection and reducing the probability of wrong selection.
可选的,当缩略图的第一悬停位置与候选应用卡片的显示位置存在交集时,终端还会对缩略图进行缩小处理,进一步提高选中反馈的显著程度,提高应用卡片选择的准确性。Optionally, when the first hovering position of the thumbnail overlaps with the display position of the candidate application card, the terminal will also shrink the thumbnail to further increase the significance of the selection feedback and improve the accuracy of application card selection.
响应于应用选中倒计时结束,终端将候选应用卡片对应的候选应用确定为目标应用,其中,该应用选中倒计时可以由终端默认设置,也可以由用户自定义,比如该应用选中倒计时为3s。In response to the end of the application selection countdown, the terminal determines the candidate application corresponding to the candidate application card as the target application, wherein the application selection countdown can be set by default by the terminal, or can be customized by the user, for example, the application selection countdown is 3s.
当然,在其他可能的实施方式中,当缩略图的第一悬停位置与候选应用卡片的显示位置存在交集时,终端可以显示应用选中倒计时,而不对候选应用卡片进行突出显示,或者,终端对候选应用卡片进行突出显示,而不显示应用选中倒计时(但是仍旧会进行倒计时),本实施例对此不作限定。Certainly, in other possible implementation manners, when the first hovering position of the thumbnail overlaps with the display position of the candidate application card, the terminal may display the countdown for selecting the application without highlighting the candidate application card, or the terminal may The candidate application cards are highlighted instead of displaying the countdown for selecting the application (but the countdown will still be performed), which is not limited in this embodiment.
并且,为了便于后续在目标应用卡片显示的目标应用界面内进行内容分享,终端对目标应用卡片进行放大处理。其中,放大处理后目标应用卡片的尺寸为默认设置,比如放大后目标应用卡片的尺寸由100px×200px变为350px×700px。Moreover, in order to facilitate subsequent content sharing in the target application interface displayed on the target application card, the terminal zooms in on the target application card. Wherein, the size of the target application card after zooming in is the default setting, for example, the size of the target application card changes from 100px×200px to 350px×700px after zooming in.
示意性的,如图7所示,接收到对目标内容的触发操作后,终端显示目标内容的缩略图71、第一候选应用卡片721、第二候选应用卡片722以及第三候选应用卡片723。用户将缩略图71拖动至第二候选应用卡片722对应的显示位置时,缩略图71缩小,第二候选应用卡片722的边框加粗,且终端显示应用选中倒计时73(倒计时3秒)。当悬停时长达到3s时,终端将第二候选应用卡片722确定为目标应用卡片,并对目标应用卡片进行放大处理。Schematically, as shown in FIG. 7 , after receiving a trigger operation on the target content, the terminal displays a thumbnail 71 of the target content, a first candidate application card 721 , a second candidate application card 722 and a third candidate application card 723 . When the user drags the thumbnail image 71 to the display position corresponding to the second candidate application card 722, the thumbnail image 71 is reduced, the frame of the second candidate application card 722 is thickened, and the terminal displays the application selection countdown 73 (3 seconds countdown). When the hovering time reaches 3s, the terminal determines the second candidate application card 722 as the target application card, and zooms in on the target application card.
在一些实施例中,当缩略图被拖动至目标应用卡片以外的显示区域时,终端确定无需在该目标应用卡片对应的应用内进行分享,从而将目标应用卡片还原至原始尺寸。In some embodiments, when the thumbnail is dragged to a display area other than the target application card, the terminal determines that there is no need to share in the application corresponding to the target application card, thereby restoring the target application card to its original size.
本实施例中,用户只需要将目标内容的缩略图拖动至候选应用卡片的显示位置,并保持悬停一段时间即可完成目标应用选中,应用选择流程简单,且能够降低误触发概率,有助于提高应用选择的准确性。In this embodiment, the user only needs to drag the thumbnail of the target content to the display position of the candidate application card, and keep hovering for a period of time to complete the selection of the target application. The application selection process is simple, and the probability of false triggering can be reduced. Helps improve the accuracy of application selection.
可选的,在未完成目标应用选择的情况下,响应于对缩略图的拖动操作结束,且缩略图位于候选应用卡片之外的显示位置,终端取消显示缩略图和候选应用卡片,从而结束内容分享。Optionally, when the selection of the target application is not completed, in response to the end of the drag operation on the thumbnail, and the thumbnail is located at a display position outside the candidate application card, the terminal cancels the display of the thumbnail and the candidate application card, thereby ending content sharing.
关于通过在目标应用界面内执行拖动操作,从而完成内容分享的过程,在一种可能的实施方式中,如图8所示,该过程可以包括如下步骤。Regarding the process of completing content sharing by performing a drag operation in the target application interface, in a possible implementation manner, as shown in FIG. 8 , the process may include the following steps.
步骤801,响应于目标应用界面内对缩略图的拖动操作,基于拖动操作的拖动位置更新缩略图显示位置。
确定出目标应用后,终端基于接收到的拖动操作,实时更新缩略图在目标应用界面内的显示位置。其中,缩率图显示位置可以采用坐标表示,该坐标可以为绝对坐标,也可以为相对坐标。After the target application is determined, the terminal updates the display position of the thumbnail in the target application interface in real time based on the received drag operation. Wherein, the display position of the thumbnail image may be represented by coordinates, and the coordinates may be absolute coordinates or relative coordinates.
步骤802,确定目标应用界面中缩略图显示位置对应的第一应用功能区域。
基于缩略图的实时显示位置,终端确定目标应用界面中缩略图显示位置对应的第一应用功能区域。由于并非目标应用界面的所有功能区域均支持内容分享,因此在一种可能的实施方式中,终端检测该第一应用功能区域是否支持内容分享,若支持,则执行步骤803;若不支持,则执行步骤804。Based on the real-time display position of the thumbnail, the terminal determines the first application function area corresponding to the thumbnail display position in the target application interface. Since not all functional areas of the target application interface support content sharing, in a possible implementation, the terminal detects whether the first application functional area supports content sharing, and if yes, execute
关于检测第一应用功能区域是否支持内容分享的具体方式,可选的,终端操作系统将缩略图显示位置传递至目标应用,由目标应用基于缩率图显示位置确定第一应用功能区域,并进一步确定第一应用功能区域是否支持内容分享,从而将结果反馈至终端操作系统。Regarding the specific method of detecting whether the first application functional area supports content sharing, optionally, the terminal operating system transmits the thumbnail display position to the target application, and the target application determines the first application functional area based on the thumbnail display position, and further Determine whether the first application function area supports content sharing, so as to feed back the result to the terminal operating system.
步骤803,响应于第一应用功能区域支持内容分享,在缩略图的周侧显示分享提示信息。
其中,该分享提示信息用于提示用户可以停止拖动以分享目标内容。并且,该分享提示信息可以显示在缩略图的上方、下方、左侧或右侧等等,本申请实施例对分享提示信息的具体显示位置不作限定。Wherein, the sharing prompt information is used to prompt the user to stop dragging to share the target content. Moreover, the sharing prompt information may be displayed on the top, bottom, left or right side of the thumbnail, etc. The embodiment of the present application does not limit the specific display position of the sharing prompt information.
示意性的,如图9所示,目标应用卡片92中显示有即时通信应用的会话界面,该会话界面中包含会话列表(包含于不同对象的会话选项)。当用户将缩略图91拖动至“张三”对应的会话选项时,终端确定缩略图91当前所处的应用功能区域支持内容分享,从而在缩略图91的周侧显示分享提示信息93,提示用户可以释放以发送目标内容。Schematically, as shown in FIG. 9 , the
步骤804,响应于第一应用功能区域不支持内容,在缩略图的周侧显示分享禁用标识。
其中,该分享禁用标识用于提示用户当前位置停止拖动无法完成内容分享。Wherein, the sharing disabled sign is used to prompt the user to stop dragging at the current location and cannot complete content sharing.
可选的,该分享禁用标识以角标的形式显示在缩略图的周侧。比如,该分享禁用标识为显示在缩略图右上角的“-”角标。本申请实施例并不对分享禁用标识的具体表现形式以及显示位置进行限定。Optionally, the sharing prohibition mark is displayed on the side of the thumbnail in the form of a corner mark. For example, this sharing disable is indicated by a "-" icon displayed in the upper right corner of the thumbnail. The embodiment of the present application does not limit the specific expression form and display position of the sharing prohibition logo.
步骤805,响应于拖动操作结束,且第一应用功能区域支持内容分享,通过目标应用分享目标内容。
当检测到拖动操作结束时,若拖动操作结束前缩略图显示位置对应的第一应用功能区域支持内容分享,终端则通过目标应用分享该目标内容。When detecting the end of the drag operation, if the function area of the first application corresponding to the display position of the thumbnail before the end of the drag operation supports content sharing, the terminal shares the target content through the target application.
示意性的,如图9所示,当用户在“张三”对应的会话选项处停止对缩略图的拖动操作时,终端将目标内容分享至通过即时通信应用中的“张三”。Schematically, as shown in FIG. 9 , when the user stops dragging the thumbnail at the conversation option corresponding to "Zhang San", the terminal shares the target content with "Zhang San" in the instant messaging application.
可选的,若拖动操作结束前缩略图显示位置对应的第一应用功能区域不支持内容分享,终端则提示内容分享失败,并将缩略图显示在预设显示区域,以便用户重新拖动缩略图进行分享。其中,该预设显示区域位于应用卡片以为的显示区域。Optionally, if the first application function area corresponding to the thumbnail display position does not support content sharing before the drag operation ends, the terminal will prompt that the content sharing failed, and display the thumbnail in the preset display area so that the user can drag the thumbnail again. Thumbnails to share. Wherein, the preset display area is located in the display area of the application card.
在一种可能的应用场景下,当目标应用界面中的显示内容过多时,用户需要通过翻页或滚动操作来查看界面中的全部显示内容。比如,会话界面的会话列表中包含大量会话选项,导致无法同屏显示所有会话选项,需要通过滑动操作触发显示会话列表中的其余会话选项。In a possible application scenario, when there are too many display contents in the target application interface, the user needs to view all the display contents in the interface by turning pages or scrolling. For example, the session list of the session interface contains a large number of session options, so that all session options cannot be displayed on the same screen, and the remaining session options in the session list need to be triggered to be displayed through a sliding operation.
相应的,在这种场景下通过拖动操作进行内容分享时,用户需要拖动操作触发终端更新目标应用界面内的显示内容。关于通过拖动操作触发目标应用界面更新显示内容的具体方式,在一种可能的实施方式中,响应于缩略图显示位置位于目标应用界面的目标界面边缘,终端基于目标界面边缘对应的内容更新方式,更新目标应用界面的显示内容,内容更新方式包括上下滚动和左右翻页中的至少一种。Correspondingly, when performing content sharing through a drag operation in this scenario, the user needs to drag the operation to trigger the terminal to update the display content in the target application interface. Regarding the specific manner of triggering the target application interface to update the display content through a drag operation, in a possible implementation manner, in response to the thumbnail display position being located at the edge of the target interface of the target application interface, the terminal updates the content based on the method corresponding to the edge of the target interface to update the display content of the target application interface, and the content update method includes at least one of scrolling up and down and page turning left and right.
可选的,当目标应用界面中的显示内容支持上下滚动时,该目标界面边缘为界面上边缘或界面下边缘,其中,当缩略图显示位置位于界面上边缘时,目标应用界面中的显示内容向上滚动,当缩略图显示位置位于界面下边缘时,目标应用界面中的显示内容向下滚动。Optionally, when the display content in the target application interface supports scrolling up and down, the edge of the target interface is the upper edge or the lower edge of the interface. Wherein, when the thumbnail display position is located at the upper edge of the interface, the display content in the target application interface Scroll up, and when the display position of the thumbnail is at the lower edge of the interface, the displayed content in the target application interface scrolls down.
当目标应用界面中的显示内容支持左右翻页时,该目标界面边缘为界面左边缘或界面右边缘,其中,当缩略图显示位置位于界面左边缘时,目标应用界面中的显示内容向左翻页,当缩略图显示位置位于界面右边缘时,目标应用界面中的显示内容向右翻页。When the display content in the target application interface supports left and right page turning, the edge of the target interface is the left edge of the interface or the right edge of the interface. Wherein, when the thumbnail display position is located at the left edge of the interface, the display content in the target application interface is turned to the left page, when the display position of the thumbnail is at the right edge of the interface, the displayed content in the target application interface turns to the right.
在一种可能的实现方式中,终端操作系统检测到缩略图位于目标界面边缘时,向目标应用发送滚动或翻页指令,由目标应用基于滚动或翻页指令更新目标应用界面的显示内容,以便终端操作系统将实时应用界面显示在目标应用卡片中。In a possible implementation, when the terminal operating system detects that the thumbnail is located at the edge of the target interface, it sends a scrolling or page-turning instruction to the target application, and the target application updates the display content of the target application interface based on the scrolling or page-turning instruction, so that The terminal operating system displays the real-time application interface in the target application card.
示意性的,如图10所示,目标应用卡片1002中显示即时通信应用的会话界面,该会话界面中包含与不同会话对象的会话选项。若当前显示的会话选项中不包含目标会话对象,用户可以将缩略图1001推动至会话界面的下边缘,从而触发会话界面中的会话列表向下滚动,以显示更多会话选项(比如“朱八”对应的会话选项)。Schematically, as shown in FIG. 10 , the
本实施例中,当目标应用界面显示长页面时,用户可以将缩略图拖动至目标应用界面的界面边缘,从而触发更新目标应用界面内的显示内容,实现应用卡片内的上下滚动或左右翻页功能,进而提高了内容分享的效率。In this embodiment, when the target application interface displays a long page, the user can drag the thumbnail to the interface edge of the target application interface, thereby triggering an update of the display content in the target application interface, and realizing scrolling up and down or turning left and right in the application card page function, thereby improving the efficiency of content sharing.
在另一种可能的应用场景下,目标应用界面中当前显示页面的下级页面或上级页面才是用户期望进行内容分享的页面,此时用户需要通过拖动操作触发页面切换,以完成后续内容分享。在一种可能的实施方式中,响应于缩略图在第二悬停位置处悬停,终端确定目标应用界面中第二悬停位置对应的第二应用功能区域,当悬停时长达到第一时长阈值,且第二应用功能区域支持页面切换时,终端切换目标应用界面中显示的页面。In another possible application scenario, the lower-level page or upper-level page of the currently displayed page in the target application interface is the page that the user expects to share content. At this time, the user needs to trigger page switching by dragging to complete subsequent content sharing. . In a possible implementation manner, in response to the thumbnail hovering at the second hovering position, the terminal determines the second application function area corresponding to the second hovering position in the target application interface, and when the hovering duration reaches the first duration threshold, and the second application function area supports page switching, the terminal switches the page displayed on the target application interface.
可选的,页面切换指返回上一级页面或者进入下一级页面。比如,当第二应用功能区域为聊天页面中的返回控件时,终端确定第二应用功能区域支持页面切换,从而触发将聊天页面切换为会话列表页面;当第二应用功能区域为会话列表页面中的某一会话选项时,终端确定第二应用功能区域支持页面切换,从而触发将会话列表页面切换为该会话选项对应的会话页面。Optionally, page switching refers to returning to a previous page or entering a next page. For example, when the second application function area is a return control on the chat page, the terminal determines that the second application function area supports page switching, thereby triggering the switching of the chat page to a session list page; when the second application function area is a session list page When a session option is selected, the terminal determines that the second application function area supports page switching, thereby triggering switching of the session list page to a session page corresponding to the session option.
可选的,该第一时长阈值可以为终端默认设置,也可以由用户自定义。比如,该第一时长阈值为2s。Optionally, the first duration threshold may be set by default for the terminal, or may be user-defined. For example, the first duration threshold is 2s.
示意性的,如图11所示,目标应用卡片1102中显示即时通信应用的应用界面,且该应用界面当前显示会话列表页面,当用户拖动缩略图1101至“张三”对应的会话选项,且悬停达到2s时,终端将会话列表页面更新为“张三”对应的聊天页面。当用户将缩略图1101拖动至聊天消息显示区域,并停止拖动时,终端将缩略图1101对应的图片发送给“张三”。当用户将缩略图1101拖动至返回控件1103所处的显示区域,且悬停达到2s时,终端将重新显示会话列表页面更新。Schematically, as shown in Figure 11, the application interface of the instant messaging application is displayed in the
相关技术中,完成内容分享后,终端通常跳转显示分享操作前的界面,或者停留在目标应用的应用界面,而采用本申请实施例提供的方案完成内容分享后,终端取消显示缩略图和候选应用卡片,并通过悬浮窗口显示目标应用的应用界面,以便用户继续通过悬浮窗口查看内容分享反馈,或者,继续在悬浮窗口中进行操作,而无需在此手动开启目标应用。In related technologies, after content sharing is completed, the terminal usually jumps to display the interface before the sharing operation, or stays on the application interface of the target application. However, after the content sharing is completed using the solution provided by the embodiment of the present application, the terminal cancels the display of thumbnails and candidate Application card, and display the application interface of the target application through the floating window, so that the user can continue to view the content sharing feedback through the floating window, or continue to operate in the floating window without manually opening the target application here.
可选的,该悬浮窗口支持关闭以及全屏显示。用户可以根据需求关闭悬浮窗口,或者触发终端全屏显示目标应用。Optionally, the floating window supports closing and full-screen display. Users can close the floating window according to their needs, or trigger the terminal to display the target application in full screen.
示意性的,如图12所示,通过拖动操作将相册应用中的照片分享至即时通信应用后,终端停止显示缩略图1201以及各个候选应用卡片1202,并跳转显示相册界面1204,并通过悬浮窗口1203继续显示即时通信应用的应用界面。进一步的,用户可以点击全屏控件触发终端全屏显示即时通信应用,或者,点击关闭控件关闭悬浮窗口1203。Schematically, as shown in FIG. 12 , after the photos in the photo album application are shared to the instant messaging application through a drag operation, the terminal stops displaying
本实施例中,完成内容分享后,终端取消显示缩略图和候选应用卡片,并通过悬浮窗口显示目标应用,以便用户通过悬浮窗口在目标应用中进行进一步操作,无需用户手动开启目标应用,提高后续应用操作的效率。In this embodiment, after content sharing is completed, the terminal cancels the display of thumbnails and candidate application cards, and displays the target application through the floating window, so that the user can perform further operations in the target application through the floating window, without the need for the user to manually open the target application, improving the follow-up Efficiency of application operations.
在一种可能的情况下,用户在选择目标应用的过程中可能会出现选择错误,此时用户需要重新选择目标应用以完成后续内容分享。关于重新选择目标应用的过程,在一种可能的实施方式中,用户可以将缩略图拖动到当前选中的目标应用卡片的应用界面之外,并保持一段时间,以此解除对目标应用的选中状态。相应的,响应于缩略图位于目标应用界面(即目标应用卡片的应用界面)之外,且持续时长达到第二时长阈值(比如2s),终端解除目标应用的选中状态。In a possible situation, the user may make a selection error during the process of selecting the target application, and at this time, the user needs to select the target application again to complete subsequent content sharing. Regarding the process of re-selecting the target application, in a possible implementation manner, the user can drag the thumbnail out of the application interface of the currently selected target application card and keep it for a period of time, so as to unselect the target application state. Correspondingly, in response to the thumbnail being located outside the target application interface (that is, the application interface of the target application card), and the duration reaches a second duration threshold (such as 2s), the terminal releases the selected state of the target application.
其中,解除选中状态后,用户可以重新通过拖动操作选择其他候选应用作为目标应用。并且,解除选中状态后,原先目标应用对应的目标应用卡片以及缩略图恢复初始状态。比如,解除选中状态后,目标应用卡片缩小,恢复为候选应用卡片的原始尺寸,且缩略图恢复为放大,恢复为选中目标应用前的尺寸。Wherein, after the selected state is removed, the user may select another candidate application as the target application by dragging again. Moreover, after the selected state is released, the target application card and the thumbnail corresponding to the original target application return to the initial state. For example, after the selected state is removed, the target application card is reduced and restored to the original size of the candidate application card, and the thumbnail is restored to be enlarged and restored to the size before the target application is selected.
请参考图13,其示出了本申请一个实施例提供的内容分享装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。该装置包括:Please refer to FIG. 13 , which shows a structural block diagram of a content sharing device provided by an embodiment of the present application. The device can be implemented as all or a part of the terminal through software, hardware or a combination of the two. The unit includes:
显示模块1301,用于响应于对目标内容的触发操作,显示所述目标内容的缩略图以及至少一个候选应用对应的候选应用卡片,所述候选应用卡片中显示有所述候选应用的应用界面;A
确定模块1302,用于响应于对所述缩略图的拖动操作,从至少一个所述候选应用中确定目标应用;A determining
分享模块1303,用于响应于目标应用界面内对所述缩略图的拖动操作,通过所述目标应用分享所述目标内容,所述目标应用界面是所述目标应用对应目标应用卡片中显示的应用界面。The
可选的,所述确定模块1302,具体用于:Optionally, the determining
响应于对所述缩略图的拖动操作,基于所述缩略图的第一悬停位置从至少一个所述候选应用中确定目标应用。In response to a drag operation on the thumbnail, a target application is determined from at least one of the candidate applications based on a first hovering position of the thumbnail.
可选的,所述确定模块1302,包括:Optionally, the determining
倒计时显示单元,用于响应于所述缩略图的所述第一悬停位置与所述候选应用卡片的显示位置存在交集,显示应用选中倒计时,并对所述候选应用卡片进行突出显示,突出显示的方式包括边框加粗、边框高亮和卡片放大中的至少一种;A countdown display unit, configured to respond to the intersection of the first hovering position of the thumbnail and the display position of the candidate application card, display the countdown of application selection, and highlight the candidate application card, highlighting The method includes at least one of border thickening, border highlighting and card enlargement;
第一确定单元,用于响应于所述应用选中倒计时结束,将所述候选应用卡片对应的候选应用确定为所述目标应用,并对所述目标应用卡片进行放大处理。The first determining unit is configured to, in response to the end of the application selection countdown, determine the candidate application corresponding to the candidate application card as the target application, and perform zoom-in processing on the target application card.
可选的,所述装置还包括:Optionally, the device also includes:
提示信息显示模块,用于响应于所述第一应用功能区域支持内容分享,在所述缩略图的周侧显示分享提示信息;A prompt information display module, configured to display sharing prompt information around the thumbnail in response to the first application function area supporting content sharing;
禁用标识显示模块,用于响应于所述第一应用功能区域不支持内容,在所述缩略图的周侧显示分享禁用标识。A disabled sign display module, configured to display a shared disabled sign on a side of the thumbnail in response to the fact that the first application function area does not support content.
可选的,所述分享模块1303,包括:Optionally, the
位置更新单元,用于响应于所述目标应用界面内对所述缩略图的拖动操作,基于拖动操作的拖动位置更新缩略图显示位置;A position updating unit, configured to update the display position of the thumbnail based on the dragging position of the dragging operation in response to the dragging operation on the thumbnail in the target application interface;
第二确定单元,用于确定所述目标应用界面中所述缩略图显示位置对应的第一应用功能区域;A second determining unit, configured to determine the first application function area corresponding to the thumbnail display position in the target application interface;
分享单元,用于响应于拖动操作结束,且所述第一应用功能区域支持内容分享,通过所述目标应用分享所述目标内容。A sharing unit, configured to share the target content through the target application in response to the end of the dragging operation and the first application function area supports content sharing.
可选的,所述分享模块1303,还包括:Optionally, the
内容更新单元,用于响应于所述缩略图显示位置位于所述目标应用界面的目标界面边缘,基于所述目标界面边缘对应的内容更新方式,更新所述目标应用界面的显示内容,所述内容更新方式包括上下滚动和左右翻页中的至少一种。A content updating unit, configured to update the display content of the target application interface based on the content update mode corresponding to the edge of the target interface in response to the thumbnail display position being located at the edge of the target interface of the target application interface, the content The update method includes at least one of scrolling up and down and page turning left and right.
可选的,所述分享模块1303,还包括:Optionally, the
第三确定单元,用于响应于所述缩略图在第二悬停位置处悬停,确定所述目标应用界面中所述第二悬停位置对应的第二应用功能区域;A third determining unit, configured to determine a second application function area corresponding to the second hovering position in the target application interface in response to the thumbnail hovering at the second hovering position;
页面切换单元,用于响应于悬停时长达到第一时长阈值,且所述第二应用功能区域支持页面切换,切换所述目标应用界面中显示的页面。A page switching unit, configured to switch pages displayed in the target application interface in response to the hovering duration reaching a first duration threshold and the second application function area supports page switching.
可选的,所述显示模块1301,包括:Optionally, the
第四确定单元,用于响应于对所述目标内容的触发操作,确定至少一个所述候选应用;A fourth determining unit, configured to determine at least one candidate application in response to a trigger operation on the target content;
界面获取单元,用于获取至少一个所述候选应用的应用界面;an interface acquiring unit, configured to acquire at least one application interface of the candidate application;
显示单元,用于显示所述目标内容的所述缩略图,并在至少一个所述候选应用对应的所述候选应用卡片中显示应用界面。A display unit, configured to display the thumbnail of the target content, and display an application interface in the candidate application card corresponding to at least one candidate application.
可选的,所述第四确定单元,用于:Optionally, the fourth determining unit is configured to:
基于所述目标内容所属的目标类型,确定至少一个所述候选应用,所述候选应用支持分享属于所述目标类型的内容;或,determining at least one candidate application that supports sharing of content belonging to the target type based on the target type to which the target content belongs; or,
基于所述目标内容所属的目标类型,获取目标历史分享记录,所述目标历史分享记录中包含各个应用分享属于所述目标类型的内容的分享次数;基于所述分享次数确定至少一个所述候选应用;或,Obtaining a target history sharing record based on the target type to which the target content belongs, the target history sharing record including the number of times each application shares the content belonging to the target type; determining at least one candidate application based on the sharing times ;or,
将应用分享名单中的应用确定为所述候选应用。The applications in the application sharing list are determined as the candidate applications.
可选的,所述界面获取单元,用于:Optionally, the interface acquisition unit is configured to:
响应于所述候选应用处于开启状态,获取所述候选应用的实时应用界面;In response to the candidate application being in an open state, acquiring a real-time application interface of the candidate application;
响应于所述候选应用处于关闭状态,获取所述候选应用的非实时应用界面,所述非实时应用界面为所述候选应用的历史应用界面或默认应用界面。In response to the candidate application being in a closed state, acquire a non-real-time application interface of the candidate application, where the non-real-time application interface is a historical application interface or a default application interface of the candidate application.
可选的,所述目标应用为处于关闭状态的所述候选应用;Optionally, the target application is the candidate application in a closed state;
所述显示模块1301,还包括:The
开启单元,用于开启所述目标应用,并获取所述目标应用的所述实时应用界面;an opening unit, configured to open the target application, and obtain the real-time application interface of the target application;
界面更新单元,用于将所述目标应用卡片中显示的所述非实时应用界面更新为所述实时应用界面。An interface updating unit, configured to update the non-real-time application interface displayed in the target application card to the real-time application interface.
可选的,对所述目标内容的触发操作以及对所述缩略图的拖动操作为连续操作;Optionally, the triggering operation on the target content and the dragging operation on the thumbnail are continuous operations;
所述显示单元,用于:The display unit is used for:
基于触发操作的触发区域,确定所述候选应用卡片的卡片显示区域,所述触发区域与所述卡片显示区域之间的间距为固定值;Determine the card display area of the candidate application card based on the trigger area of the trigger operation, and the distance between the trigger area and the card display area is a fixed value;
在所述触发区域显示所述目标内容的所述缩略图;displaying the thumbnail image of the target content in the trigger area;
在所述卡片显示区域显示至少一个所述候选应用对应的所述候选应用卡片,并在所述候选应用卡片中显示应用界面。The candidate application card corresponding to at least one candidate application is displayed in the card display area, and an application interface is displayed in the candidate application card.
可选的,所述卡片显示区域可容纳候选应用卡片的数量小于所述候选应用卡片的总数;Optionally, the number of candidate application cards that can be accommodated in the card display area is less than the total number of candidate application cards;
所述装置,还包括:The device also includes:
卡片更新模块,用于响应于对所述缩略图的拖动操作,且所述缩略图位于屏幕边缘,更新所述卡片显示区域中显示的所述候选应用卡片。A card updating module, configured to update the candidate application cards displayed in the card display area in response to a drag operation on the thumbnail, and the thumbnail is located at the edge of the screen.
可选的,所述装置还包括:Optionally, the device also includes:
窗口显示模块,用于取消显示所述缩略图和所述候选应用卡片;通过悬浮窗口显示所述目标应用的应用界面。The window display module is used to cancel the display of the thumbnail and the candidate application card; and display the application interface of the target application through a floating window.
可选的,所述装置还包括:Optionally, the device also includes:
取消模块,用于响应于对所述缩略图的拖动操作结束,且所述缩略图位于所述候选应用卡片之外的显示位置,取消显示所述缩略图和所述候选应用卡片。A canceling module, configured to cancel display of the thumbnail and the candidate application card in response to the end of the dragging operation on the thumbnail and the thumbnail is located at a display position outside the candidate application card.
可选的,所述装置还包括:Optionally, the device also includes:
解除模块,用于响应于所述缩略图位于所述目标应用界面之外,且持续时长达到第二时长阈值,解除所述目标应用的选中状态。A release module, configured to release the selected state of the target application in response to the thumbnail being located outside the target application interface and the duration reaching a second duration threshold.
综上所述,本申请实施例中,当接收到对目标内容的触发操作时,终端显示目标内容的缩略图,并显示提供内容分享服务的候选应用的应用卡片供用户选择,当接收到对缩略图的拖动操作时,终端基于拖动操作确定进行内容分享的目标应用,并进一步基于目标应用卡片内对缩略图的拖动操作,通过目标应用分享目标内容;采用本申请实施例提供的方案,用户只需要通过连续的拖动操作即可在目标应用中完成内容分享,简化了内容分享操作和流程;并且,通过应用卡片展示应用界面,并基于应用界面内对缩略图的拖动操作实现内容分享,使内容分享过程更加清楚直观,有助于提高内容分享的效率以及准确性。To sum up, in this embodiment of the application, when a trigger operation on the target content is received, the terminal displays a thumbnail of the target content, and displays application cards of candidate applications that provide content sharing services for the user to select. During the drag operation of the thumbnail, the terminal determines the target application for content sharing based on the drag operation, and further based on the drag operation of the thumbnail in the target application card, shares the target content through the target application; solution, users only need to perform continuous drag operations to complete content sharing in the target application, which simplifies the content sharing operation and process; and, the application interface is displayed through the application card, and based on the drag operation of the thumbnail in the application interface Realize content sharing, make the content sharing process more clear and intuitive, and help to improve the efficiency and accuracy of content sharing.
请参考图14,其示出了本申请一个示例性实施例提供的终端的结构方框图。本申请中的终端可以包括一个或多个如下部件:处理器1410和存储器1420。Please refer to FIG. 14 , which shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application. The terminal in this application may include one or more of the following components: a
处理器1410可以包括一个或者多个处理核心。处理器1410利用各种接口和线路连接整个终端内的各个部分,通过运行或执行存储在存储器1420内的指令、程序、代码集或指令集,以及调用存储在存储器1420内的数据,执行终端的各种功能和处理数据。可选地,处理器1410可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器1410可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1410中,单独通过一块芯片进行实现。
存储器1420可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1420包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1420可用于存储指令、程序、代码、代码集或指令集。存储器1420可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本)等。The
本申请实施例中的终端还包括显示屏1430。其中,显示屏1430用于进行图像显示,其可以是全面屏、异形屏、曲面屏、折叠屏或者双面屏,本申请实施例对此不作限定。此外,显示屏1430还可以具有触控功能,用户可以通过手指或者触控笔对界面内元素进行触控操作。The terminal in this embodiment of the present application further includes a
除此之外,本领域技术人员可以理解,上述附图所示出的终端的结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端中还包括射频电路、输入单元、传感器、音频电路、扬声器、麦克风、电源等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or less components than those shown in the figure, or combine certain components, or different component arrangements. For example, the terminal also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a speaker, a microphone, and a power supply, which will not be repeated here.
本申请实施例还提供了一种计算机可读存储介质,该存储介质存储有至少一条指令,至少一条指令用于被处理器执行以实现如上述实施例所述的内容分享方法。The embodiment of the present application also provides a computer-readable storage medium, the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the content sharing method as described in the above-mentioned embodiments.
本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得终端执行上述实施例提供的内容分享方法。An embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal executes the content sharing method provided in the foregoing embodiments.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the foregoing one or more examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.
Claims (19)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110586893.2A CN115407909A (en) | 2021-05-27 | 2021-05-27 | Content sharing method, device, terminal and storage medium |
PCT/CN2022/089179 WO2022247557A1 (en) | 2021-05-27 | 2022-04-26 | Content sharing method and apparatus, and terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110586893.2A CN115407909A (en) | 2021-05-27 | 2021-05-27 | Content sharing method, device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115407909A true CN115407909A (en) | 2022-11-29 |
Family
ID=84156103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110586893.2A Pending CN115407909A (en) | 2021-05-27 | 2021-05-27 | Content sharing method, device, terminal and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115407909A (en) |
WO (1) | WO2022247557A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119225578A (en) * | 2023-06-29 | 2024-12-31 | 荣耀终端有限公司 | Cross-application data transmission method and related equipment |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119225609A (en) * | 2023-06-29 | 2024-12-31 | 荣耀终端有限公司 | Data sharing methods and related equipment |
CN119781890A (en) * | 2024-12-31 | 2025-04-08 | 北京字跳网络技术有限公司 | Interactive information display method, device, electronic device, storage medium and program product |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8793605B2 (en) * | 2006-03-29 | 2014-07-29 | Yahoo! Inc. | Smart drag-and-drop |
US8756519B2 (en) * | 2008-09-12 | 2014-06-17 | Google Inc. | Techniques for sharing content on a web page |
GB201119383D0 (en) * | 2011-11-09 | 2011-12-21 | Omnifone Ltd | Rara |
KR102049855B1 (en) * | 2013-01-31 | 2019-11-28 | 엘지전자 주식회사 | Mobile terminal and controlling method thereof |
TW201516698A (en) * | 2013-10-28 | 2015-05-01 | Quanta Comp Inc | Remote play system and method |
CN105955569A (en) * | 2016-04-25 | 2016-09-21 | 乐视控股(北京)有限公司 | File sharing method and apparatus |
CN106909286A (en) * | 2017-02-28 | 2017-06-30 | 宇龙计算机通信科技(深圳)有限公司 | A kind of information sharing method and device based on terminal |
CN108536365B (en) * | 2018-03-16 | 2020-07-28 | 维沃移动通信有限公司 | Image sharing method and terminal |
CN109782976B (en) * | 2019-01-15 | 2020-12-22 | Oppo广东移动通信有限公司 | File processing method, device, terminal and storage medium |
CN110851051B (en) * | 2019-10-28 | 2021-06-08 | 维沃移动通信有限公司 | Object sharing method and electronic device |
CN112839163B (en) * | 2019-11-25 | 2022-03-18 | 深圳市万普拉斯科技有限公司 | Captured image sharing method, device, mobile terminal and readable storage medium |
CN111858522B (en) * | 2020-08-06 | 2024-07-02 | Oppo广东移动通信有限公司 | File sharing method, device, terminal and storage medium |
-
2021
- 2021-05-27 CN CN202110586893.2A patent/CN115407909A/en active Pending
-
2022
- 2022-04-26 WO PCT/CN2022/089179 patent/WO2022247557A1/en active Application Filing
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119225578A (en) * | 2023-06-29 | 2024-12-31 | 荣耀终端有限公司 | Cross-application data transmission method and related equipment |
WO2025001217A1 (en) * | 2023-06-29 | 2025-01-02 | 荣耀终端有限公司 | Cross-application data transmission method and related device |
Also Published As
Publication number | Publication date |
---|---|
WO2022247557A1 (en) | 2022-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022028185A1 (en) | File sharing method and apparatus, and terminal and storage medium | |
JP7469396B2 (en) | Gestural Graphical User Interface for Managing Simultaneously Open Software Applications - Patent application | |
US10942616B2 (en) | Multimedia resource management method and apparatus, and storage medium | |
CN111782332B (en) | Application interface switching method, device, terminal and storage medium | |
KR102367838B1 (en) | Device, method, and graphical user interface for managing concurrently open software applications | |
KR101460428B1 (en) | Device, method, and graphical user interface for managing folders | |
WO2019128732A1 (en) | Icon management method and device | |
US10606469B2 (en) | Device, method, and graphical user interface for managing multiple display windows | |
US20190303427A1 (en) | Device, method, and graphical user interface for sharing a content object in a document | |
EP2513768B1 (en) | Device, method, and graphical user interface with content display modes and display rotation heuristics | |
CN102999263B (en) | Electronic device and method for providing background of electronic device | |
US8839122B2 (en) | Device, method, and graphical user interface for navigation of multiple applications | |
US8694902B2 (en) | Device, method, and graphical user interface for modifying a multi-column application | |
WO2022247557A1 (en) | Content sharing method and apparatus, and terminal and storage medium | |
US8621391B2 (en) | Device, method, and computer readable medium for maintaining a selection order in a displayed thumbnail stack of user interface elements acted upon via gestured operations | |
US20110179372A1 (en) | Automatic Keyboard Layout Determination | |
CN108984093B (en) | Touch operation method, device, storage medium and electronic device | |
CN113452744B (en) | File sharing method, device, equipment and storage medium | |
WO2019128923A1 (en) | Method for controlling displaying selected object in application interface, and terminal device | |
CN107153546B (en) | Video playing method and mobile device | |
CN113268182B (en) | Application icon management method and electronic device | |
CN111324398B (en) | Method, device, terminal and storage medium for processing latest content | |
CN117193914A (en) | Display method, device and electronic device | |
CN111782381B (en) | Task management method, device, mobile terminal and storage medium | |
CN113805737B (en) | File transfer methods, devices, computer equipment and storage media |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |