Movatterモバイル変換


[0]ホーム

URL:


CN106527883A - A method, device and terminal for content sharing - Google Patents

A method, device and terminal for content sharing
Download PDF

Info

Publication number
CN106527883A
CN106527883ACN201610867412.4ACN201610867412ACN106527883ACN 106527883 ACN106527883 ACN 106527883ACN 201610867412 ACN201610867412 ACN 201610867412ACN 106527883 ACN106527883 ACN 106527883A
Authority
CN
China
Prior art keywords
display
page
screenshot
application program
preview picture
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.)
Granted
Application number
CN201610867412.4A
Other languages
Chinese (zh)
Other versions
CN106527883B (en
Inventor
卢镇洲
朱印
路晓创
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co LtdfiledCriticalBeijing Xiaomi Mobile Software Co Ltd
Priority to CN201610867412.4ApriorityCriticalpatent/CN106527883B/en
Publication of CN106527883ApublicationCriticalpatent/CN106527883A/en
Application grantedgrantedCritical
Publication of CN106527883BpublicationCriticalpatent/CN106527883B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention relates to a content sharing method and device, and belongs to the technical field of the mobile internet. The technical scheme includes generating a screen shot picture and previewing and displaying the screen shot picture; dragging the preview picture according to a dragging operation if it is detected that a user performs the dragging operation on the preview picture, and achieving a sharing operation on the screen shot picture. The dragging operation on the preview screen shot picture can rapidly achieve a picture sharing operation, an operation of the user is facilitated, and the user experience is improved.

Description

Translated fromChinese
一种内容分享的方法、装置及终端A method, device and terminal for content sharing

技术领域technical field

本公开涉及移动互联网技术领域,特别涉及一种内容分享的方法、装置及终端。The present disclosure relates to the technical field of mobile Internet, and in particular to a content sharing method, device and terminal.

背景技术Background technique

随着移动互联网技术的快速发展,尤其是社交媒体的出现,用户可以随时随地通过社交媒体平台来分享彼此的意见,见解,经验和观点,其中,用户在分享信息的过程中会配以图片来进行,使得分享内容更加的可视化。目前,用户在通过设计媒体平台进行信息分享时,如果配合图片来进行发表的话,会从本地存储的图库中来选择要使用的目标图片。而对于用户正在阅读某个信息页面,想要将改阅读的信息页面进行分享的情况下,一般会截图该信息页面,存储在本地图库,之后,在从图库中选择截屏图片在社交媒体平台上进行分享,分享操作步骤比较麻烦。With the rapid development of mobile Internet technology, especially the emergence of social media, users can share each other's opinions, opinions, experiences and opinions through social media platforms anytime and anywhere. Among them, users will be accompanied by pictures in the process of sharing information. To make the shared content more visualized. At present, when users share information through the design media platform, if they publish with pictures, they will select the target pictures to be used from the gallery stored locally. However, when a user is reading a certain information page and wants to share the changed information page, he will generally take a screenshot of the information page and store it in the local gallery, and then select a screenshot from the gallery to post on the social media platform To share, the sharing operation steps are more troublesome.

发明内容Contents of the invention

本公开实施例提供了一种内容分享方法及装置。所述技术方案如下:Embodiments of the present disclosure provide a content sharing method and device. Described technical scheme is as follows:

根据本公开实施例的第一方面,提供了一种内容分享方法,所述方法包括:According to the first aspect of the embodiments of the present disclosure, there is provided a content sharing method, the method comprising:

检测到截屏操作的指令时,截取当前显示页面,生成当前显示页面对应的截屏图片;When an instruction for a screenshot operation is detected, the currently displayed page is intercepted, and a screenshot image corresponding to the currently displayed page is generated;

生成所述截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;Generate a preview picture corresponding to the screenshot, and display the preview picture at a predetermined position on the display screen;

如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。If it is detected that the user has performed a drag operation on the preview picture, the preview picture is dragged according to the drag operation to realize the operation of sharing the screenshot.

可选的,所述在显示屏幕的预定位置处显示所述预览图片包括:Optionally, the displaying the preview picture at a predetermined position on the display screen includes:

预定时长内在显示屏幕的预定位置处显示所述预览图片。如果在预定时长内,无针对所述预览图片的操作,预定时长结束后,则不再显示所述预览图片。The preview picture is displayed at a predetermined position on the display screen within a predetermined time period. If there is no operation on the preview picture within the predetermined time period, the preview picture will no longer be displayed after the predetermined time period ends.

可选的,所述在显示屏幕的预定位置处显示所述预览图片包括:Optionally, the displaying the preview picture at a predetermined position on the display screen includes:

在显示屏幕的右上角的预定区域显示所述预览图片;或者,在显示屏幕的左上角的预定区域显示所述预览图片。The preview picture is displayed in a predetermined area at the upper right corner of the display screen; or, the preview picture is displayed at a predetermined area at the upper left corner of the display screen.

可选的,所述如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作,包括:Optionally, if it is detected that the user has performed a drag operation on the preview image, then dragging the preview image according to the drag operation to realize the operation of sharing the screenshot image, including:

如果检测到用户对显示的所述预览图片的拖动操作,按照所述拖动操作移动显示所述预览图片;If a user's drag operation on the displayed preview picture is detected, move and display the preview picture according to the drag operation;

检测是否触发了显示终端运行的应用程序的操作;Detect whether the operation of the application program running on the display terminal is triggered;

如果触发了显示终端运行的应用程序的操作,显示终端上运行的应用程序的应用显示页面;If the operation of displaying the application program running on the terminal is triggered, display the application display page of the application program running on the terminal;

基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作。Based on the application display page of the displayed application program and the preview image, the sharing operation of the screenshot image is realized.

可选的,所述检测是否触发了显示终端运行的应用程序的操作包括:Optionally, the operation of detecting whether the application program running on the display terminal is triggered includes:

检测按照所述拖动操作移动显示所述预览图片是否超过了预定的区域范围;如果超过了预定的区域范围,则触发了显示终端运行的应用程序的操作。Detecting whether moving and displaying the preview picture according to the dragging operation exceeds a predetermined area range; if it exceeds the predetermined area range, an operation of an application program running on the display terminal is triggered.

或者,or,

检测按照所述拖动操作移动显示所述预览图片是否达到了显示屏幕的预定区域,如果达到了显示屏幕的预定区域,则触发了显示终端运行的应用程序的操作;Detecting whether the preview image has reached a predetermined area of the display screen according to the dragging operation, and if it reaches the predetermined area of the display screen, the operation of the application program running on the display terminal is triggered;

或者,or,

接收到用户切换显示终端运行的应用程序的操作的指令。An instruction to switch the operation of the application program running on the display terminal by the user is received.

可选的,所述显示终端上运行的应用程序的应用显示页面包括:Optionally, the application display page of the application running on the display terminal includes:

对终端上运行的应用程序的类型进行检测,显示终端上运行的应用程序中满足预定类型条件的应用程序的应用显示页面。The type of the application program running on the terminal is detected, and the application display page of the application program meeting the predetermined type condition among the application programs running on the terminal is displayed.

可选的,所述基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作包括:Optionally, the application display page of the display-based application program and the preview image, and the sharing operation of the screenshot image includes:

检测用户是否将所述预览图片拖动至应用显示页面中的目标应用程序页面;Detecting whether the user drags the preview image to the target application page in the application display page;

如果用户将所述预览图片拖动至所述目标应用程序页面,则打开显示所述目标应用程序页面;If the user drags the preview picture to the target application page, then open and display the target application page;

检测用户是否将所述预览图片拖动至所述目标应用程序页面的目标位置处;Detecting whether the user drags the preview image to the target position of the target application page;

如果检测到用户将所述预览图片拖动至所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。If it is detected that the user drags the preview picture to the target position of the target application program page, a sharing operation is performed on the screenshot picture.

可选的,所述如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作,包括:Optionally, if it is detected that the user has performed a drag operation on the preview image, then dragging the preview image according to the drag operation to realize the operation of sharing the screenshot image, including:

检测用户是否切换运行显示了目标应用程序页面;Detect whether the user switches to run and displays the target application page;

当前运行显示了目标应用程序页面时,检测用户是否对显示的所述预览图片进行了拖动操作,When the target application page is displayed during the current operation, it is detected whether the user has performed a drag operation on the displayed preview image,

如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作移动显示所述预览图片;If it is detected that the user has performed a drag operation on the preview picture, moving and displaying the preview picture according to the drag operation;

如果检测到所述预览图片被移动到了所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。If it is detected that the preview picture has been moved to the target position of the target application program page, a sharing operation is performed on the screenshot picture.

可选的,所述目标应用程序包括:通讯类应用程序或文本编辑应用程序。Optionally, the target application program includes: a communication application program or a text editing application program.

可选的,所述对所述截屏图片进行分享操作:当所述目标应用程序是文本编辑应用程序时,将所述截屏图片插入到文本编辑页面的目标位置处;当所述目标应用程序是通讯类应用程序时,将所述截屏图片发送给通讯类应用程序中的联系人。Optionally, performing the sharing operation on the screenshot: when the target application is a text editing application, inserting the screenshot into the target position of the text editing page; when the target application is When using a communication application program, sending the screen shot to a contact in the communication application program.

根据本公开实施例的第二方面,提供了一种内容分享装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, a content sharing device is provided, the device comprising:

截屏操作模块,被配置为检测到截屏操作的指令时,截取当前显示页面,生成当前显示页面对应的截屏图片;The screenshot operation module is configured to intercept the current display page and generate a screenshot corresponding to the current display page when an instruction of the screenshot operation is detected;

图片生成模块,被配置为生成所述截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;The image generation module is configured to generate a preview image corresponding to the screenshot image, and display the preview image at a predetermined position on the display screen;

内容分享模块,被配置为如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。The content sharing module is configured to drag the preview image according to the drag operation if it is detected that the user has performed a drag operation on the preview image, so as to realize the operation of sharing the screenshot image.

可选的,所述图片生成模块,被配置为预定时长内在显示屏幕的预定位置处显示所述预览图片。如果在预定时长内,无针对所述预览图片的操作,预定时长结束后,则不再显示所述预览图片。Optionally, the picture generation module is configured to display the preview picture at a predetermined position on the display screen within a predetermined time period. If there is no operation on the preview picture within the predetermined time period, the preview picture will no longer be displayed after the predetermined time period ends.

可选的,所述图片生成模块,被配置为在显示屏幕的右上角的预定区域显示所述预览图片;或者,在显示屏幕的左上角的预定区域显示所述预览图片。Optionally, the picture generation module is configured to display the preview picture in a predetermined area at the upper right corner of the display screen; or, display the preview picture at a predetermined area at the upper left corner of the display screen.

可选的,所述内容分享模块,包括:Optionally, the content sharing module includes:

第一指令处理子模块,被配置为如果检测到用户对显示的所述预览图片的拖动操作,按照所述拖动操作移动显示所述预览图片;The first instruction processing sub-module is configured to move and display the preview picture according to the drag operation if the user's drag operation on the displayed preview picture is detected;

第一检测子模块,被配置为检测是否触发了显示终端运行的应用程序的操作;The first detection submodule is configured to detect whether the operation of the application program running on the display terminal is triggered;

显示子模块,被配置为如果触发了显示终端运行的应用程序的操作,显示终端上运行的应用程序的应用显示页面;The display submodule is configured to display an application display page of the application running on the terminal if the operation of displaying the application running on the terminal is triggered;

第一内容分享子模块,被配置为基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作。The first content sharing sub-module is configured to realize the sharing operation of the screenshot based on the application display page of the displayed application program and the preview image.

可选的,所述第一检测子模块,包括:Optionally, the first detection submodule includes:

第一单元,被配置为检测按照所述拖动操作移动显示所述预览图片是否超过了预定的区域范围;如果超过了预定的区域范围,则触发了显示终端运行的应用程序的操作。The first unit is configured to detect whether moving and displaying the preview picture according to the dragging operation exceeds a predetermined area range; if it exceeds the predetermined area range, triggering the operation of the application program running on the display terminal.

或者,or,

第二单元,被配置为检测按照所述拖动操作移动显示所述预览图片是否达到了显示屏幕的预定区域,如果达到了显示屏幕的预定区域,则触发了显示终端运行的应用程序的操作;The second unit is configured to detect whether moving and displaying the preview picture according to the dragging operation has reached a predetermined area of the display screen, and if the predetermined area of the display screen has been reached, the operation of the application program running on the display terminal is triggered;

或者,or,

第三单元,被配置为接收到用户切换显示终端运行的应用程序的操作的指令。The third unit is configured to receive an instruction from the user to switch the operation of the application program running on the display terminal.

可选的,所述显示子模块,被配置为对终端上运行的应用程序的类型进行检测,显示终端上运行的应用程序中满足预定类型条件的应用程序的应用显示页面。Optionally, the display submodule is configured to detect the type of the application program running on the terminal, and display the application display page of the application program meeting the predetermined type condition among the application programs running on the terminal.

可选的,所述第一内容分享子模块包括:Optionally, the first content sharing submodule includes:

检测单元,被配置为检测用户是否将所述预览图片拖动至页面显示中的目标应用程序页面;The detection unit is configured to detect whether the user drags the preview picture to the target application page in the page display;

显示单元,被配置为如果用户将所述预览图片拖动至所述目标应用程序页面,则打开显示所述目标应用程序页面;a display unit configured to open and display the target application page if the user drags the preview image to the target application page;

分享单元,被配置为检测用户是否将所述预览图片拖动至所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。The sharing unit is configured to detect whether the user drags the preview picture to a target position on the target application page, and perform a sharing operation on the screenshot.

可选的,所述内容分享模块包括:Optionally, the content sharing module includes:

第二检测子模块,被配置为检测用户是否切换运行显示了目标应用程序页面;The second detection submodule is configured to detect whether the user switches to run and displays the target application page;

第三检测子模块,被配置为当前运行显示了目标应用程序页面时,检测用户是否对显示的所述预览图片进行了拖动操作,The third detection submodule is configured to detect whether the user has performed a drag operation on the displayed preview image when the target application page is currently running and displayed,

第二指令处理子模块,被配置为如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作移动显示所述预览图片;The second instruction processing submodule is configured to move and display the preview picture according to the drag operation if it is detected that the user has performed a drag operation on the preview picture;

第二内容分享子模块,被配置为如果检测到所述预览图片被移动到了所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。The second content sharing sub-module is configured to perform a sharing operation on the screenshot if it is detected that the preview picture has been moved to the target position of the target application page.

可选的,目标应用程序包括:通讯类应用程序或文本编辑应用程序。Optionally, the target application program includes: a communication application program or a text editing application program.

可选的,所述第一内容分享子模块或者所述第二内容分享子模块,被配置为当所述目标应用程序是文本编辑应用程序时,将所述截屏图片插入到文本编辑页面的目标位置处;当所述目标应用程序是通讯类应用程序时,将所述截屏图片发送给通讯类应用程序中的联系人。Optionally, the first content sharing submodule or the second content sharing submodule is configured to insert the screenshot into the target text editing page when the target application program is a text editing application program. location; when the target application program is a communication application program, sending the screenshot to a contact in the communication application program.

根据本公开实施例的第三方面,提供一种内容分享装置,所述装置包括:According to a third aspect of an embodiment of the present disclosure, a content sharing device is provided, the device comprising:

处理器;processor;

用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;

其中,所述处理器被配置为:Wherein, the processor is configured as:

检测到截屏操作的指令时,截取当前显示页面,生成当前显示页面对应的截屏图片;When an instruction for a screenshot operation is detected, the currently displayed page is intercepted, and a screenshot image corresponding to the currently displayed page is generated;

生成所述截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;Generate a preview picture corresponding to the screenshot, and display the preview picture at a predetermined position on the display screen;

如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。If it is detected that the user has performed a drag operation on the preview picture, the preview picture is dragged according to the drag operation to realize the operation of sharing the screenshot.

本公开实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本技术方案在生成截屏图片并预览显示后,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。通过对预览截屏图片的拖动操作可以快速实现图片的分享操作,方便用户的操作,提高用户体验。In this technical solution, after the screenshot is generated and displayed in preview, if it is detected that the user has performed a drag operation on the preview image, the preview image is dragged according to the drag operation to realize sharing of the screenshot operate. The image sharing operation can be realized quickly by dragging the preview screenshot image, which is convenient for the user's operation and improves the user experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种内容分享方法的流程图;Fig. 1 is a flowchart of a content sharing method according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种内容分享方法的流程图;Fig. 2 is a flowchart of a content sharing method according to an exemplary embodiment;

图3是一截屏图片在终端显示屏幕上预览显示的示意图;Fig. 3 is a schematic diagram of a screenshot previewed on a terminal display screen;

图4A至4E,是根据一示例性实施例提供的一种预览图片在联系人会话页面中进行分享的实现过程示意图;4A to 4E are schematic diagrams of an implementation process of sharing a preview image in a contact session page according to an exemplary embodiment;

图5A至5D,是根据一示例性实施例提供的一种预览图片在通话记录中进行分享的实现过程示意图;5A to 5D are schematic diagrams of an implementation process of sharing a preview image in a call record according to an exemplary embodiment;

图6A至6C,是根据一示例性实施例提供的一种预览图片在便签中进行分享的实现过程示意图;6A to 6C are schematic diagrams of an implementation process of sharing a preview image in a sticky note according to an exemplary embodiment;

图7是根据一示例性实施例示出的一种内容分享方法的流程图;Fig. 7 is a flowchart of a content sharing method according to an exemplary embodiment;

图8A至8B示例性的给出了一种显示终端运行的应用程序的示意图;8A to 8B exemplarily provide a schematic diagram of an application program displayed on a terminal;

图8C是根据一示例性实施例提供的一种截屏图片在联系人会话页面中进行分享的实现过程示意图;Fig. 8C is a schematic diagram of an implementation process of sharing screenshots in a contact session page according to an exemplary embodiment;

图9是根据一示例性实施例示出的一种内容分享装置的框图;Fig. 9 is a block diagram of a content sharing device according to an exemplary embodiment;

图10是根据一示例性实施例示出的一种如图9所示的内容分享模块的装置框图;Fig. 10 is a device block diagram of a content sharing module shown in Fig. 9 according to an exemplary embodiment;

图11是根据一示例性实施例示出的一种如图10所示的第一检测子模块的装置框图;Fig. 11 is a device block diagram of a first detection sub-module shown in Fig. 10 according to an exemplary embodiment;

图12是根据一示例性实施例示出的一种如图10所示的第一内容分享子模块的装置框图;Fig. 12 is a device block diagram of a first content sharing sub-module shown in Fig. 10 according to an exemplary embodiment;

图13是根据一示例性实施例示出的一种如图9所示的内容分享模块的装置框图;Fig. 13 is a device block diagram of a content sharing module as shown in Fig. 9 according to an exemplary embodiment;

图14是根据一示例性实施例示出的一种内容分享装置的框图。Fig. 14 is a block diagram of a content sharing device according to an exemplary embodiment.

通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。By means of the above-mentioned drawings, certain embodiments of the present disclosure have been shown and will be described in more detail hereinafter. These drawings and written description are not intended to limit the scope of the disclosed concept in any way, but to illustrate the disclosed concept for those skilled in the art by referring to specific embodiments.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present disclosure, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."

本公开实施例提供的技术方案应用于终端,该终端可以是各种能够通过触摸屏进行触摸操作的智能终端,例如,智能手机、平板电脑、个人数字助理(Personal DigitalAssistant,PDA)等,但不限于此。本领域的技术人员容易理解,本发明实施例还可应用于任何具有处理器和显示输出装置的触摸屏终端中。The technical solution provided by the embodiments of the present disclosure is applied to a terminal, and the terminal may be a variety of smart terminals capable of touch operations through a touch screen, such as smart phones, tablet computers, personal digital assistants (Personal Digital Assistant, PDA), etc., but not limited to this. Those skilled in the art can easily understand that the embodiments of the present invention can also be applied to any touch screen terminal having a processor and a display output device.

本公开实施例提供了一种在上述终端上应用的内容分享方法,参见图1,图1是根据一示例性实施例示出的一种内容分享的方法流程图,可以包括以下步骤:An embodiment of the present disclosure provides a content sharing method applied on the above-mentioned terminal. Referring to FIG. 1 , FIG. 1 is a flow chart of a content sharing method according to an exemplary embodiment, which may include the following steps:

在步骤101中,检测到截屏操作的指令时,截取当前显示页面,并生成当前显示页面对应的截屏图片;In step 101, when an instruction of a screenshot operation is detected, the currently displayed page is intercepted, and a corresponding screenshot of the currently displayed page is generated;

在一个实施例中,用户在通过终端进行内容浏览时,如果看到自己比较喜欢的内容,可以通过截屏的方式将自己喜欢的内容保留下来。如,可以通过快捷操作按键或者指令来向终端发送截屏指令,终端接收到截屏指令后,截取当前显示页面,并生成当前显示页面对应的截屏图片给用户。用户可以对截屏图片进行存储、分享或者其他操作。在一个实施例中,生成的截屏图片会被默认保存在本地图库中。In one embodiment, when the user browses content through the terminal, if he sees the content he likes, he can save the content he likes by taking a screenshot. For example, a screen capture command can be sent to the terminal through a shortcut operation button or command, and after receiving the screen capture command, the terminal captures the currently displayed page, and generates a screen capture picture corresponding to the currently displayed page to the user. Users can store, share or perform other operations on screenshots. In one embodiment, the generated screenshot will be saved in the local gallery by default.

在步骤102中,生成截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;In step 102, a preview picture corresponding to the screenshot picture is generated, and the preview picture is displayed at a predetermined position on the display screen;

本公开实施例中,在显示屏幕的预定位置处显示所述预览图片可以包括:In an embodiment of the present disclosure, displaying the preview picture at a predetermined position on the display screen may include:

预定时长内在显示屏幕的预定位置处显示所述预览图片;displaying the preview picture at a predetermined position on the display screen within a predetermined period of time;

如果在预定时长内,无针对所述预览图片的操作,预定时长结束后,则不再显示所述预览图片。If there is no operation on the preview picture within the predetermined time period, the preview picture will no longer be displayed after the predetermined time period ends.

可选的,在显示屏幕的预定位置处显示所述预览图片可以包括但不限于:Optionally, displaying the preview picture at a predetermined position on the display screen may include but not limited to:

在显示屏幕的右上角的预定区域显示所述预览图片;或者,在显示屏幕的左上角的预定区域显示所述预览图片。The preview picture is displayed in a predetermined area at the upper right corner of the display screen; or, the preview picture is displayed at a predetermined area at the upper left corner of the display screen.

这样,终端将截屏图片的预览图片在一定的时间内在终端屏幕的预定位置处显示给用户看到,用户就可以不用切换本地图库就可以在当前显示屏幕上看到截屏图片,方便用户后续对截屏图片进行的一些诸如标记、分享、编辑等其他操作。In this way, the terminal will display the preview picture of the screenshot picture to the user at a predetermined position on the terminal screen within a certain period of time, and the user can see the screenshot picture on the current display screen without switching the local gallery, which is convenient for the user to follow up on the screenshot Other operations such as tagging, sharing, editing, etc. performed on pictures.

在一个实施例中,也可以称截屏图片对应的预览图片为所述截屏图片对应的缩略图片,无论是预览图片还是缩略图片都是为了向用户快速展示所述截屏图片的一个入口,使得用户可以通过该预览图片或者缩略图片快速查看所述截屏图片,而无需切换到本地图库进行查看。在本实施例中,则统一称为预览图片。In one embodiment, the preview picture corresponding to the screenshot can also be referred to as the thumbnail corresponding to the screenshot. Both the preview picture and the thumbnail are an entry for quickly showing the screenshot to the user, so that The user can quickly view the screenshot through the preview image or the thumbnail image without switching to a local gallery for viewing. In this embodiment, they are collectively referred to as preview pictures.

在步骤103中,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作;In step 103, if it is detected that the user has performed a drag operation on the preview picture, then drag the preview picture according to the drag operation to realize the operation of sharing the screenshot;

在一个实施例中,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作,可以包括:In one embodiment, if it is detected that the user has performed a drag operation on the preview image, then dragging the preview image according to the drag operation to realize the operation of sharing the screenshot image may include:

如果检测到用户对显示的所述预览图片的拖动操作,按照所述拖动操作移动显示所述预览图片;If a user's drag operation on the displayed preview picture is detected, move and display the preview picture according to the drag operation;

检测是否触发了显示终端运行的应用程序的操作;Detect whether the operation of the application program running on the display terminal is triggered;

如果触发了显示终端运行的应用程序的操作,显示终端上运行的应用程序的应用显示页面;If the operation of displaying the application program running on the terminal is triggered, display the application display page of the application program running on the terminal;

基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作。Based on the application display page of the displayed application program and the preview image, the sharing operation of the screenshot image is realized.

其中,检测是否触发了显示终端运行的应用程序的操作可以包括:Wherein, the operation of detecting whether the application program running on the display terminal is triggered may include:

检测按照所述拖动操作移动显示所述预览图片是否超过了预定的区域范围;如果超过了预定的区域范围,则触发了显示终端运行的应用程序的操作。在一个实施例中,所述预定的区域范围可以实现设定,如移动距离超过显示界面长度的三分之一。Detecting whether moving and displaying the preview picture according to the dragging operation exceeds a predetermined area range; if it exceeds the predetermined area range, an operation of an application program running on the display terminal is triggered. In an embodiment, the predetermined area range can be set, for example, the moving distance exceeds one-third of the length of the display interface.

或者,or,

检测按照所述拖动操作移动显示所述预览图片是否达到了显示屏幕的预定区域,如果达到了显示屏幕的预定区域,则触发了显示终端运行的应用程序的操作;在一个实施例中,所述预定区域可以是显示屏幕的底部区域。Detecting whether the preview picture has reached a predetermined area of the display screen according to the drag operation, and if it reaches the predetermined area of the display screen, the operation of the application program running on the display terminal is triggered; in one embodiment, the The predetermined area may be a bottom area of the display screen.

或者,or,

接收到用户切换显示终端运行的应用程序的操作的指令。用户可以手动切换显示终端运行的应用程序的操作,如果检测到用户切换显示终端后台运行的应用程序的操作的指令,则触发显示终端运行的应用程序的应用显示页面。An instruction to switch the operation of the application program running on the display terminal by the user is received. The user can manually switch the operation of the application running on the display terminal, and if an instruction to switch the operation of the application running on the background of the display terminal is detected, the application display page of the application running on the display terminal will be triggered.

在一个实施例中,显示终端上运行的应用程序的应用显示页面可以包括:In one embodiment, the application display page of the application running on the display terminal may include:

对终端上运行的应用程序的类型进行检测,显示终端上运行的应用程序中满足预定类型条件的应用程序的应用显示页面。The type of the application program running on the terminal is detected, and the application display page of the application program meeting the predetermined type condition among the application programs running on the terminal is displayed.

在一个实施例中,满足预定类型条件的应用程序是指截屏图片可以在该类应用程序中进行分享操作的应用程序,如通讯类应用程序,或者文本编辑应用等。In an embodiment, the application program meeting the predetermined type condition refers to an application program in which the screen shot can be shared in this type of application program, such as a communication application program or a text editing application.

其中,文本编辑应用程序可以是word、PPT等office办公应用软件,便签、笔记等文件编辑软件;通讯类应用程序可以是即时通讯应用程序,短信,电话应用,或者社交网络服务SNS应用软件等通信工具。Among them, the text editing application program can be office application software such as word and PPT, and file editing software such as notes and notes; the communication application program can be instant messaging application program, short message, telephone application, or social network service SNS application software and other communications tool.

在一个实施例中,基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作可以包括:In one embodiment, based on the application display page of the displayed application program and the preview image, realizing the sharing operation of the screenshot image may include:

检测用户是否将所述预览图片拖动至应用显示页面中的目标应用程序页面;Detecting whether the user drags the preview image to the target application page in the application display page;

如果用户将所述预览图片拖动至所述目标应用程序页面,则打开显示所述目标应用程序页面;If the user drags the preview picture to the target application page, then open and display the target application page;

检测用户是否将所述预览图片拖动至所述目标应用程序页面的目标位置处;Detecting whether the user drags the preview image to the target position of the target application page;

如果检测到用户将所述预览图片拖动至所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。If it is detected that the user drags the preview picture to the target position of the target application program page, a sharing operation is performed on the screenshot picture.

在另一个实施例中,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作,可以包括:In another embodiment, if it is detected that the user has performed a drag operation on the preview image, then dragging the preview image according to the drag operation to realize the operation of sharing the screenshot image may include:

检测用户是否切换运行显示了目标应用程序页面;Detect whether the user switches to run and displays the target application page;

当前运行显示了目标应用程序页面时,检测用户是否对显示的所述预览图片进行了拖动操作,When the target application page is displayed during the current operation, it is detected whether the user has performed a drag operation on the displayed preview image,

如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作移动显示所述预览图片;If it is detected that the user has performed a drag operation on the preview picture, moving and displaying the preview picture according to the drag operation;

如果检测到所述预览图片被移动到了所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。If it is detected that the preview picture has been moved to the target position of the target application program page, a sharing operation is performed on the screenshot picture.

在一个实施例中,上述目标应用程序可以包括但不限于:通讯类应用程序或文本编辑应用程序。In an embodiment, the above-mentioned target application program may include but not limited to: a communication application program or a text editing application program.

在一个实施例中,上述对所述截屏图片进行分享操作可以包括:当所述目标应用程序是文本编辑应用程序时,将所述预截屏图片插入到文本编辑页面的目标位置处;当所述目标应用程序是通讯类应用程序时,将所述截屏图片发送给通讯类应用程序中的联系人。In one embodiment, the above-mentioned sharing operation of the screenshot may include: when the target application is a text editing application, inserting the pre-screenshot into the target position of the text editing page; when the When the target application program is a communication application program, the screenshot is sent to a contact in the communication application program.

本公开实施例中,对所述截屏图片进行分享操作之前,所述方法还可以包括:提示用户是否对所述截屏图片进行分享,防止误触操作情况的发生。In the embodiment of the present disclosure, before performing a sharing operation on the screenshot, the method may further include: prompting the user whether to share the screenshot, so as to prevent accidental touch operation.

综上所述,本技术方案在生成截屏图片并预览显示后,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。通过对预览截屏图片的拖动操作可以快速实现图片的分享操作,方便用户的操作,提高用户体验。To sum up, after the screenshot image is generated and previewed and displayed in this technical solution, if it is detected that the user has performed a drag operation on the preview image, the preview image will be dragged according to the drag operation to realize the Take screenshots and share them. The image sharing operation can be realized quickly by dragging the preview screenshot image, which is convenient for the user's operation and improves the user experience.

参见图2,图2是根据一示例性实施例示出的一种内容分享的方法,该方法用于上述终端中,可以包括以下步骤:Referring to FIG. 2, FIG. 2 shows a method for content sharing according to an exemplary embodiment. The method is used in the above-mentioned terminal and may include the following steps:

在步骤200中,用户发送截屏操作的指令;In step 200, the user sends an instruction for screenshot operation;

在步骤201中,检测到截屏操作的指令时,截取当前显示页面,并生成当前显示页面对应的截屏图片;In step 201, when an instruction of a screen capture operation is detected, the currently displayed page is intercepted, and a screen capture picture corresponding to the currently displayed page is generated;

在一个实施例中,用户在通过终端进行内容浏览时,如果看到自己比较喜欢的内容,可以通过截屏的方式将自己喜欢的内容保留下来。如,可以通过快捷操作按键或者指令来向终端发送截屏指令,终端接收到截屏指令后,截取当前显示页面,并生成当前显示页面对应的截屏图片给用户。用户可以对截屏图片进行存储、分享或者其他操作。在一个实施例中,生成的截屏图片会被默认保存在本地图库中。In one embodiment, when the user browses content through the terminal, if he sees the content he likes, he can save the content he likes by taking a screenshot. For example, a screen capture command can be sent to the terminal through a shortcut operation button or command, and after receiving the screen capture command, the terminal captures the currently displayed page, and generates a screen capture picture corresponding to the currently displayed page to the user. Users can store, share or perform other operations on screenshots. In one embodiment, the generated screenshot will be saved in the local gallery by default.

在步骤202中,生成截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;In step 202, a preview picture corresponding to the screenshot picture is generated, and the preview picture is displayed at a predetermined position on the display screen;

本公开实施例中,在显示屏幕的预定位置处显示所述预览图片可以包括:In an embodiment of the present disclosure, displaying the preview picture at a predetermined position on the display screen may include:

预定时长内在显示屏幕的预定位置处显示所述预览图片;displaying the preview picture at a predetermined position on the display screen within a predetermined period of time;

如果在预定时长内,无针对所述预览图片的操作,预定时长结束后,则不再显示所述预览图片。If there is no operation on the preview picture within the predetermined time period, the preview picture will no longer be displayed after the predetermined time period ends.

在一个实施例中,所述预定时长可以根据情况在操作系统中进行设置,如2s或者3秒,对此,本公开实施例并不做过多的限定。In an embodiment, the predetermined duration can be set in the operating system according to the situation, such as 2s or 3 seconds, which is not limited too much in this embodiment of the present disclosure.

可选的,在显示屏幕的预定位置处显示所述预览图片可以包括但不限于:Optionally, displaying the preview picture at a predetermined position on the display screen may include but not limited to:

在显示屏幕的右上角的预定区域显示所述预览图片;或者,在显示屏幕的左上角的预定区域显示所述预览图片。The preview picture is displayed in a predetermined area at the upper right corner of the display screen; or, the preview picture is displayed at a predetermined area at the upper left corner of the display screen.

这样,终端将截屏图片的预览图片在一定的时间内在终端屏幕的预定位置处显示给用户看到,用户就可以不用切换本地图库就可以在当前显示屏幕上看到截屏图片,方便用户后续对截屏图片进行的一些诸如标记、分享、编辑等其他操作。In this way, the terminal will display the preview picture of the screenshot picture to the user at a predetermined position on the terminal screen within a certain period of time, and the user can see the screenshot picture on the current display screen without switching the local gallery, which is convenient for the user to follow up on the screenshot Other operations such as tagging, sharing, editing, etc. performed on pictures.

在一个实施例中,也可以称截屏图片对应的预览图片为所述截屏图片对应的缩略图片,无论是预览图片还是缩略图片都是为了向用户快速展示所述截屏图片的一个入口,使得用户可以通过该预览图片或者缩略图片快速查看所述截屏图片,而无需切换到本地图库进行查看。在本实施例中,则统一称为预览图片。In one embodiment, the preview picture corresponding to the screenshot can also be referred to as the thumbnail corresponding to the screenshot. Both the preview picture and the thumbnail are an entry for quickly showing the screenshot to the user, so that The user can quickly view the screenshot through the preview image or the thumbnail image without switching to a local gallery for viewing. In this embodiment, they are collectively referred to as preview pictures.

参见图3,图3是一截屏图片在终端显示屏幕上预览显示的示意图,截屏图片的预览图片在终端显示屏幕的右上角的预定区域显示。该预定区域的大小与预览图片的显示大小一致。Referring to FIG. 3 , FIG. 3 is a schematic diagram showing a screenshot previewed on a terminal display screen, and the preview image of the screenshot is displayed in a predetermined area in the upper right corner of the terminal display screen. The size of the predetermined area is consistent with the display size of the preview picture.

在步骤203中,检测用户是否切换显示了目标应用程序页面;In step 203, it is detected whether the user switches and displays the target application page;

在一个实施例中,目标应用程序可以包括但不限于:通讯类应用程序,或者文本编辑应用程序;In an embodiment, the target application program may include but not limited to: a communication application program, or a text editing application program;

其中,文本编辑应用程序可以是word、PPT等office办公应用软件,便签、笔记等文件编辑软件;通讯类应用程序可以是即时通讯应用程序,短信,电话应用,或者社交网络服务SNS应用软件等通信工具。Among them, the text editing application program can be office application software such as word and PPT, and file editing software such as notes and notes; the communication application program can be instant messaging application program, short message, telephone application, or social network service SNS application software and other communications tool.

在一个实施例中,当所述目标应用程序是通讯类应用程序时,目标应用程序页面可以包括:通讯类应用程序中的联系人会话页面,通讯类应用程序的通讯录页面,或者通讯类应用程序的通话记录界面。In one embodiment, when the target application is a communication application, the target application page may include: a contact session page in a communication application, an address book page of a communication application, or a communication application The program's call log interface.

在另一个实施例中,目标应用程序为文本编辑应用程序时,目标应用程序页面可以为文本编辑页面。In another embodiment, when the target application is a text editing application, the target application page may be a text editing page.

在一个实施例中,用户可以通过应用切换操作的指令来切换显示所述目标应用程序页面,当检测到用户的显示页面切换操作的指令时,切换显示用户指定显示的目标应用程序的显示页面。In one embodiment, the user can switch and display the target application program page by applying a switching operation instruction, and when the user's display page switching operation instruction is detected, the display page of the target application program specified by the user is switched and displayed.

在步骤204中,当前运行显示了目标应用程序页面时,检测用户是否对显示的所述预览图片进行了拖动操作;In step 204, when the target application page is currently running, it is detected whether the user has performed a drag operation on the displayed preview image;

在步骤205中,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作移动显示所述预览图片;In step 205, if it is detected that the user has performed a drag operation on the preview picture, then moving and displaying the preview picture according to the drag operation;

在步骤206中,如果检测到所述预览图片被移动到了目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。In step 206, if it is detected that the preview picture has been moved to the target position of the target application program page, a sharing operation is performed on the screenshot picture.

在一个实施例中,当所述目标应用程序页面是通讯类应用程序中的联系人会话页面,通讯类应用程序的通讯录页面或通讯类应用程序的通话记录界面时,对所述截屏图片进行分享操作可以包括:将所述截屏图片发送给通讯类应用程序中的联系人,实现对所述截屏图片的分享。In one embodiment, when the target application program page is a contact session page in a communication application program, an address book page of a communication application program or a call record interface of a communication application program, the screenshot is processed The sharing operation may include: sending the screenshot to a contact in a communication application program, so as to share the screenshot.

在一个实施例中,所述目标应用程序页面的目标位置可以是:联系人会话页面的消息出入框区域,通讯录页面中的某个联系人条目位置处或者通话记录界面中某条通话记录条目位置处。例如,如果检测到预览图片被拖动移动到了通讯类应用程序中的联系人会话页面的消息输入框中,则将所述预览图片发送给当前会话的联系人;In one embodiment, the target location of the target application page may be: the message entry and exit box area of the contact session page, a certain contact entry position in the address book page or a certain call record entry in the call record interface location. For example, if it is detected that the preview picture is dragged and moved to the message input box of the contact session page in the communication application program, then the preview picture is sent to the contact of the current session;

在一个实施例中,对所述截屏图片进行分享操作之前,所述方法还可以包括:提示用户是否对所述截屏图片进行分享,以避免误触操作的发生。In an embodiment, before performing a sharing operation on the screenshot, the method may further include: prompting the user whether to share the screenshot, so as to avoid the occurrence of an accidental touch operation.

参见图4A至4E,是根据一示例性实施例提供的一种截屏图片在联系人会话页面中进行分享的实现过程示意图。图4A是一通讯类应用程序中一联系人会话页面的示意图,预览图片显示在该终端显示屏幕的右上角;检测到用户对该预览图片的拖动操作后,依据所述拖动操作在当前显示界面上移动该预览图片,这一过程请参见图4B;当该预览图片被拖动到会话页面的消息输入框区域时,如果检测到用户松开了对该预览图片的拖动,则该预览图片被输入到消息输入框中,参见图4C;如果检测到用户对该消息输入框中预览图片的发送请求,则将该预览图片发送给当前会话的联系人,参见图4E,完成对该截屏图片分享给联系人的操作。在一个实施例中,在将截屏图片分享给联系人之前,会提示用户进行图片分享的操作,如图4D所示,会提示用户“松手发送图片”字样,提示用户松开对预览图片的拖动就可以实现对图片的发送操作。Referring to FIGS. 4A to 4E , it is a schematic diagram of an implementation process of sharing screenshots in a contact session page according to an exemplary embodiment. Fig. 4A is a schematic diagram of a contact session page in a communication application program, the preview picture is displayed in the upper right corner of the display screen of the terminal; The preview picture is moved on the display interface, and this process is shown in Figure 4B; when the preview picture is dragged to the message input box area of the conversation page, if it is detected that the user releases the drag of the preview picture, the The preview picture is input into the message input box, see Figure 4C; if it is detected that the user sends a request for the preview picture in the message input box, then the preview picture is sent to the contact person in the current session, see Figure 4E, and the message is completed. The operation of sharing screenshots with contacts. In one embodiment, before sharing the screenshot picture with contacts, the user will be prompted to perform the picture sharing operation, as shown in Figure 4D, the user will be prompted to "let go to send the picture", prompting the user to release the drag on the preview picture. The operation of sending pictures can be realized by moving.

如果检测到预览图片被拖动移动到了通讯录页面中的某个联系人条目处,则将所述预览图片发送给该联系人;如果检测到预览图片被拖动移动到了通话记录中的某条通话记录条目位置处,则将所述截屏图片发送给该通话记录对应的联系人。If it is detected that the preview picture is dragged and moved to a contact entry in the address book page, the preview picture is sent to the contact; if it is detected that the preview picture is dragged and moved to a certain item in the call record At the location of the call record entry, the screenshot is sent to the contact person corresponding to the call record.

参见图5A至5D,是根据一示例性实施例提供的一种截屏图片在通话记录中进行分享的实现过程示意图。图5A是一通讯类应用程序中通话记录的示意图,截屏图片的预览图片显示在该终端显示屏幕的右上角;检测到用户对该预览图片的拖动操作后,依据所述拖动操作在当前显示界面上移动该预览图片,这一过程请参见图5B;当该预览图片被拖动到通讯录页面中的某个联系人条目处时,如果检测到用户松开了对该预览图片的拖动,则将该截屏图片发送该通话记录对应的联系人,参见图5D,完成对该截屏图片分享给联系人的操作。在一个实施例中,在将截屏图片分享给联系人之前,会提示用户进行图片分享的操作,如图5C所示,会提示用户“松手发送图片”字样,提示用户松开对预览图片的拖动就可以实现对截屏图片的发送操作。Referring to FIGS. 5A to 5D , they are schematic diagrams of an implementation process of sharing screenshots in call records according to an exemplary embodiment. Fig. 5A is a schematic diagram of a call record in a communication application program. The preview picture of the screenshot is displayed on the upper right corner of the display screen of the terminal; The preview picture is moved on the display interface, and this process is shown in Figure 5B; when the preview picture is dragged to a contact entry in the address book page, if it is detected that the user has released the drag , then send the screenshot to the contact corresponding to the call record, see FIG. 5D , and complete the operation of sharing the screenshot to the contact. In one embodiment, before sharing the screenshot picture with contacts, the user will be prompted to perform picture sharing operations, as shown in Figure 5C, the user will be prompted to "let go to send the picture", prompting the user to release the drag on the preview picture You can realize the sending operation of the screenshot picture by moving.

在另一个实施例中,将所述截屏图片发送给通讯类应用程序中的联系人,实现对所述截屏图片的分享时,可以不将截屏图片的原图发送给通讯类应用程序中的联系人,仅是将截屏图片对应的预览图片分享给联系人,这样,同样可以实现对该截屏图片的分享,只是联系人接收到的截屏图片的清晰度稍低,但是可以降低数据通信时的数据量,在网络状态不是很理想的情况下,可以加快截屏图片分享时的发送速度。In another embodiment, when the screen shot is sent to the contact in the communication application program, and the screen capture picture is shared, the original image of the screen capture picture may not be sent to the contact person in the communication application program. People, just share the preview picture corresponding to the screenshot with the contact, so that the screenshot can also be shared, but the definition of the screenshot received by the contact is slightly lower, but it can reduce the data communication time. If the network status is not very ideal, it can speed up the sending speed of screenshots for sharing.

在一个实施例中,当所述目标应用程序页面为文本编辑页面时,对所述截屏图片进行分享操作可以包括:将所述截屏图片插入到文本编辑页面的目标位置处,实现对所述截屏图片的分享。In one embodiment, when the target application page is a text editing page, the operation of sharing the screenshot may include: inserting the screenshot into the target position of the text editing page, so as to realize the sharing of the screenshot Sharing of pictures.

在一个实施例中,当所述文本编辑页面是便签编辑页面时,检测到该预览图片被移动到了便签编辑页面的某一行,则在该便签编辑页面的该文本行插入该预览图片。或者,当所述文本编辑页面是office办公编辑软件时,检测到该预览图片被移动了文本编辑页面的某处,则在该处插入所述预览图片。In one embodiment, when the text editing page is a note editing page, it is detected that the preview image has been moved to a certain line of the note editing page, and the preview image is inserted in the text line of the note editing page. Or, when the text editing page is an office editing software, it is detected that the preview picture has been moved to a certain place on the text editing page, and then the preview picture is inserted there.

在一个实施例中,可以将截屏图片的原图插入到编辑页面的某个位置处。也可以将截屏图片对应的预览图片插入到编辑页面的某个位置处,由于预览图片的大小比较小,可以降低编辑文本所占用的空间大小。In one embodiment, the original picture of the screenshot can be inserted into a certain position of the editing page. It is also possible to insert the preview picture corresponding to the screenshot picture into a certain position of the editing page. Since the size of the preview picture is relatively small, the space occupied by the editing text can be reduced.

参见图6A至6C,是根据一示例性实施例提供的一种截屏图片在便签中进行分享的实现过程示意图。图6A是一便签的编辑页面的示意图,截屏图片的预览图片显示在该终端显示屏幕的右上角;检测到用户对该预览图片的拖动操作后,依据所述拖动操作在当前显示界面上移动该预览图片,这一过程请参见图6B;当该预览图片被拖动到便签编辑页面的某一行,如果检测到用户松开了对该预览图片的拖动,则在便签编辑页面的该行插入将该预览图片,参见图6C,实现对该截屏图片的分享。Referring to FIGS. 6A to 6C , they are schematic diagrams of an implementation process of sharing screenshots in sticky notes according to an exemplary embodiment. Fig. 6A is a schematic diagram of an editing page of a sticky note, and the preview picture of the screenshot is displayed on the upper right corner of the display screen of the terminal; after detecting the user's drag operation to the preview picture, the screen will be displayed on the current display interface according to the drag operation The process of moving the preview image is shown in Figure 6B; when the preview image is dragged to a row on the note edit page, if it is detected that the user releases the drag of the preview image, then the preview image will be displayed on the note edit page. The line inserts the preview picture, as shown in FIG. 6C , to realize the sharing of the screenshot picture.

在一个实施例中,对所述截屏图片进行分享操作可以包括:检测是否接收到对截屏图片进行分享触发指令,如果检测到对截屏图片进行分享操作的触发指令(如检测到松开对预览图片的拖动操作),则对截屏图片进行分享操作。In one embodiment, performing the sharing operation on the screenshot may include: detecting whether a trigger instruction for sharing the screenshot is received, and if a trigger instruction for sharing the screenshot is detected (for example, it is detected that the preview image is released drag operation), then share the screenshot.

在一个实施例中,对所述截屏图片进行分享操作之前,所述方法还可以包括:提示用户是否对所述截屏图片进行分享,以避免误触操作的发生。In an embodiment, before performing a sharing operation on the screenshot, the method may further include: prompting the user whether to share the screenshot, so as to avoid the occurrence of an accidental touch operation.

综上所述,本技术方案在生成截屏图片并预览显示后,检测用户是否切换运行显示目标应用程序的页面;当前运行显示了目标应用程序的页面时,检测用户是否对显示的所述预览图片进行了拖动操作,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作指令移动显示所述预览图片;如果检测到所述预览图片被移动到了所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。通过对预览截屏图片的拖动操作可以快速实现图片的分享操作,方便用户的操作,提高用户体验。To sum up, this technical solution detects whether the user switches and runs the page displaying the target application after the screenshot is generated and displayed in preview; A drag operation is performed, if it is detected that the user has performed a drag operation on the preview image, then move and display the preview image according to the drag operation instruction; if it is detected that the preview image has been moved to the target application At the target location of the program page, share the screenshot. The image sharing operation can be realized quickly by dragging the preview screenshot image, which is convenient for the user's operation and improves the user experience.

参见图7,图7是根据一示例性实施例示出的一种内容分享的方法,该方法用于上述终端中,可以包括以下步骤:Referring to FIG. 7, FIG. 7 shows a content sharing method according to an exemplary embodiment. The method is used in the above-mentioned terminal, and may include the following steps:

在步骤300中,用户发送截屏操作的指令;In step 300, the user sends an instruction for screenshot operation;

在步骤301中,检测到截屏操作的指令时,截取当前显示页面,并生成当前显示页面对应的截屏图片;In step 301, when an instruction of a screen capture operation is detected, the currently displayed page is intercepted, and a screen capture picture corresponding to the currently displayed page is generated;

在一个实施例中,用户在通过终端进行内容浏览时,如果看到自己比较喜欢的内容,可以通过截屏的方式将自己喜欢的内容保留下来。如,可以通过快捷操作按键或者指令来向终端发送截屏指令,终端接收到截屏指令后,截取当前显示页面,并生成当前显示页面对应的截屏图片给用户。用户可以对截屏图片进行存储、分享或者其他操作。在一个实施例中,生成的截屏图片会被默认保存在本地图库中。In one embodiment, when the user browses content through the terminal, if he sees the content he likes, he can save the content he likes by taking a screenshot. For example, a screen capture command can be sent to the terminal through a shortcut operation button or command, and after receiving the screen capture command, the terminal captures the currently displayed page, and generates a screen capture picture corresponding to the currently displayed page to the user. Users can store, share or perform other operations on screenshots. In one embodiment, the generated screenshot will be saved in the local gallery by default.

在步骤302中,生成截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;In step 302, a preview picture corresponding to the screenshot picture is generated, and the preview picture is displayed at a predetermined position on the display screen;

本公开实施例中,在显示屏幕的预定位置处显示所述预览图片可以包括:In an embodiment of the present disclosure, displaying the preview picture at a predetermined position on the display screen may include:

预定时长内在显示屏幕的预定位置处显示所述预览图片;displaying the preview picture at a predetermined position on the display screen within a predetermined period of time;

如果在预定时长内,无针对所述预览图片的操作,预定时长结束后,则不再显示所述预览图片。If there is no operation on the preview picture within the predetermined time period, the preview picture will no longer be displayed after the predetermined time period ends.

在一个实施例中,所述预定时长可以根据情况在操作系统中进行设置,如2s或者3秒,对此,本公开实施例并不做过多的限定。In an embodiment, the predetermined duration can be set in the operating system according to the situation, such as 2s or 3 seconds, which is not limited too much in this embodiment of the present disclosure.

可选的,在显示屏幕的预定位置处显示所述预览图片可以包括但不限于:Optionally, displaying the preview picture at a predetermined position on the display screen may include but not limited to:

在显示屏幕的右上角的预定区域显示所述预览图片;或者,在显示屏幕的左上角的预定区域显示所述预览图片。The preview picture is displayed in a predetermined area at the upper right corner of the display screen; or, the preview picture is displayed at a predetermined area at the upper left corner of the display screen.

这样,终端将截屏图片的预览图片在一定的时间内在终端屏幕的预定位置处显示给用户看到,用户就可以不用切换本地图库就可以在当前显示屏幕上看到截屏图片,方便用户后续对截屏图片进行的一些诸如标记、分享、编辑等其他操作。In this way, the terminal will display the preview picture of the screenshot picture to the user at a predetermined position on the terminal screen within a certain period of time, and the user can see the screenshot picture on the current display screen without switching the local gallery, which is convenient for the user to follow up on the screenshot Other operations such as tagging, sharing, editing, etc. performed on pictures.

在一个实施例中,也可以称截屏图片对应的预览图片为所述截屏图片对应的缩略图片,无论是预览图片还是缩略图片都是为了向用户快速展示所述截屏图片的一个入口,使得用户可以通过该预览图片或者缩略图片快速查看所述截屏图片,而无需切换到本地图库进行查看。在本实施例中,则统一称为预览图片。In one embodiment, the preview picture corresponding to the screenshot can also be referred to as the thumbnail corresponding to the screenshot. Both the preview picture and the thumbnail are an entry for quickly showing the screenshot to the user, so that The user can quickly view the screenshot through the preview image or the thumbnail image without switching to a local gallery for viewing. In this embodiment, they are collectively referred to as preview pictures.

参见图3,图3是一截屏图片在终端显示屏幕上预览显示的示意图,截屏图片的预览图片在终端显示屏幕的右上角的预定区域显示。该预定区域的大小与预览图片的大小一致。Referring to FIG. 3 , FIG. 3 is a schematic diagram showing a screenshot previewed on a terminal display screen, and the preview image of the screenshot is displayed in a predetermined area in the upper right corner of the terminal display screen. The size of the predetermined area is consistent with the size of the preview picture.

在步骤303中,检测用户是否对显示的所述预览图片进行了拖动操作;In step 303, it is detected whether the user has performed a drag operation on the displayed preview image;

在步骤304中,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作移动显示所述预览图片;In step 304, if it is detected that the user has performed a drag operation on the preview picture, moving and displaying the preview picture according to the drag operation;

在步骤305中,检测是否触发了显示终端运行的应用程序的操作;In step 305, it is detected whether the operation of the application program running on the display terminal is triggered;

在一个实施例中,检测是否触发了显示终端运行的应用程序的操作可以包括:In an embodiment, detecting whether the operation of the application program running on the display terminal is triggered may include:

检测按照所述拖动操作移动显示所述预览图片是否超过了预定的区域范围;如果超过了预定的区域范围,则触发了显示终端运行的应用程序的操作。在一个实施例中,所述预定的区域范围可以实现设定,如移动距离超过显示界面长度的三分之一。Detecting whether moving and displaying the preview picture according to the dragging operation exceeds a predetermined area range; if it exceeds the predetermined area range, an operation of an application program running on the display terminal is triggered. In an embodiment, the predetermined area range can be set, for example, the moving distance exceeds one-third of the length of the display interface.

或者,or,

检测按照所述拖动操作移动显示所述预览图片是否达到了显示屏幕的预定区域,如果达到了显示屏幕的预定区域,则触发了显示终端运行的应用程序的操作。在一个实施例中,所述预定区域可以是显示屏幕的底部区域。Detecting whether the preview picture moved and displayed according to the drag operation has reached a predetermined area of the display screen, and if it has reached the predetermined area of the display screen, an operation of an application program running on the display terminal is triggered. In one embodiment, the predetermined area may be the bottom area of the display screen.

或者,or,

接收到用户切换显示终端运行的应用程序的操作的指令。An instruction to switch the operation of the application program running on the display terminal by the user is received.

在步骤306中,如果触发了显示终端运行的应用程序的操作,显示终端上运行的应用程序的应用显示页面;In step 306, if the operation of displaying the application program running on the terminal is triggered, display the application display page of the application program running on the terminal;

在一个实施例中,显示终端上运行的应用程序的应用显示页面可以包括:In one embodiment, the application display page of the application running on the display terminal may include:

对终端上运行的应用程序的类型进行检测,显示终端上运行的应用程序中满足预定类型条件的应用程序的应用显示页面。The type of the application program running on the terminal is detected, and the application display page of the application program meeting the predetermined type condition among the application programs running on the terminal is displayed.

在一个实施例中,满足预定类型条件的应用程序是指截屏图片可以在该类应用程序中进行分享操作的应用程序,如通讯类应用程序,或者文本编辑应用等。这样,用户就可以拖动预览图片到终端显示的终端上可进行分享操作的应用程序中,从而实现该预览图片在其他应用程序中的分享操作。In an embodiment, the application program meeting the predetermined type condition refers to an application program in which the screen shot can be shared in this type of application program, such as a communication application program or a text editing application. In this way, the user can drag the preview picture to an application program displayed on the terminal that can be shared, so as to realize the sharing operation of the preview picture in other application programs.

在一个实施例中,如果触发了显示终端运行的应用程序的操作,也可以将终端后台运行的所有类型的应用程序展示给用户,用户从中选择可进行分享的应用程序进行预览图片的分享。In one embodiment, if the operation of displaying the application programs running on the terminal is triggered, all types of application programs running in the background of the terminal can also be displayed to the user, and the user can select an application program that can be shared to share the preview image.

在一个实施例中,用户可以手动切换显示终端运行的应用程序的操作,如果检测到用户的操作的指令,则触发显示终端运行的应用程序的应用显示页面。这里,如果用户采用手动切换显示终端运行的应用程序的操作,则可以先执行步骤305和306,而后执行步骤303和304。In one embodiment, the user can manually switch the operation of the application program running on the display terminal, and if an instruction of the user's operation is detected, the application display page of the application program running on the display terminal is triggered. Here, if the user manually switches the application programs running on the display terminal, steps 305 and 306 may be performed first, and then steps 303 and 304 may be performed.

参见图8A至8B,示例性的给出了一种显示终端运行的应用程序的示意图;当用户在终端显示屏幕上拖动截屏图片的预览图片超过了预定的范围,则触发显示终端后台运行的应用程序中可实现预览图片进行分享的应用程序平台的显示页面,参见图8A。如果用户继续拖动预览图片至显示的后台运行的应用程序中的某一个应用程序的显示页面上,则可以打开该显示页面,且在该显示页面上继续显示所述预览图片,参见图8B。Referring to Figures 8A to 8B, a schematic diagram of an application program running on a display terminal is exemplarily given; when the user drags the preview picture of the screenshot picture on the terminal display screen beyond a predetermined range, the display terminal background running Refer to FIG. 8A for the display page of the application platform that can preview pictures for sharing in the application. If the user continues to drag the preview picture to the display page of one of the displayed applications running in the background, the display page can be opened, and the preview picture continues to be displayed on the display page, see FIG. 8B .

在步骤307中,基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作。In step 307, based on the displayed application display page of the application program and the preview picture, the sharing operation of the screenshot picture is realized.

在一个实施例中,基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作可以包括:In one embodiment, based on the application display page of the displayed application program and the preview image, realizing the sharing operation of the screenshot image may include:

检测用户是否将所述预览图片拖动至应用显示页面中的目标应用程序页面;Detecting whether the user drags the preview image to the target application page in the application display page;

如果用户将所述预览图片拖动至所述目标应用程序页面,则打开显示所述目标应用程序页面;If the user drags the preview picture to the target application page, then open and display the target application page;

检测用户是否将所述预览图片拖动至所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。Detecting whether the user drags the preview picture to the target position of the target application program page, and performing a sharing operation on the screenshot picture.

其中,目标应用程序包括但不限于:通讯类应用程序或文本编辑应用程序。Wherein, the target application program includes but not limited to: a communication application program or a text editing application program.

在一个实施例中,文本编辑应用程序可以是word、PPT等office办公应用软件,便签等文件编辑软件;通讯类应用程序可以是应用聊天工具等通信工具。In one embodiment, the text editing application program may be office application software such as word and PPT, and file editing software such as notepad; the communication application program may be a communication tool such as a chat tool.

在一个实施例中,对所述截屏图片进行分享操作可以包括:当所述目标应用程序是文本编辑应用程序时,将所述截屏图片插入到文本编辑页面的目标位置处;当所述目标应用程序是通讯类应用程序时,将所述截屏图片发送给通讯类应用程序中的联系人。In one embodiment, the operation of sharing the screenshot may include: when the target application is a text editing application, inserting the screenshot into a target position of the text editing page; When the program is a communication application program, the screenshot is sent to a contact in the communication application program.

在一个实施例中,如果目标应用程序是通讯类应用程序,且后台显示的应用程序显示页面是通讯类应用程序中的联系人会话页面,或者,通讯类应用程序的通讯录页面,或者通讯类应用程序的通话记录界面时,将所述截屏图片分享给通讯类应用程序中的联系人可以包括:拖动所述预览图片至通讯类应用程序显示页面,打开所述通讯类应用程序的显示页面,并将该预览图片拖动至所述显示页面的预定位置处,以实现对所述截屏图片分享给通讯类应用程序中联系人的操作,例如:将所述截屏图片发送给通讯类应用程序中的联系人,实现对所述截屏图片的分享。这里,将截屏图片发送给通讯类应用程序的联系人指的是将截屏图片的原图发送给通讯类应用程序的联系人。In one embodiment, if the target application program is a communication application program, and the application display page displayed in the background is the contact session page in the communication application program, or the address book page of the communication application program, or the In the call record interface of the application program, sharing the screenshot picture with the contacts in the communication application program may include: dragging the preview image to the display page of the communication application program, and opening the display page of the communication application program , and drag the preview picture to a predetermined position on the display page to realize the operation of sharing the screenshot with contacts in the communication application, for example: sending the screenshot to the communication application contacts in , to share the screenshot. Here, the contact person who sends the screenshot picture to the communication application program refers to the contact person who sends the original image of the screenshot picture to the communication application program.

在一个实施例中,所述目标应用程序页面的目标位置可以是:联系人会话页面的消息出入框区域,通讯录页面中的某个联系人条目位置处或者通话记录界面中某条通话记录条目位置处。例如,如果检测到预览图片被拖动移动到了通讯类应用程序中的联系人会话页面的消息输入框中,则将所述截屏图片发送给当前会话的联系人;In one embodiment, the target location of the target application page may be: the message entry and exit box area of the contact session page, a certain contact entry position in the address book page or a certain call record entry in the call record interface location. For example, if it is detected that the preview picture is dragged and moved to the message input box of the contact session page in the communication application program, then the screenshot picture is sent to the contact person of the current session;

在一个实施例中,当目标应用程序的显示页面是通讯类应用程序中的联系人会话页面,基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作可以包括:将所述截屏图片发送给通讯类应用程序中的联系人会话页面中进行会话的联系人。在一个实施例中,将所述截屏图片发送给通讯类应用程序中的联系人会话页面中进行会话的联系人之前,提示用户是否发送所述截屏图片,例如,会提示用户“松手发送图片”字样,提示用户松开对预览图片的拖动就可以实现对截屏图片的发送操作。参见图8C,是根据一示例性实施例提供的一种截屏图片在联系人会话页面中进行分享的实现过程示意图,如果检测到用户拖动预览图片到了后台运行的与联系人B的会话页面,会提示用户“松手发送图片”字样,提示用户松开对预览图片的拖动就可以将所述截屏图片发送给联系人B。In one embodiment, when the display page of the target application program is a contact session page in a communication application program, based on the application display page of the displayed application program and the preview picture, the sharing operation of the screenshot picture can be realized Including: sending the screen capture picture to a contact person having a conversation on a contact conversation page in a communication application program. In one embodiment, before sending the screenshot to the contact in the conversation page of the contact in the communication application program, the user is prompted whether to send the screenshot, for example, the user is prompted to "let go and send the picture" to prompt the user to release the drag on the preview image to realize the sending operation of the screenshot image. Referring to FIG. 8C , it is a schematic diagram of an implementation process of sharing screenshots in a contact session page according to an exemplary embodiment. If it is detected that the user drags the preview image to the session page with contact B running in the background, The user will be prompted to "let go and send the picture", prompting the user to release the drag on the preview picture to send the screenshot picture to the contact B.

参见图4A至4E,是根据一示例性实施例提供的一种预览图片在联系人会话页面中进行分享的实现过程示意图。拖动预览图片到后台显示的应用程序中的应用程序B的显示页面,这里,应用程序B的显示界面为一联系人会话页面,预览图片依然会在该联系人会话页面中显示,如图4A所示;检测到用户对该预览图片的拖动操作后,依据所述拖动操作在当前显示界面上移动该预览图片,这一过程请参见图4B;当该预览图片被拖动到会话页面的消息输入框区域时,如果检测到用户松开了对该预览图片的拖动,则该预览图片被输入到消息输入框中,参见图4C;如果检测到用户对该消息输入框中预览图片的发送请求,则将该预览图片发送给当前会话的联系人,参见图4E,完成对该截屏图片分享给联系人的操作。在一个实施例中,在将截屏图片分享给联系人之前,会提示用户进行图片分享的操作,如图4D所示,会提示用户“松手发送图片”字样,提示用户松开对预览图片的拖动就可以实现对图片的发送操作。Referring to FIGS. 4A to 4E , it is a schematic diagram of an implementation process of sharing a preview image in a contact session page according to an exemplary embodiment. Drag the preview image to the display page of application B in the application displayed in the background. Here, the display interface of application B is a contact session page, and the preview image will still be displayed in the contact session page, as shown in Figure 4A shown; after detecting the drag operation of the preview image by the user, the preview image is moved on the current display interface according to the drag operation, and this process is shown in Figure 4B; when the preview image is dragged to the session page When it is detected that the user releases the drag of the preview picture, the preview picture is input into the message input box, see Figure 4C; if it is detected that the user previews the picture in the message input box If there is a sending request, the preview image is sent to the contact of the current session, as shown in FIG. 4E , and the operation of sharing the screenshot image to the contact is completed. In one embodiment, before sharing the screenshot picture with contacts, the user will be prompted to perform the picture sharing operation, as shown in Figure 4D, the user will be prompted to "let go to send the picture", prompting the user to release the drag on the preview picture. The operation of sending pictures can be realized by moving.

如果检测到预览图片被拖动移动到了通讯录页面中的某个联系人条目处,则将所述截屏图片发送给该联系人;如果检测到预览图片被拖动移动到了通话记录中的某条通话记录条目位置处,则将所述截屏图片发送给该通话记录对应的联系人。If it is detected that the preview picture is dragged and moved to a contact entry in the address book page, the screenshot will be sent to the contact; if it is detected that the preview picture has been dragged and moved to a certain item in the call record At the location of the call record entry, the screenshot is sent to the contact person corresponding to the call record.

参见图5A至5D,是根据一示例性实施例提供的一种预览图片在联系人会话页面中进行分享的实现过程示意图。拖动预览图片到后台显示的应用程序中的应用程序B的显示页面,这里,应用程序B的显示界面为一联系人会话页面,预览图片依然会在该联系人会话页面中显示,如图5A所示;检测到用户对该预览图片的继续拖动操作后,依据所述拖动操作在当前显示界面上移动该预览图片,这一过程请参见图5B;当该预览图片被拖动到会话页面的消息输入框区域时,如果检测到用户松开了对该预览图片的拖动,则该预览图片被输入到消息输入框中,参见图5C;如果检测到用户对该消息输入框中预览图片的发送请求,则将该预览图片发送给当前会话的联系人,参见图5D,完成对该截屏图片分享给联系人的操作。Referring to FIGS. 5A to 5D , it is a schematic diagram of an implementation process of sharing a preview image in a contact session page according to an exemplary embodiment. Drag the preview picture to the display page of application B in the application displayed in the background, here, the display interface of application B is a contact session page, and the preview picture will still be displayed in the contact session page, as shown in Figure 5A shown; after detecting that the user continues to drag the preview picture, the preview picture is moved on the current display interface according to the drag operation, and this process is shown in Figure 5B; when the preview picture is dragged to the session In the message input box area of the page, if it is detected that the user releases the drag of the preview picture, the preview picture will be input into the message input box, see Figure 5C; if it is detected that the user previews the preview picture in the message input box For the sending request of the picture, the preview picture is sent to the contact person in the current session. Referring to FIG. 5D , the operation of sharing the screenshot picture to the contact person is completed.

在另一个实施例中,将所述截屏图片发送给通讯类应用程序中的联系人,实现对所述截屏图片的分享时,可以不将截屏图片的原图发送给通讯类应用程序中的联系人,仅是将截屏图片对应的预览图片分享给联系人,这样,同样可以实现对该截屏图片的分享,只是联系人接收到的截屏图片的清晰度稍低,但是可以降低数据通信时的数据量,在网络状态不是很理想的情况下,可以加快截屏图片分享时的发送速度。In another embodiment, when the screen shot is sent to the contact in the communication application program, and the screen capture picture is shared, the original image of the screen capture picture may not be sent to the contact person in the communication application program. People, just share the preview picture corresponding to the screenshot with the contact, so that the screenshot can also be shared, but the definition of the screenshot received by the contact is slightly lower, but it can reduce the data communication time. If the network status is not very ideal, it can speed up the sending speed of screenshots for sharing.

在一个实施例中,当所述目标应用程序是文本编辑应用程序时,可以通过拖动预览图片到该文本编辑应用程序,打开该文本编辑应用程序,之后,拖动该预览图片,将所述截屏图片插入到文本编辑页面的目标位置处,实现对所述截屏图片的分享。In one embodiment, when the target application program is a text editing application program, the text editing application program can be opened by dragging a preview picture to the text editing application program, and then dragging the preview picture, the The screenshot picture is inserted into the target position of the text editing page, so as to realize the sharing of the screenshot picture.

在一个实施例中,当所述文本编辑页面是便签编辑页面时,检测到该预览图片被移动到了便签编辑页面的某一行,则在该便签编辑页面的该文本行插入该截屏图片。或者,当所述文本编辑页面是office办公编辑软件时,检测到该预览图片被移动了文本编辑页面的某处,则在该处插入所述截屏图片。In one embodiment, when the text editing page is a note editing page, it is detected that the preview image has been moved to a certain line of the note editing page, and the screenshot image is inserted into the text line of the note editing page. Or, when the text editing page is an office editing software, it is detected that the preview picture has been moved to a certain place on the text editing page, and then the screenshot picture is inserted there.

在一个实施例中,可以将截屏图片的原图插入到编辑页面的某个位置处。也可以将截屏图片对应的预览图片插入到编辑页面的某个位置处,由于预览图片的大小比较小,可以降低编辑文本所占用的空间大小。In one embodiment, the original picture of the screenshot can be inserted into a certain position of the editing page. It is also possible to insert the preview picture corresponding to the screenshot picture into a certain position of the editing page. Since the size of the preview picture is relatively small, the space occupied by the editing text can be reduced.

参见图6A至6C,是根据一示例性实施例提供的一种预览图片在便签中进行分享的实现过程示意图。拖动预览图片到后台显示的应用程序中的应用程序B的显示页面,这里,应用程序B的显示界面为一便签编辑页面,预览图片依然会在该便签编辑页面中显示,参见图6A;检测到用户对该预览图片的拖动操作后,依据所述拖动操作在当前显示界面上移动该预览图片,这一过程请参见图6B;当该预览图片被拖动到便签编辑页面的某一行,如果检测到用户松开了对该预览图片的拖动,则在便签编辑页面的该行插入将该截屏图片,参见图6C,实现对该截屏图片的分享。Referring to FIGS. 6A to 6C , it is a schematic diagram of an implementation process of sharing a preview picture in a sticky note according to an exemplary embodiment. Drag the preview image to the display page of application B in the application displayed in the background. Here, the display interface of application B is a note editing page, and the preview image will still be displayed on the note editing page, see Figure 6A; detection After the user drags the preview image, move the preview image on the current display interface according to the drag operation. Please refer to Figure 6B for this process; when the preview image is dragged to a row on the note editing page , if it is detected that the user releases the dragging of the preview image, insert the screenshot image in this line of the note editing page, see FIG. 6C , to realize the sharing of the screenshot image.

在一个实施例中,对所述截屏图片进行分享操作之前,所述方法还可以包括:提示用户是否对所述截屏图片进行分享,以避免误触操作的发生。In an embodiment, before performing a sharing operation on the screenshot, the method may further include: prompting the user whether to share the screenshot, so as to avoid the occurrence of an accidental touch operation.

本技术方案在生成截屏图片并预览显示后,按照用户的拖动操作移动显示所述预览图片,并检测是否触发了显示终端运行的应用程序的操作;如果触发了显示终端运行的应用程序的操作,显示终端上运行的应用程序的应用显示页面;基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作。通过对预览截屏图片的拖动操作可以快速实现图片的分享操作,方便用户的操作,提高用户体验。In this technical solution, after the screen capture picture is generated and previewed, the preview picture is moved and displayed according to the user's drag operation, and whether the operation of the application program running on the display terminal is triggered; if the operation of the application program running on the display terminal is triggered displaying an application display page of an application program running on the terminal; based on the displayed application display page of the application program and the preview image, an operation of sharing the screenshot image is realized. The image sharing operation can be realized quickly by dragging the preview screenshot image, which is convenient for the user's operation and improves the user experience.

综上所述,本技术方案在生成截屏图片并预览显示后,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。通过对预览截屏图片的拖动操作可以快速实现图片的分享操作,方便用户的操作,提高用户体验。To sum up, after the screenshot image is generated and previewed and displayed in this technical solution, if it is detected that the user has performed a drag operation on the preview image, the preview image will be dragged according to the drag operation to realize the Take screenshots and share them. The image sharing operation can be realized quickly by dragging the preview screenshot image, which is convenient for the user's operation and improves the user experience.

下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the disclosed method embodiments.

图9是根据一示例性实施例示出的一种内容分享装置400的框图,该内容分享装置400可以通过软件、硬件或者两者的结合实现成为终端的部分或者全部,该终端可以是手机或者平板电脑等带有触摸显示屏幕的电子显示设备。该内容分享装置400可以包括:Fig. 9 is a block diagram of a content sharing device 400 according to an exemplary embodiment. The content sharing device 400 can be implemented as part or all of a terminal through software, hardware or a combination of the two. The terminal can be a mobile phone or a tablet Computers and other electronic display devices with touch display screens. The content sharing device 400 may include:

截屏操作模块401,可以被配置为检测到截屏操作的指令时,截取当前显示页面,生成当前显示页面对应的截屏图片;The screenshot operation module 401 may be configured to intercept the currently displayed page and generate a screenshot corresponding to the currently displayed page when an instruction of the screenshot operation is detected;

图片生成模块402,可以被配置为生成所述截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;The picture generation module 402 may be configured to generate a preview picture corresponding to the screenshot picture, and display the preview picture at a predetermined position on the display screen;

内容分享模块403,可以被配置为如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。The content sharing module 403 may be configured to drag the preview image according to the drag operation if it is detected that the user has performed a drag operation on the preview image, so as to realize the operation of sharing the screenshot image.

在一个实施例中,图片生成模块302,可以被配置为预定时长内在显示屏幕的预定位置处显示所述预览图片。如果在预定时长内,无针对所述预览图片的操作,预定时长结束后,则不再显示所述预览图片。In one embodiment, the picture generating module 302 may be configured to display the preview picture at a predetermined position on the display screen within a predetermined time period. If there is no operation on the preview picture within the predetermined time period, the preview picture will no longer be displayed after the predetermined time period ends.

在另一个实施例中,图片生成模块302,可以被配置为在显示屏幕的右上角的预定区域显示所述预览图片;或者,在显示屏幕的左上角的预定区域显示所述预览图片。In another embodiment, the picture generating module 302 may be configured to display the preview picture in a predetermined area at the upper right corner of the display screen; or, display the preview picture at a predetermined area at the upper left corner of the display screen.

参见图10,在一个实施例中,如图9所示的内容分享模块403,可以包括:Referring to FIG. 10, in one embodiment, the content sharing module 403 shown in FIG. 9 may include:

第一指令处理子模块4031,可以被配置为如果检测到用户对显示的所述预览图片的拖动操作,按照所述拖动操作移动显示所述预览图片;The first instruction processing sub-module 4031 may be configured to move and display the preview picture according to the drag operation if a user's drag operation on the displayed preview picture is detected;

第一检测子模块4032,可以被配置为检测是否触发了显示终端运行的应用程序的操作;The first detection submodule 4032 may be configured to detect whether the operation of the application running on the display terminal is triggered;

显示子模块4033,可以被配置为如果触发了显示终端运行的应用程序的操作,显示终端上运行的应用程序的应用显示页面;The display submodule 4033 may be configured to display the application display page of the application running on the terminal if the operation of displaying the application running on the terminal is triggered;

第一内容分享子模块4034,可以被配置为基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作。The first content sharing sub-module 4034 may be configured to share the screenshot based on the displayed application display page and the preview image.

参见图11,如图10所示的第一检测子模块4032,可以包括:Referring to FIG. 11, the first detection submodule 4032 shown in FIG. 10 may include:

第一单元4032a,被配置为检测按照所述拖动操作移动显示所述预览图片是否超过了预定的区域范围;如果超过了预定的区域范围,则触发了显示终端运行的应用程序的操作。The first unit 4032a is configured to detect whether moving and displaying the preview picture according to the drag operation exceeds a predetermined area range; if it exceeds the predetermined area range, triggering the operation of the application program running on the display terminal.

或者,or,

第二单元4032b,被配置为检测按照所述拖动操作移动显示所述预览图片是否达到了显示屏幕的预定区域,如果达到了显示屏幕的预定区域,则触发了显示终端运行的应用程序的操作;The second unit 4032b is configured to detect whether the preview image moved and displayed according to the drag operation has reached a predetermined area of the display screen, and if the predetermined area of the display screen has been reached, the operation of the application program running on the display terminal is triggered ;

或者,or,

第三单元4032c,被配置为接收到用户切换显示终端运行的应用程序的操作的指令。The third unit 4032c is configured to receive an instruction from the user to switch the operation of the application program running on the display terminal.

在一个实施例中,显示子模块4033,可以被配置为对终端上运行的应用程序的类型进行检测,显示终端上运行的应用程序中满足预定类型条件的应用程序的应用显示页面。In one embodiment, the display submodule 4033 may be configured to detect the type of the application program running on the terminal, and display the application display page of the application program meeting the predetermined type condition among the application programs running on the terminal.

参见图12,如图10所示的第一内容分享子模块4034可以包括:Referring to FIG. 12, the first content sharing submodule 4034 shown in FIG. 10 may include:

检测单元4034a,被配置为检测用户是否将所述预览图片拖动至页面显示中的目标应用程序页面;The detection unit 4034a is configured to detect whether the user drags the preview picture to the target application page in the page display;

显示单元4034b,被配置为如果用户将所述预览图片拖动至所述目标应用程序页面,则打开显示所述目标应用程序页面;The display unit 4034b is configured to open and display the target application page if the user drags the preview image to the target application page;

分享单元4034c,被配置为检测用户是否将所述预览图片拖动至所述目标应用程序页面的目标位置处,如果检测到用户将所述预览图片拖动至所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。The sharing unit 4034c is configured to detect whether the user drags the preview picture to the target position of the target application page, if it is detected that the user drags the preview picture to the target position of the target application page , perform a sharing operation on the screenshot.

在一个实施例中,参见图13,如图9所示的内容分享模块403还可以包括:In one embodiment, referring to FIG. 13, the content sharing module 403 shown in FIG. 9 may further include:

第二检测子模块4035,可以被配置为检测用户是否切换运行显示了目标应用程序页面;The second detection submodule 4035 may be configured to detect whether the user switches to run and displays the target application page;

第三检测子模块4036,可以被配置为当前运行显示了目标应用程序页面时,检测用户是否对显示的所述预览图片进行了拖动操作,The third detection submodule 4036 may be configured to detect whether the user has performed a drag operation on the displayed preview picture when the target application page is currently running and displayed,

第二指令处理子模块4037,可以被配置为如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作移动显示所述预览图片;The second instruction processing sub-module 4037 may be configured to move and display the preview picture according to the drag operation if it is detected that the user has performed a drag operation on the preview picture;

第二内容分享子模块4038,可以被配置为如果检测到所述预览图片被移动到了所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。The second content sharing sub-module 4038 may be configured to perform a sharing operation on the screenshot if it is detected that the preview picture has been moved to the target position of the target application program page.

在一个实施例中,目标应用程序可以包括:通讯类应用程序或文本编辑应用程序。In an embodiment, the target application program may include: a communication application program or a text editing application program.

在一个实施例中,第一内容分享子模块4034或者第二内容分享子模块4038,可以被配置为当所述目标应用程序是文本编辑应用程序时,将所述截屏图片插入到文本编辑页面的目标位置处;当所述目标应用程序是通讯类应用程序时,将所述截屏图片发送给通讯类应用程序中的联系人。In one embodiment, the first content sharing submodule 4034 or the second content sharing submodule 4038 may be configured to insert the screenshot into the text editing page when the target application is a text editing application. At the target location; when the target application program is a communication application program, sending the screenshot to a contact in the communication application program.

综上所述,本技术方案在生成截屏图片并预览显示后,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。通过对预览截屏图片的拖动操作可以快速实现图片的分享操作,方便用户的操作,提高用户体验。To sum up, after the screenshot image is generated and previewed and displayed in this technical solution, if it is detected that the user has performed a drag operation on the preview image, the preview image will be dragged according to the drag operation to realize the Take screenshots and share them. The image sharing operation can be realized quickly by dragging the preview screenshot image, which is convenient for the user's operation and improves the user experience.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

请参考图14,其示出了一示例性实施例示出的一种用于内容分享装置500的框图。例如,装置500可以是手机或者平板电脑等带有触摸显示屏幕的电子显示设备。Please refer to FIG. 14 , which shows a block diagram of a content sharing apparatus 500 according to an exemplary embodiment. For example, the apparatus 500 may be an electronic display device with a touch display screen, such as a mobile phone or a tablet computer.

参照图14,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)接口512,传感器组件514,以及通信组件516。14, device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and Communication component 516 .

处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器520来执行指令,以完成上述内容分享方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。The processing component 502 generally controls the overall operations of the device 500, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above content sharing method. Additionally, processing component 502 may include one or more modules that facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502 .

存储器504被配置为存储各种类型的数据以支持在装置500上的操作。这些数据的示例包括用于在装置500上操作的任何应用或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 504 is configured to store various types of data to support operations on the device 500 . Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 504 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。The power supply component 506 provides power to various components of the device 500 . Power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500 .

多媒体组件508包括在装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当装置500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a microphone (MIC), which is configured to receive external audio signals when the device 500 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 504 or sent via communication component 516 . In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 512 provides an interface between the processing component 502 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到装置500的打开/关闭状态,组件的相对定位,例如组件为装置500的显示器和小键盘,传感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500 . For example, the sensor component 514 can detect the open/closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor component 514 can also detect a change in the position of the device 500 or a component of the device 500, the user Presence or absence of contact with device 500 , device 500 orientation or acceleration/deceleration and temperature change of device 500 . Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 516 is configured to facilitate wired or wireless communication between the apparatus 500 and other devices. The device 500 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述显示界面切换的方法。In an exemplary embodiment, apparatus 500 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Realized by a gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components, it is used to execute the above method for switching display interfaces.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器520执行以完成上述内容分享方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 504 including instructions, which can be executed by the processor 520 of the device 500 to implement the above content sharing method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当存储介质中的指令由装置500的处理器执行时,使得装置500能够执行上述内容分享方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the device 500, the device 500 can execute the above content sharing method.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (21)

Translated fromChinese
1.一种内容分享的方法,其特征在于,所述方法包括:1. A method for content sharing, characterized in that the method comprises:检测到截屏操作的指令时,截取当前显示页面,生成当前显示页面对应的截屏图片;When an instruction for a screenshot operation is detected, the currently displayed page is intercepted, and a screenshot image corresponding to the currently displayed page is generated;生成所述截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;Generate a preview picture corresponding to the screenshot, and display the preview picture at a predetermined position on the display screen;如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。If it is detected that the user has performed a drag operation on the preview picture, the preview picture is dragged according to the drag operation to realize the operation of sharing the screenshot.2.根据权利要求1所述的方法,其特征在于,所述在显示屏幕的预定位置处显示所述预览图片包括:2. The method according to claim 1, wherein displaying the preview picture at a predetermined position on the display screen comprises:预定时长内在显示屏幕的预定位置处显示所述预览图片。如果在预定时长内,无针对所述预览图片的操作,预定时长结束后,则不再显示所述预览图片。The preview picture is displayed at a predetermined position on the display screen within a predetermined time period. If there is no operation on the preview picture within the predetermined time period, the preview picture will no longer be displayed after the predetermined time period ends.3.根据权利要求1或2所述的方法,其特征在于,所述在显示屏幕的预定位置处显示所述预览图片包括:3. The method according to claim 1 or 2, wherein displaying the preview picture at a predetermined position on the display screen comprises:在显示屏幕的右上角的预定区域显示所述预览图片;或者,在显示屏幕的左上角的预定区域显示所述预览图片。The preview picture is displayed in a predetermined area at the upper right corner of the display screen; or, the preview picture is displayed at a predetermined area at the upper left corner of the display screen.4.根据权利要求1所述的方法,其特征在于,所述如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作,包括:4. The method according to claim 1, wherein if it is detected that the user has performed a drag operation on the preview picture, then dragging the preview picture according to the drag operation to implement the Screenshots for sharing, including:如果检测到用户对显示的所述预览图片的拖动操作,按照所述拖动操作移动显示所述预览图片;If a user's drag operation on the displayed preview picture is detected, move and display the preview picture according to the drag operation;检测是否触发了显示终端运行的应用程序的操作;Detect whether the operation of the application program running on the display terminal is triggered;如果触发了显示终端运行的应用程序的操作,显示终端上运行的应用程序的应用显示页面;If the operation of displaying the application program running on the terminal is triggered, display the application display page of the application program running on the terminal;基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作。Based on the application display page of the displayed application program and the preview image, the sharing operation of the screenshot image is realized.5.根据权利要求4所述的方法,其特征在于,所述检测是否触发了显示终端运行的应用程序的操作包括:5. The method according to claim 4, wherein the operation of detecting whether the application program running on the display terminal is triggered comprises:检测按照所述拖动操作移动显示所述预览图片是否超过了预定的区域范围;如果超过了预定的区域范围,则触发了显示终端运行的应用程序的操作。Detecting whether moving and displaying the preview picture according to the dragging operation exceeds a predetermined area range; if it exceeds the predetermined area range, an operation of an application program running on the display terminal is triggered.或者,or,检测按照所述拖动操作移动显示所述预览图片是否达到了显示屏幕的预定区域,如果达到了显示屏幕的预定区域,则触发了显示终端运行的应用程序的操作;Detecting whether the preview image has reached a predetermined area of the display screen according to the dragging operation, and if it reaches the predetermined area of the display screen, the operation of the application program running on the display terminal is triggered;或者,or,接收到用户切换显示终端运行的应用程序的操作的指令。An instruction to switch the operation of the application program running on the display terminal by the user is received.6.根据权利要求4所述的方法,其特征在于,所述显示终端上运行的应用程序的应用显示页面包括:6. The method according to claim 4, wherein the application display page of the application running on the display terminal comprises:对终端上运行的应用程序的类型进行检测,显示终端上运行的应用程序中满足预定类型条件的应用程序的应用显示页面。The type of the application program running on the terminal is detected, and the application display page of the application program meeting the predetermined type condition among the application programs running on the terminal is displayed.7.根据权利要求4所述的方法,其特征在于,所述基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作包括:7. The method according to claim 4, characterized in that, the application display page and the preview image based on the display application, and realizing the sharing operation of the screenshot image comprises:检测用户是否将所述预览图片拖动至应用显示页面中的目标应用程序页面;Detecting whether the user drags the preview image to the target application page in the application display page;如果用户将所述预览图片拖动至所述目标应用程序页面,则打开显示所述目标应用程序页面;If the user drags the preview picture to the target application page, then open and display the target application page;检测用户是否将所述预览图片拖动至所述目标应用程序页面的目标位置处;Detecting whether the user drags the preview image to the target position of the target application page;如果检测到用户将所述预览图片拖动至所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。If it is detected that the user drags the preview picture to the target position of the target application program page, a sharing operation is performed on the screenshot picture.8.根据权利要求1所述的方法,其特征在于,所述如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作,包括:8. The method according to claim 1, wherein if it is detected that the user has performed a drag operation on the preview picture, then dragging the preview picture according to the drag operation to implement the Screenshots for sharing, including:检测用户是否切换显示了目标应用程序页面;Detect whether the user switches to display the target application page;当前运行显示了目标应用程序页面时,检测用户是否对显示的所述预览图片进行了拖动操作,When the target application page is displayed during the current operation, it is detected whether the user has performed a drag operation on the displayed preview image,如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作移动显示所述预览图片;If it is detected that the user has performed a drag operation on the preview picture, moving and displaying the preview picture according to the drag operation;如果检测到所述预览图片被移动到了所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。If it is detected that the preview picture has been moved to the target position of the target application program page, a sharing operation is performed on the screenshot picture.9.根据权利要求7或8所述的方法,其特征在于,所述目标应用程序包括:通讯类应用程序或文本编辑应用程序。9. The method according to claim 7 or 8, wherein the target application program comprises: a communication application program or a text editing application program.10.根据权利要求9所述的方法,其特征在于,所述对所述截屏图片进行分享操作:当所述目标应用程序是文本编辑应用程序时,将所述截屏图片插入到文本编辑页面的目标位置处;当所述目标应用程序是通讯类应用程序时,将所述截屏图片发送给通讯类应用程序中的联系人。10. The method according to claim 9, wherein the sharing operation of the screenshot is: when the target application is a text editing application, inserting the screenshot into the text editing page At the target location; when the target application program is a communication application program, sending the screenshot to a contact in the communication application program.11.一种内容分享的装置,其特征在于,所述装置包括:11. A content sharing device, characterized in that the device comprises:截屏操作模块,被配置为检测到截屏操作的指令时,截取当前显示页面,生成当前显示页面对应的截屏图片;The screenshot operation module is configured to intercept the current display page and generate a screenshot corresponding to the current display page when an instruction of the screenshot operation is detected;图片生成模块,被配置为生成所述截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;The image generation module is configured to generate a preview image corresponding to the screenshot image, and display the preview image at a predetermined position on the display screen;内容分享模块,被配置为如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。The content sharing module is configured to drag the preview image according to the drag operation if it is detected that the user has performed a drag operation on the preview image, so as to realize the operation of sharing the screenshot image.12.根据权利要求11所述的装置,其特征在于,所述图片生成模块,被配置为预定时长内在显示屏幕的预定位置处显示所述预览图片。如果在预定时长内,无针对所述预览图片的操作,预定时长结束后,则不再显示所述预览图片。12. The device according to claim 11, wherein the picture generation module is configured to display the preview picture at a predetermined position on the display screen within a predetermined time period. If there is no operation on the preview picture within the predetermined time period, the preview picture will no longer be displayed after the predetermined time period ends.13.根据权利要求11或12所述的装置,其特征在于,所述图片生成模块,被配置为在显示屏幕的右上角的预定区域显示所述预览图片;或者,在显示屏幕的左上角的预定区域显示所述预览图片。13. The device according to claim 11 or 12, wherein the picture generating module is configured to display the preview picture in a predetermined area in the upper right corner of the display screen; or, in the upper left corner of the display screen The preview picture is displayed in a predetermined area.14.根据权利要求11所述的装置,其特征在于,所述内容分享模块,包括:14. The device according to claim 11, wherein the content sharing module comprises:第一指令处理子模块,被配置为如果检测到用户对显示的所述预览图片的拖动操作,按照所述拖动操作移动显示所述预览图片;The first instruction processing sub-module is configured to move and display the preview picture according to the drag operation if the user's drag operation on the displayed preview picture is detected;第一检测子模块,被配置为检测是否触发了显示终端运行的应用程序的操作;The first detection submodule is configured to detect whether the operation of the application program running on the display terminal is triggered;显示子模块,被配置为如果触发了显示终端运行的应用程序的操作,显示终端上运行的应用程序的应用显示页面;The display submodule is configured to display an application display page of the application running on the terminal if the operation of displaying the application running on the terminal is triggered;第一内容分享子模块,被配置为基于显示的应用程序的应用显示页面及所述预览图片,实现对所述截屏图片的分享操作。The first content sharing sub-module is configured to realize the sharing operation of the screenshot based on the application display page of the displayed application program and the preview image.15.根据权利要求14所述的装置,其特征在于,所述第一检测子模块,包括:15. The device according to claim 14, wherein the first detection submodule comprises:第一单元,被配置为检测按照所述拖动操作移动显示所述预览图片是否超过了预定的区域范围;如果超过了预定的区域范围,则触发了显示终端运行的应用程序的操作。The first unit is configured to detect whether moving and displaying the preview picture according to the dragging operation exceeds a predetermined area range; if it exceeds the predetermined area range, triggering the operation of the application program running on the display terminal.或者,or,第二单元,被配置为检测按照所述拖动操作移动显示所述预览图片是否达到了显示屏幕的预定区域,如果达到了显示屏幕的预定区域,则触发了显示终端运行的应用程序的操作;The second unit is configured to detect whether moving and displaying the preview picture according to the dragging operation has reached a predetermined area of the display screen, and if the predetermined area of the display screen has been reached, the operation of the application program running on the display terminal is triggered;或者,or,第三单元,被配置为接收到用户切换显示终端运行的应用程序的操作的指令。The third unit is configured to receive an instruction from the user to switch the operation of the application program running on the display terminal.16.根据权利要求14所述的装置,其特征在于,所述显示子模块,被配置为对终端上运行的应用程序的类型进行检测,显示终端上运行的应用程序中满足预定类型条件的应用程序的应用显示页面。16. The device according to claim 14, wherein the display submodule is configured to detect the type of the application program running on the terminal, and display the application program that meets the predetermined type condition among the application programs running on the terminal The application display page of the program.17.根据权利要求14所述的装置,其特征在于,所述第一内容分享子模块包括:17. The device according to claim 14, wherein the first content sharing submodule comprises:检测单元,被配置为检测用户是否将所述预览图片拖动至应用显示页面中的目标应用程序页面;The detection unit is configured to detect whether the user drags the preview image to a target application page in the application display page;显示单元,被配置为如果用户将所述预览图片拖动至所述目标应用程序页面,则打开显示所述目标应用程序页面;a display unit configured to open and display the target application page if the user drags the preview image to the target application page;分享单元,被配置为检测用户是否将所述预览图片拖动至所述目标应用程序页面的目标位置处,如果检测到用户将所述预览图片拖动至所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。A sharing unit configured to detect whether the user drags the preview picture to the target position of the target application page, if it is detected that the user drags the preview picture to the target position of the target application page , to perform a sharing operation on the screenshot.18.根据权利要求11所述的装置,其特征在于,所述内容分享模块包括:18. The device according to claim 11, wherein the content sharing module comprises:第二检测子模块,被配置为检测用户是否切换运行显示了目标应用程序页面;The second detection submodule is configured to detect whether the user switches to run and displays the target application page;第三检测子模块,被配置为当前运行显示了目标应用程序页面时,检测用户是否对显示的所述预览图片进行了拖动操作,The third detection submodule is configured to detect whether the user has performed a drag operation on the displayed preview image when the target application page is currently running and displayed,第二指令处理子模块,被配置为如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作移动显示所述预览图片;The second instruction processing submodule is configured to move and display the preview picture according to the drag operation if it is detected that the user has performed a drag operation on the preview picture;第二内容分享子模块,被配置为如果检测到所述预览图片被移动到了所述目标应用程序页面的目标位置处,对所述截屏图片进行分享操作。The second content sharing sub-module is configured to perform a sharing operation on the screenshot if it is detected that the preview picture has been moved to the target position of the target application page.19.根据权利要求14或18所述的装置,其特征在于,目标应用程序包括:通讯类应用程序或文本编辑应用程序。19. The device according to claim 14 or 18, wherein the target application program comprises: a communication application program or a text editing application program.20.根据权利要求19所述的装置,其特征在于,所述第一内容分享子模块或者所述第二内容分享子模块,被配置为当所述目标应用程序是文本编辑应用程序时,将所述截屏图片插入到文本编辑页面的目标位置处;当所述目标应用程序是通讯类应用程序时,将所述截屏图片发送给通讯类应用程序中的联系人。20. The device according to claim 19, wherein the first content sharing submodule or the second content sharing submodule is configured to, when the target application program is a text editing application program, The screenshot is inserted into the target position of the text editing page; when the target application is a communication application, the screenshot is sent to a contact in the communication application.21.一种内容分享的装置,其特征在于,所述装置包括:21. A content sharing device, characterized in that the device comprises:处理器;processor;用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions of the processor;其中,所述处理器被配置为:Wherein, the processor is configured as:检测到截屏操作的指令时,截取当前显示页面,生成当前显示页面对应的截屏图片;When an instruction for a screenshot operation is detected, the currently displayed page is intercepted, and a screenshot image corresponding to the currently displayed page is generated;生成所述截屏图片对应的预览图片,在显示屏幕的预定位置处显示所述预览图片;Generate a preview picture corresponding to the screenshot, and display the preview picture at a predetermined position on the display screen;如果检测到用户对所述预览图片进行了拖动操作,则按照所述拖动操作拖动所述预览图片,实现对所述截屏图片进行分享的操作。If it is detected that the user has performed a drag operation on the preview picture, the preview picture is dragged according to the drag operation to realize the operation of sharing the screenshot.
CN201610867412.4A2016-09-292016-09-29Content sharing method and device and terminalActiveCN106527883B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610867412.4ACN106527883B (en)2016-09-292016-09-29Content sharing method and device and terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610867412.4ACN106527883B (en)2016-09-292016-09-29Content sharing method and device and terminal

Publications (2)

Publication NumberPublication Date
CN106527883Atrue CN106527883A (en)2017-03-22
CN106527883B CN106527883B (en)2020-03-17

Family

ID=58344627

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610867412.4AActiveCN106527883B (en)2016-09-292016-09-29Content sharing method and device and terminal

Country Status (1)

CountryLink
CN (1)CN106527883B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107092432A (en)*2017-03-092017-08-25珠海市魅族科技有限公司Video screenshotss treating method and apparatus
CN107592416A (en)*2017-08-312018-01-16努比亚技术有限公司Method for sending voice message, terminal and computer-readable recording medium
CN107885443A (en)*2017-09-222018-04-06阿里巴巴集团控股有限公司A kind of method and device of information processing
CN108174022A (en)*2017-12-122018-06-15上海爱优威软件开发有限公司A kind of quick sending method of sectional drawing and terminal device
CN108616443A (en)*2018-03-302018-10-02北京三快在线科技有限公司Associated person information methods of exhibiting and device
CN110109605A (en)*2019-04-292019-08-09努比亚技术有限公司A kind of images share method, equipment and computer readable storage medium
CN110213440A (en)*2019-05-272019-09-06维沃移动通信有限公司A kind of images share method and terminal
CN111290675A (en)*2020-03-022020-06-16Oppo广东移动通信有限公司 Screenshot picture sharing method, device, terminal and storage medium
CN108829336B (en)*2018-06-292021-07-16深圳市理邦精密仪器股份有限公司Waveform moving method, apparatus and computer readable storage medium
CN113419649A (en)*2021-05-312021-09-21广州三星通信技术研究有限公司Method for operating electronic device and device thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103279277A (en)*2013-05-082013-09-04广东欧珀移动通信有限公司 Method and system for sending screenshots of mobile terminals
CN104125508A (en)*2013-04-252014-10-29华为技术有限公司Video sharing method and terminal
CN104461474A (en)*2013-09-122015-03-25北京三星通信技术研究有限公司 Screen capture method and screen capture device for mobile terminal and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104125508A (en)*2013-04-252014-10-29华为技术有限公司Video sharing method and terminal
CN103279277A (en)*2013-05-082013-09-04广东欧珀移动通信有限公司 Method and system for sending screenshots of mobile terminals
CN104461474A (en)*2013-09-122015-03-25北京三星通信技术研究有限公司 Screen capture method and screen capture device for mobile terminal and mobile terminal

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107092432A (en)*2017-03-092017-08-25珠海市魅族科技有限公司Video screenshotss treating method and apparatus
CN107592416A (en)*2017-08-312018-01-16努比亚技术有限公司Method for sending voice message, terminal and computer-readable recording medium
CN107885443B (en)*2017-09-222021-02-19创新先进技术有限公司Information processing method and device
CN107885443A (en)*2017-09-222018-04-06阿里巴巴集团控股有限公司A kind of method and device of information processing
CN108174022A (en)*2017-12-122018-06-15上海爱优威软件开发有限公司A kind of quick sending method of sectional drawing and terminal device
CN108616443A (en)*2018-03-302018-10-02北京三快在线科技有限公司Associated person information methods of exhibiting and device
CN108829336B (en)*2018-06-292021-07-16深圳市理邦精密仪器股份有限公司Waveform moving method, apparatus and computer readable storage medium
CN110109605A (en)*2019-04-292019-08-09努比亚技术有限公司A kind of images share method, equipment and computer readable storage medium
CN110109605B (en)*2019-04-292021-10-29努比亚技术有限公司Image sharing method and device and computer readable storage medium
CN110213440A (en)*2019-05-272019-09-06维沃移动通信有限公司A kind of images share method and terminal
CN110213440B (en)*2019-05-272021-12-28维沃移动通信有限公司Image sharing method and terminal
CN111290675A (en)*2020-03-022020-06-16Oppo广东移动通信有限公司 Screenshot picture sharing method, device, terminal and storage medium
WO2021175052A1 (en)*2020-03-022021-09-10Oppo广东移动通信有限公司Screenshot image sharing method and device, terminal and storage medium
CN111290675B (en)*2020-03-022023-02-17Oppo广东移动通信有限公司 Screen capture image sharing method, device, terminal and storage medium
CN113419649A (en)*2021-05-312021-09-21广州三星通信技术研究有限公司Method for operating electronic device and device thereof

Also Published As

Publication numberPublication date
CN106527883B (en)2020-03-17

Similar Documents

PublicationPublication DateTitle
CN106502527A (en)Method, device and terminal that a kind of content is shared
CN106527883B (en)Content sharing method and device and terminal
CN106489126A (en)The method and device that a kind of content is shared
CN106527882A (en)Content sharing method, device and terminal
CN106489129A (en)The method and device that a kind of content is shared
CN108509232A (en)Screen recording method, device and computer readable storage medium
CN106537319A (en) Split-screen display method and device
CN107145800A (en) Privacy information protection method and device, terminal and storage medium
CN106970754A (en)The method and device of screenshotss processing
CN106775202B (en)Information transmission method and device
CN107357505A (en)The method, apparatus and computer-readable recording medium of screenshot capture
CN105786507B (en)Display interface switching method and device
CN107908351A (en)Display methods, device and the storage medium of application interface
CN106598393A (en)Split-screen display method and device
CN105739857A (en)Mobile terminal control method and apparatus
CN105159672A (en)Remote assistance method and client
CN106354504B (en)Message display method and device
CN106919334A (en)Application program access method and device
CN108984098B (en)Information display control method and device based on social software
CN106130873A (en)Information processing method and device
CN112181265B (en) A touch signal processing method, device and medium
CN106777160A (en)Information deletion method and device
CN106385470A (en) Information push method and device
CN106406659A (en)Double-open application establishing method and device
CN111538450A (en) Theme background display method, device and storage medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp