CN114327706A - Information sharing method, apparatus, electronic device and readable storage medium - Google Patents
- ️Tue Apr 12 2022
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的信息共享方法进行详细地说明。The information sharing method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
本实施例提供一种信息共享方法,应用于第一信息共享装置,如图1所示,该信息共享方法包括以下步骤301和步骤302:This embodiment provides an information sharing method, which is applied to a first information sharing apparatus. As shown in FIG. 1 , the information sharing method includes the following steps 301 and 302:
步骤301:第一信息共享装置显示第一聊天对象的第一聊天程序界面。Step 301: The first information sharing apparatus displays a first chat program interface of the first chat object.
在本申请实施例中,上述第一聊天对象包括以下至少一项:除第一信息共享装置的用户以外的其他用户在信息共享装置中的聊天账号对应的聊天对象,第一信息共享装置的用户的聊天账号对应的聊天对象。In the embodiment of the present application, the above-mentioned first chat object includes at least one of the following: chat objects corresponding to chat accounts of other users in the information sharing device except the user of the first information sharing device, a user of the first information sharing device The chat object corresponding to the chat account of .
在本申请实施例中,上述第一聊天对象可以包括一个对象,也可以包括多个对象,例如,群聊会话中的多个聊天对象,本申请实施例对此不作限定。In this embodiment of the present application, the above-mentioned first chat object may include one object, or may include multiple objects, for example, multiple chat objects in a group chat session, which is not limited in this embodiment of the present application.
在本申请实施例中,上述第一聊天程序界面可以为第一信息共享装置的用户与其他用户在包含聊天功能的应用中对应的聊天界面,例如,与第二信息共享装置的用户在包含聊天功能的应用中对应的聊天界面。In the embodiment of the present application, the above-mentioned first chat program interface may be a chat interface corresponding to a user of the first information sharing device and other users in an application including a chat function. The corresponding chat interface in the application of the function.
步骤302:第一信息共享装置在上述第一聊天程序界面中的第一区域,显示第一窗口。Step 302: The first information sharing apparatus displays a first window in the first area of the above-mentioned first chat program interface.
在本申请实施例中,上述第一窗口用于显示第一信息。In this embodiment of the present application, the above-mentioned first window is used to display the first information.
在本申请实施例中,上述第一聊天对象使用的上述第一信息共享装置运行第一程序,上述第一程序的程序界面包括上述第一信息,上述第一区域为上述第一聊天对象对应的区域。In the embodiment of the present application, the first information sharing device used by the first chat object runs a first program, the program interface of the first program includes the first information, and the first area corresponds to the first chat object. area.
示例性地,上述第一信息为第一信息共享装置中,除第一聊天程序界面对应的应用以外,其他正在实时运行的应用的界面信息,也即第一程序正在实时运行的应用的界面信息。Exemplarily, the above-mentioned first information is the interface information of other applications that are running in real time except the application corresponding to the interface of the first chat program in the first information sharing device, that is, the interface information of the application that the first program is running in real time. .
在一种示例中,上述第一信息可以为:包含聊天功能的应用中包括可以分享的内容。例如,视频内容,音频内容,文件内容,地理信息内容等。可以理解的是,上述分享内容的方式可以为通过网络连接的方式分享。相对应的,第一应用可以为,视频应用,音频应用,文件应用,地理信息应用。In an example, the above-mentioned first information may be: an application including a chat function includes content that can be shared. For example, video content, audio content, file content, geographic information content, etc. It can be understood that, the above-mentioned manner of sharing the content may be sharing through a network connection. Correspondingly, the first application may be a video application, an audio application, a file application, and a geographic information application.
在本申请实施例中,上述第一应用的界面信息是指:第一应用在电子设备的后台运行时,实时运行过程对应的画面内容。例如,当第一应用为视频应用时,上述第一信息可以为:电子设备切换至聊天应用的会话界面后,自电子设备切换为视频应用的时刻之后的画面内容。In the embodiment of the present application, the interface information of the first application refers to the screen content corresponding to the real-time running process of the first application when the first application runs in the background of the electronic device. For example, when the first application is a video application, the above-mentioned first information may be: after the electronic device switches to the conversation interface of the chat application, the screen content after the time when the electronic device switches to the video application.
在本申请实施例中,上述第一区域可以为第一聊天程序界面中不遮挡信息内容的区域。例如,第一聊天程序界面中第一聊天对象的账号标识附近不遮挡账号标识以及相关信息的区域。In this embodiment of the present application, the above-mentioned first area may be an area in the interface of the first chat program that does not block the information content. For example, an area near the account identifier of the first chat object in the first chat program interface does not block the account identifier and related information.
在本申请实施例中,上述第一区域在第一聊天会话界面中可以包括一个区域,也可以包括多个区域,本申请实施例对此不作限定。In this embodiment of the present application, the above-mentioned first area in the first chat session interface may include one area, or may include multiple areas, which is not limited in this embodiment of the present application.
在本申请实施例中,上述第一区域在上述第一聊天会话界面中的显示位置可以为自定义的,也可以为第一信息共享装置预设的。In the embodiment of the present application, the display position of the first area in the first chat session interface may be user-defined, or may be preset by the first information sharing apparatus.
在一种示例中,当上述第一区域的显示位置为第一信息共享装置预设的情况下,该第一区域可以设置在该第一区域对应的第一聊天账号的账号标识的预定范围内。其中,上述预设范围可以为第一信息共享装置预设的,可以为用户自定义的,本申请对此不作限定。In an example, when the display position of the first area is preset by the first information sharing device, the first area may be set within a predetermined range of the account identifier of the first chat account corresponding to the first area . Wherein, the above-mentioned preset range may be preset by the first information sharing apparatus, and may be user-defined, which is not limited in this application.
在本申请实施例中,上述第一信息可以为一个应用对应的信息内容,也可以为多个应用对应的信息内容,本申请实施例对此不作限定。In this embodiment of the present application, the foregoing first information may be information content corresponding to one application, or may be information content corresponding to multiple applications, which is not limited in this embodiment of the present application.
在本申请实施例中,上述第一信息共享装置可以对目标应用的实时运行内容对应的显示画面进行缩放,显示在第一区域的第一窗口中。In the embodiment of the present application, the above-mentioned first information sharing apparatus may zoom the display screen corresponding to the real-time running content of the target application, and display it in the first window of the first area.
示例性地,上述电子设备对第一应用的实时运行内容对应的显示画面进行缩放的方式可以为等比例缩放,也可以进行非等比例缩放,本申请实施例对此不作限定。Exemplarily, the manner in which the electronic device zooms the display screen corresponding to the real-time running content of the first application may be proportional scaling or non-proportional scaling, which is not limited in this embodiment of the present application.
需要说明的是,上述第一信息共享装置对第一应用的实时运行内容对应的显示画面进行缩放后,上述显示画面将与第一窗口的尺寸相同。It should be noted that after the first information sharing apparatus zooms the display screen corresponding to the real-time running content of the first application, the size of the display screen will be the same as that of the first window.
在本申请实施例中,上述第一区域中可以包括一个窗口,也可以包括多个窗口,参照下文。In this embodiment of the present application, the above-mentioned first area may include one window, or may include multiple windows, see below.
示例性地,每个窗口中显示一个信息内容,即显示一个实时运行的应用对应的信息内容。Exemplarily, one piece of information content is displayed in each window, that is, information content corresponding to an application running in real time is displayed.
在本申请实施例中,第一信息共享装置在上述聊天程序界面的悬浮窗口中显示上述第一信息。In the embodiment of the present application, the first information sharing apparatus displays the above-mentioned first information in the floating window of the above-mentioned chat program interface.
示例性地,第一信息可以包括多个信息内容,一个信息内容对应一个悬浮窗口,一个聊天对象的账号对应至少一个信息内容,上述悬浮窗口显示在上述聊天程序界面的预定范围内。Exemplarily, the first information may include a plurality of information contents, one information content corresponds to a floating window, an account of a chat object corresponds to at least one information content, and the floating window is displayed within a predetermined range of the chat program interface.
在一种示例中,当一个账号对应一个信息内容时,该信息内容显示在一个悬浮窗口中;当一个账号对应N个信息内容时,该N个信息内容显示在N个悬浮窗口中,例如,当一个账号对应3个应用,上述3个应用对应3个信息内容,则上述3个信息内容显示在3个悬浮窗口中。如图2的(a)所示,在包括聊天对象1(账号1)和聊天对象2(账号2)的聊天会话界面31中,当聊天对象1对应1个应用的信息内容时,该信息内容32显示在窗口34中;如图2的(b)所示,当聊天对象1对应2个应用的信息内容时,应用1的信息内容32显示在窗口34中,应用2的信息内容36显示在窗口37中。In an example, when an account corresponds to one information content, the information content is displayed in a floating window; when an account corresponds to N information contents, the N information contents are displayed in N floating windows, for example, When one account corresponds to three applications, and the above three applications correspond to three information contents, the above three information contents are displayed in three floating windows. As shown in (a) of FIG. 2, in the chat session interface 31 including chat object 1 (account 1) and chat object 2 (account 2), when chat object 1 corresponds to the information content of one application, the information content 32 is displayed in the window 34; as shown in (b) of Figure 2, when the chat object 1 corresponds to the information content of 2 applications, the information content 32 of the application 1 is displayed in the window 34, and the information content 36 of the application 2 is displayed in the window 37.
示例性地,上述悬浮窗口可以为可移动的窗口。其中,上述悬浮窗口可以为自动移动的窗口,也可以为能够手动移动的窗口。Exemplarily, the above floating window may be a movable window. Wherein, the above-mentioned floating window may be a window that is automatically moved, or may be a window that can be moved manually.
进一步地,上述悬浮窗口在聊天程序界面中,具备能够自动跳转至与其对应的第一聊天对象的账号的最新会话的预设范围内。例如,当聊天程序界面为包括账号1与账号2的会话界面时,假设第一信息共享装置的账号为账号1,且账号1对应的第一应用为视频应用,则在账号1的用户和账号2的用户聊天的过程中,账号1的视频应用中的实时运行内容始终显示在悬浮窗口中,且悬浮窗口始终位于账号1对应的最新会话消息的预定范围内。Further, in the chat program interface, the above-mentioned floating window has a preset range that can automatically jump to the latest conversation of the account of the first chat object corresponding to it. For example, when the chat program interface is a conversation interface including account 1 and account 2, assuming that the account of the first information sharing device is account 1, and the first application corresponding to account 1 is a video application, the user and account of account 1 During the chatting process of the user of account 1, the real-time running content in the video application of account 1 is always displayed in the floating window, and the floating window is always located within the predetermined range of the latest conversation message corresponding to account 1.
在一种示例中,上述悬浮窗口可以显示在上述第一聊天对象对应的账号标识(例如头像)的预定范围内。In an example, the above-mentioned floating window may be displayed within a predetermined range of an account identifier (eg, an avatar) corresponding to the above-mentioned first chat object.
可以理解的是,在第一信息共享装置在后台运行第一应用的情况下,可以通过通信技术将后台运行内容的数据同步开放给其他信息共享装置,例如,第二共享装置(详见下文)。当其他信息共享装置与第一信息共享装置建立会话聊天类联系时,可以自动获取上述后台运行第一应用的数据信息,也可以由第一信息共享装置将上述后台运行第一应用的数据信息自动推送给其他信息共享装置,以便于其他信息共享装置在会话界面中也显示第一窗口,以显示第一应用对应的第一信息。It can be understood that, in the case where the first information sharing device runs the first application in the background, the data of the content running in the background can be synchronously opened to other information sharing devices, for example, the second sharing device (see below for details) through communication technology. . When another information sharing device establishes a conversational chat type connection with the first information sharing device, the data information of the first application running in the background can be automatically obtained, or the data information of the first application running in the background can be automatically obtained by the first information sharing device. It is pushed to other information sharing apparatuses, so that other information sharing apparatuses also display the first window in the session interface to display the first information corresponding to the first application.
在本申请实施例中,第一信息共享装置显示第一聊天对象的第一聊天程序界面,在上述第一聊天程序界面中的第一区域显示第一窗口,该第一窗口用于显示第一信息,上述第一聊天对象使用的上述第一信息共享装置运行第一程序,上述第一程序的程序界面包括上述第一信息,上述第一区域为上述第一聊天对象对应的区域。由此,在第一聊天程序界面中会话的同时查看后台实时运行的程序中的信息,无需切换至后台运行程序,简化了用户操作,提高了用户使用电子设备的效率。In the embodiment of the present application, the first information sharing device displays the first chat program interface of the first chat object, and displays the first window in the first area of the above-mentioned first chat program interface, and the first window is used to display the first chat program interface. information, the first information sharing device used by the first chat object runs a first program, the program interface of the first program includes the first information, and the first area is an area corresponding to the first chat object. Therefore, the information in the program running in the background in real time is viewed while chatting in the first chat program interface, and there is no need to switch to the program running in the background, which simplifies the user's operation and improves the efficiency of the user in using the electronic device.
可选地,在本申请实施例中,如图3所示,上述步骤302之后,本申请实施例提供的信息共享方法还包括如下步骤303至步骤305:Optionally, in the embodiment of the present application, as shown in FIG. 3 , after the above step 302, the information sharing method provided by the embodiment of the present application further includes the following steps 303 to 305:
步骤303:第一信息共享装置接收用户对上述第一窗口的第一输入。Step 303: The first information sharing apparatus receives the first input from the user on the above-mentioned first window.
步骤304:响应于上述第一输入,第一信息共享装置向第一目标对象发送第一消息。Step 304: In response to the above-mentioned first input, the first information sharing apparatus sends a first message to the first target object.
步骤305:第一信息共享装置在上述第一聊天程序界面中的第二区域,显示第二窗口。Step 305: The first information sharing apparatus displays a second window in the second area of the above-mentioned first chat program interface.
示例性地,上述第一消息用于指示第二信息共享装置显示上述第一窗口的第一信息。Exemplarily, the first message is used to instruct the second information sharing apparatus to display the first information of the first window.
示例性地,第二窗口用于显示上述第一信息。Exemplarily, the second window is used to display the above-mentioned first information.
示例性地,上述第一目标对象包括以下至少一项:第二信息共享装置、服务器;上述第二区域为上述第一聊天程序界面中的第二聊天对象对应的区域。Exemplarily, the first target object includes at least one of the following: a second information sharing device and a server; and the second area is an area corresponding to the second chat object in the first chat program interface.
示例性地,上述第一输入可以为触控输入,例如,点击输入、拖动输入;还可以为语音控制的输入,还可以为特殊手势的输入,本申请实施例对此不作限定。Exemplarily, the above-mentioned first input may be touch input, for example, click input, drag input; may also be voice control input, or may be input of special gestures, which is not limited in this embodiment of the present application.
示例性地,上述第一输入可以用于向第二信息共享装置分享第一信息共享装置的第一信息。Exemplarily, the above-mentioned first input may be used to share the first information of the first information sharing device with the second information sharing device.
示例性地,上述第二区域为第二信息共享装置对应的聊天账号标识在聊天会话界面中预定范围内的区域。Exemplarily, the above-mentioned second area is an area within a predetermined range in the chat session interface of the chat account identifier corresponding to the second information sharing apparatus.
在一种示例中,上述第二区域一般位于第二信息共享装置对应的聊天账号标识(例如头像)附近。In an example, the above-mentioned second area is generally located near a chat account identifier (eg, an avatar) corresponding to the second information sharing apparatus.
示例性地,上述第二区域可以为第一聊天程序界面中不遮挡信息内容的区域。Exemplarily, the above-mentioned second area may be an area in the interface of the first chat program that does not block the information content.
示例性地,上述第二区域在第一聊天会话界面中可以包括一个区域,也可以包括多个区域,本申请实施例对此不作限定。Exemplarily, the above-mentioned second area may include one area or multiple areas in the first chat session interface, which is not limited in this embodiment of the present application.
示例性地,上述第一区域在上述第一聊天会话界面中的显示位置可以为自定义的,也可以为电子设备预设的。Exemplarily, the display position of the above-mentioned first area in the above-mentioned first chat session interface may be user-defined, or may be preset by the electronic device.
示例性地,上述第二窗口的描述可以参照前述第一窗口的描述,此处不再赘述。Exemplarily, for the description of the foregoing second window, reference may be made to the foregoing description of the first window, which will not be repeated here.
如此,第一信息共享装置对应聊天账号的用户以及第一信息共享装置对应的聊天账号以外的用户可以直接查看到第一信息共享装置对应聊天账号的用户正在查看的内容,从而,无需第一信息共享装置的用户向会话界面中的其他用户进行切换显示界面的分享操作,即可直接使得其他用户查看到能够分享的内容,简化了第一信息共享装置用户的操作步骤,提高了用户使用电子设备的效率。In this way, the user of the chat account corresponding to the first information sharing device and the user other than the chat account corresponding to the first information sharing device can directly view the content being viewed by the user of the chat account corresponding to the first information sharing device, thus eliminating the need for the first information The user of the sharing device performs the sharing operation of switching the display interface to other users in the conversation interface, so that other users can directly view the content that can be shared, which simplifies the operation steps of the user of the first information sharing device and improves the user's use of electronic equipment. s efficiency.
可选地,在本申请实施例中,本申请实施例提供的信息共享方法还包括如下步骤306和步骤307:Optionally, in the embodiment of the present application, the information sharing method provided by the embodiment of the present application further includes the following steps 306 and 307:
步骤306:第一信息共享装置在上述第二区域显示第三窗口的情况下,接收用户对上述第三窗口的第二输入。Step 306: The first information sharing apparatus receives a second input from the user on the third window when the third window is displayed in the second area.
步骤307:响应于上述第二输入,第一信息共享装置在上述第一区域显示第四窗口,上述第四窗口用于显示上述第二信息。Step 307: In response to the second input, the first information sharing apparatus displays a fourth window in the first area, where the fourth window is used to display the second information.
示例性地,上述第三窗口用于显示第二程序的程序界面的第二信息,上述第二程序为上述第二聊天对象使用的第二信息共享装置运行的程序。Exemplarily, the third window is used to display the second information of the program interface of the second program, and the second program is a program executed by the second information sharing apparatus used by the second chat partner.
示例性地,第四窗口可以与第一窗口相同,例如,第四窗口用于替换第一窗口中显示的第一信息,也可以不同,例如,第四窗口为新增的显示窗口,与第一窗口并列显示。Exemplarily, the fourth window may be the same as the first window, for example, the fourth window is used to replace the first information displayed in the first window, or it may be different, for example, the fourth window is a newly added display window, which is the same as the first window. A window is displayed side by side.
示例性地,上述第二输入可以为触控输入,例如,点击输入、长按输入、双击输入等;还可以为语音输入,还可以为特殊手势的输入,本申请对此不作限定。Exemplarily, the second input may be touch input, such as tap input, long-press input, double-click input, etc.; may also be voice input, or may be input of special gestures, which is not limited in this application.
在一种示例中,上述第二输入可以为用于替换第一区域中的第一窗口显示的第二信息的输入。In one example, the above-mentioned second input may be an input for replacing the second information displayed in the first window in the first area.
示例1:如图4中的(a)所示,假设会话界面31为包括聊天对象1(即上述第一信息共享装置中登录的账号对应的聊天对象)和聊天对象2(即上述第二信息共享装置中登录的账号对应的聊天对象)的界面,其中,聊天对象1的电子设备在后台运行视频应用(即上述第一应用),聊天对象2的电子设备在后台运行地图应用(即上述第二应用),则电子设备在获取到上述聊天对象1的电子设备在后台运行视频应用以及聊天对象2的电子设备在后台运行地图应用的情况下,将在会话界面31中聊天对象1和聊天对象2对应的最新会话的预定范围内分别显示视频应用的运行内容32和地图应用的运行内容33,上述视频应用的运行内容32和地图应用的运行内容33分别显示在悬浮窗口34和悬浮窗口35中。Example 1: As shown in (a) of FIG. 4 , it is assumed that the conversation interface 31 includes chat object 1 (that is, the chat object corresponding to the account logged in the above-mentioned first information sharing device) and chat object 2 (that is, the above-mentioned second information). The interface of the chat object corresponding to the account logged in the sharing device), wherein the electronic device of the chat object 1 runs the video application (that is, the above-mentioned first application) in the background, and the electronic device of the chat object 2 runs the map application (that is, the above-mentioned first application) in the background. two applications), then the electronic device obtains that the electronic device of the chat object 1 runs the video application in the background and the electronic device of the chat object 2 runs the map application in the background, the chat object 1 and the chat object in the conversation interface 31 2 The running content 32 of the video application and the running content 33 of the map application are respectively displayed within the predetermined range of the corresponding latest session, and the running content 32 of the above-mentioned video application and the running content 33 of the map application are displayed in the floating window 34 and the floating window 35 respectively. .
接着,在电子设备接收到用户对悬浮窗口35(即上述第二区域的第三窗口)的拖动输入(即上述第二输入)后,如图4中的(b)所示,将替换悬浮窗口34(即上述第四窗口)中的运行内容32,替换为地图应用的运行内容33。Next, after the electronic device receives the user's drag input (ie, the second input) on the floating window 35 (ie, the third window in the second area), as shown in (b) of FIG. 4 , the floating window 35 will be replaced. The running content 32 in the window 34 (that is, the above-mentioned fourth window) is replaced with the running content 33 of the map application.
在另一种示例中,上述第二输入可以为用于在第一区域中增加显示第二信息的输入。In another example, the above-mentioned second input may be an input for additionally displaying second information in the first area.
示例2:如图5中的(a)所示,假设会话界面31为包括聊天对象2(即上述第二信息共享装置中登录的账号对应的聊天对象)的界面,其中,聊天对象2的电子设备在后台运行地图应用(即上述第二应用),则电子设备在获取到聊天对象2的电子设备在后台运行地图应用的情况下,将在会话界面31中聊天对象2对应的最新会话的预定范围内显示地图应用的运行内容41,地图应用的运行内容41显示在悬浮窗口42中。Example 2: As shown in (a) of FIG. 5 , it is assumed that the conversation interface 31 is an interface including chat object 2 (that is, the chat object corresponding to the account registered in the second information sharing device above), wherein the electronic The device runs the map application in the background (that is, the above-mentioned second application), then when the electronic device that obtains the chat object 2 runs the map application in the background, it will make a reservation of the latest session corresponding to the chat object 2 in the conversation interface 31. The running content 41 of the map application is displayed within the range, and the running content 41 of the map application is displayed in the floating window 42 .
接着,在电子设备接收到用户对悬浮窗口42(即上述第二区域的第三窗口)的拖动输入(即上述第二输入)后,如图5中的(b)所示,将触发电子设备在会话界面中增加显示悬浮窗口43(即上述第一区域的第四窗口),并在悬浮窗口43中显示地图应用的运行内容41。Next, after the electronic device receives the user's drag input (ie, the second input) on the floating window 42 (ie, the third window in the second area), as shown in (b) in FIG. 5 , the electronic device will be triggered. The device adds and displays a floating window 43 (ie, the fourth window in the above-mentioned first area) in the conversation interface, and displays the running content 41 of the map application in the floating window 43 .
如此,在不同账号的用户聊天的过程中,可以直接通过会话界面显示对方后台运行的目标应用,并直接在会话界面上通过一次性操作即可分享显示的内容。In this way, during the chat between users of different accounts, the target application running in the background of the other party can be displayed directly through the conversation interface, and the displayed content can be shared directly through a one-time operation on the conversation interface.
可选地,在本申请实施例中,本申请实施例提供的信息共享方法还包括如下步骤308:Optionally, in the embodiment of the present application, the information sharing method provided by the embodiment of the present application further includes the following step 308:
步骤308:在上述第一信息共享装置运行第三程序的情况下,第一信息共享装置在上述第一区域显示第五窗口。Step 308: When the first information sharing apparatus runs the third program, the first information sharing apparatus displays a fifth window in the first area.
示例性地,上述第五窗口用于显示上述第三程序的程序界面的第三信息。Exemplarily, the above-mentioned fifth window is used to display the third information of the program interface of the above-mentioned third program.
示例性地,上述第五窗口可以参照前述第一窗口的描述。Exemplarily, the foregoing fifth window may refer to the description of the foregoing first window.
示例性地,如前述内容所述,不同的窗口中显示后台中不同的实时运行的应用程序对应的运行画面的画面内容。Exemplarily, as described in the foregoing content, different windows display screen contents of running screens corresponding to different real-time running applications in the background.
如此,在聊天会话界面中,可以同时让用户查看后台不同的运行程序运行的实时内容,用户无需来回切换应用程序界面,由此可以简化用户操作,提高用户适用电子设备的效率。In this way, in the chat session interface, the user can simultaneously view the real-time content of different running programs in the background, and the user does not need to switch the application program interface back and forth, thereby simplifying the user operation and improving the efficiency of the user in applying the electronic device.
可选地,在本申请实施例中,上述步骤302之后,本申请实施例提供的信息共享方法还包括如下步骤309和步骤310:Optionally, in the embodiment of the present application, after the above step 302, the information sharing method provided in the embodiment of the present application further includes the following steps 309 and 310:
步骤309:第一信息共享装置接收用户对上述第一窗口的第三输入。Step 309: The first information sharing apparatus receives a third input from the user on the above-mentioned first window.
步骤310:响应于上述第三输入,第一信息共享装置执行目标处理。Step 310: In response to the above-mentioned third input, the first information sharing apparatus executes the target process.
示例性地,上述目标处理包括以下至少一项:更新上述第一窗口的位置;更新上述第一窗口的尺寸;取消显示上述第一窗口。Exemplarily, the above-mentioned target processing includes at least one of the following: updating the position of the above-mentioned first window; updating the size of the above-mentioned first window; and canceling the display of the above-mentioned first window.
示例性地,上述第三输入用于触发第一信息共享装置对上述第一窗口执行各类操作。Exemplarily, the third input is used to trigger the first information sharing apparatus to perform various operations on the first window.
示例性地,上述第三输入可以为触控输入,例如,点击输入等,还可以为语音输入,还可以为特殊手势的输入,本申请对此不作限定。Exemplarily, the above-mentioned third input may be touch input, for example, click input, etc., may also be voice input, or may be input of special gestures, which is not limited in this application.
进一步地,在第一信息共享装置未接收到用户对第一窗口的任何操作的情况下,直接退出当前的聊天会话界面,可以继续显示后台实时运行界面的内容。Further, when the first information sharing apparatus does not receive any operation on the first window by the user, it directly exits the current chat session interface, and can continue to display the content of the background real-time running interface.
示例性地,上述更新上述第一窗口的位置是指:将第一窗口移动至第一聊天会话界面的任意位置。Exemplarily, the above-mentioned updating the position of the first window refers to: moving the first window to any position on the first chat session interface.
示例性地,上述更新上述第一窗口的尺寸是指:改变第一窗口的尺寸信息,例如,对第一窗口进行缩小或者放大。Exemplarily, the above-mentioned updating the size of the first window refers to: changing the size information of the first window, for example, reducing or enlarging the first window.
示例性地,上述取消显示上述第一窗口是指:使得第一窗口不再在第一聊天会话界面中显示。Exemplarily, the above-mentioned canceling the display of the above-mentioned first window refers to: making the first window no longer displayed in the first chat session interface.
需要说明的是,上述取消显示上述第一窗口可以关闭第一窗口对应的后台应用,也可以不关闭第一窗口对应的后台应用,该取消显示上述第一窗口对第一窗口对应的后台应用的后续操作可以为用户自定义设置的,也可以为第一信息共享装置预设置的。It should be noted that, canceling the display of the first window may close the background application corresponding to the first window, or may not close the background application corresponding to the first window, the canceling the display of the first window to the background application corresponding to the first window. Subsequent operations may be user-defined settings, or may be preset by the first information sharing apparatus.
如此,第一信息共享装置可以对第一窗口进行各类操作,使得第一窗口按照用户的需求进行显示,方便用户的查看和使用,提高适用电子设备的效率。In this way, the first information sharing apparatus can perform various operations on the first window, so that the first window is displayed according to the needs of the user, which is convenient for the user to view and use, and improves the efficiency of applying electronic equipment.
本实施例还提供一种信息共享方法,应用于第二信息共享装置,如图6所示,该信息共享方法包括以下步骤401和步骤402:This embodiment also provides an information sharing method, which is applied to the second information sharing apparatus. As shown in FIG. 6 , the information sharing method includes the following steps 401 and 402:
步骤401:第二信息共享装置在第二聊天程序界面中显示第一聊天对象。Step 401: The second information sharing apparatus displays the first chat object in the second chat program interface.
步骤402:第二信息共享装置在上述第二聊天程序界面中的第三区域,显示第一窗口。Step 402: The second information sharing apparatus displays the first window in the third area of the above-mentioned second chat program interface.
在本申请实施例中,上述第一聊天对象使用的第一信息共享装置运行第一程序,上述第一程序的程序界面包括第一信息。In the embodiment of the present application, the first information sharing device used by the first chat object runs a first program, and the program interface of the first program includes the first information.
在本申请实施例中,上述第一窗口用于显示上述第一信息,上述第三区域为上述第一聊天对象对应的区域。In this embodiment of the present application, the first window is used to display the first information, and the third area is an area corresponding to the first chat object.
在本申请实施例中,上述第二聊天程序界面为第二信息共享装置中的聊天程序界面。In the embodiment of the present application, the above-mentioned second chat program interface is a chat program interface in the second information sharing device.
在本申请实施例中,上述第二聊天程序界面可以为第二信息共享装置的用户与其他用户在包含聊天功能的应用中对应的聊天界面,例如,与第一信息共享装置的用户在包含聊天功能的应用中对应的聊天界面。In the embodiment of the present application, the above-mentioned second chat program interface may be a chat interface corresponding to a user of the second information sharing device and other users in an application including a chat function. The corresponding chat interface in the application of the function.
在本申请实施例中,上述第三区域为第二聊天程序界面中的显示区域。具体的,上述第三区域的描述可以参照前述内容中对第一区域和第二区域的描述,此处不再赘述。In the embodiment of the present application, the above-mentioned third area is a display area in the interface of the second chat program. Specifically, for the description of the above-mentioned third area, reference may be made to the description of the first area and the second area in the foregoing content, which will not be repeated here.
示例性地,上述第一窗口、第一信息、第一程序可以参照前述内容中的描述,此处不再赘述。Exemplarily, for the above-mentioned first window, first information, and first program, reference may be made to the description in the foregoing content, and details are not repeated here.
在本申请实施例中,第二信息共享装置在第二聊天程序界面中显示第一聊天对象,第二信息共享装置在上述第二聊天程序界面中的第三区域,显示第一窗口,上述第一聊天对象使用的第一信息共享装置运行第一程序,上述第一程序的程序界面包括第一信息。如此,第二信息共享装置可以直接在第二聊天程序界面中查看到第一聊天对象的装置在后台运行的程序,从而无需第一信息共享装置的分享,即可查看第一聊天对象的装置在后台运行的程序,提高了用户使用电子设备的效率。In the embodiment of the present application, the second information sharing device displays the first chat object in the second chat program interface, the second information sharing device displays the first window in the third area in the second chat program interface, the above-mentioned first A first information sharing device used by a chat object runs a first program, and the program interface of the first program includes first information. In this way, the second information sharing device can directly view the program running in the background of the device of the first chat object in the second chat program interface, so that the device of the first chat object can be viewed without sharing by the first information sharing device. The program running in the background improves the efficiency of the user in using the electronic device.
可选地,在本申请实施例中,上述步骤402之后,本申请实施例提供的信息共享方法还包括如下步骤403和步骤404:Optionally, in the embodiment of the present application, after the above step 402, the information sharing method provided by the embodiment of the present application further includes the following steps 403 and 404:
步骤403:第二信息共享装置接收第二目标对象发送的第二消息。Step 403: The second information sharing apparatus receives the second message sent by the second target object.
步骤404:第二信息共享装置在上述第二聊天程序界面中的第四区域,显示第二窗口。Step 404: The second information sharing apparatus displays a second window in the fourth area of the above-mentioned second chat program interface.
示例性地,上述第二消息用于指示上述第二信息共享装置显示上述第一窗口的第一信息。Exemplarily, the second message is used to instruct the second information sharing apparatus to display the first information of the first window.
示例性地,上述第二窗口用于显示上述第一信息。Exemplarily, the above-mentioned second window is used to display the above-mentioned first information.
示例性地,上述第二目标对象包括以下至少一项:第一信息共享装置、服务器;上述第四区域为上述第二聊天程序界面中的第二聊天对象对应的区域。Exemplarily, the second target object includes at least one of the following: a first information sharing device and a server; and the fourth area is an area corresponding to the second chat object in the second chat program interface.
示例性地,上述第二窗口的描述可以参照前述描述,此处不再赘述。Exemplarily, for the description of the above-mentioned second window, reference may be made to the foregoing description, and details are not repeated here.
示例性地,上述第四区域为第二聊天程序界面中的显示区域。具体地,上述第四区域的描述可以参照前述内容中对第一区域和第二区域的描述,此处不再赘述。Exemplarily, the above-mentioned fourth area is a display area in the interface of the second chat program. Specifically, for the description of the above-mentioned fourth area, reference may be made to the description of the first area and the second area in the foregoing content, which will not be repeated here.
如此,无需第一信息共享装置的用户向会话界面中的其他用户进行切换显示界面的分享操作,即可直接使得其他用户查看到能够分享的内容,方便了第二信息共享装置的用户查看第一信息共享装置后台运行的内容,提高了第二信息共享装置的用户使用电子设备的效率。In this way, it is not necessary for the user of the first information sharing device to perform the sharing operation of switching the display interface to other users in the conversation interface, so that other users can directly view the content that can be shared, which facilitates the user of the second information sharing device to view the first information sharing device. The content running in the background of the information sharing device improves the efficiency of the user of the second information sharing device using the electronic device.
可选地,在本申请实施例中,本申请实施例提供的信息共享方法还包括如下步骤405:Optionally, in the embodiment of the present application, the information sharing method provided by the embodiment of the present application further includes the following step 405:
步骤405:第二信息共享装置在上述第一信息共享装置运行第三程序的情况下,在上述第三区域显示第五窗口。Step 405: The second information sharing apparatus displays a fifth window in the third area when the first information sharing apparatus runs the third program.
示例性地,上述第五窗口用于显示上述第三程序的程序界面的第三信息。Exemplarily, the above-mentioned fifth window is used to display the third information of the program interface of the above-mentioned third program.
示例性地,上述第五窗口可以参照前述描述,此处不再赘述。Exemplarily, the foregoing fifth window may refer to the foregoing description, which will not be repeated here.
如此,在聊天会话界面中,可以同时让用户查看后台不同的运行程序运行的实时内容,无需其他用户向第二信息共享装置的用户进行分享,由此可以简化用户操作,提高用户使用电子设备的效率。In this way, in the chat session interface, the user can simultaneously view the real-time content running by different running programs in the background, without the need for other users to share with the user of the second information sharing device, thereby simplifying the user operation and improving the user's ability to use electronic equipment. efficiency.
需要说明的是,本申请实施例提供的信息共享方法,执行主体可以为信息共享装置,或者该信息共享装置中的用于执行信息共享方法的控制模块。本申请实施例中以信息共享装置执行信息共享方法为例,说明本申请实施例提供的信息共享装置。It should be noted that, in the information sharing method provided by the embodiments of the present application, the executing subject may be an information sharing device, or a control module in the information sharing device for executing the information sharing method. In the embodiments of the present application, the information sharing device provided by the embodiments of the present application is described by taking the information sharing device executing the information sharing method as an example.
图7为实现本申请实施例提供的信息共享装置的可能的结构示意图。如图7所示,上述信息共享装置600包括:显示模块601;上述显示模块601,用于显示第一聊天对象的第一聊天程序界面;上述显示模块601,还用于在上述第一聊天程序界面中的第一区域,显示第一窗口,上述第一窗口用于显示第一信息;其中,上述第一聊天对象使用的上述第一信息共享装置运行第一程序,上述第一程序的程序界面包括上述第一信息,上述第一区域为上述第一聊天对象对应的区域。FIG. 7 is a schematic structural diagram of a possible structure for implementing the information sharing apparatus provided by the embodiment of the present application. As shown in FIG. 7, the above-mentioned information sharing apparatus 600 includes: a display module 601; the above-mentioned display module 601 is used to display the first chat program interface of the first chat object; the above-mentioned display module 601 is also used to display the first chat program interface in the above-mentioned first chat program The first area in the interface displays a first window, and the first window is used to display the first information; wherein, the first information sharing device used by the first chat object runs a first program, and the program interface of the first program It includes the above-mentioned first information, and the above-mentioned first area is an area corresponding to the above-mentioned first chat object.
本申请实施例提供的信息共享装置,信息共享装置显示第一聊天对象的第一聊天程序界面,在上述第一聊天程序界面中的第一区域显示第一窗口,该第一窗口用于显示第一信息,上述第一聊天对象使用的上述第一信息共享装置运行第一程序,上述第一程序的程序界面包括上述第一信息,上述第一区域为上述第一聊天对象对应的区域。由此,在第一聊天程序界面中会话的同时查看后台实时运行的程序中的信息,无需切换至后台运行程序,简化了用户操作,提高了用户使用电子设备的效率。In the information sharing device provided by the embodiment of the present application, the information sharing device displays a first chat program interface of a first chat object, and displays a first window in the first area of the above-mentioned first chat program interface, and the first window is used to display the first chat program interface. A message, the first information sharing device used by the first chat object runs a first program, the program interface of the first program includes the first information, and the first area is an area corresponding to the first chat object. Therefore, the information in the program running in the background in real time is viewed while chatting in the first chat program interface, and there is no need to switch to the program running in the background, which simplifies the user's operation and improves the efficiency of the user in using the electronic device.
可选地,在本申请实施例中,上述装置600还包括:接收模块602和发送模块603;上述接收模块601,用于接收用户对上述第一窗口的第一输入;上述发送模块603,用于响应于上述接收模块601接收的上述第一输入,向第一目标对象发送第一消息,上述第一消息用于指示第二信息共享装置显示上述第一窗口的第一信息;上述显示模块601,用于在上述第一聊天程序界面中的第二区域,显示第二窗口,上述第二窗口用于显示上述第一信息;其中,上述第一目标对象包括以下至少一项:第二信息共享装置、服务器;上述第二区域为上述第一聊天程序界面中的第二聊天对象对应的区域。Optionally, in this embodiment of the present application, the above-mentioned apparatus 600 further includes: a receiving module 602 and a sending module 603; the above-mentioned receiving module 601 is configured to receive the first input of the user on the above-mentioned first window; the above-mentioned sending module 603 is configured with In response to the above-mentioned first input received by the above-mentioned receiving module 601, a first message is sent to the first target object, and the above-mentioned first message is used to instruct the second information sharing device to display the above-mentioned first information of the above-mentioned first window; the above-mentioned display module 601 , used to display a second window in the second area of the first chat program interface, and the second window is used to display the first information; wherein, the first target object includes at least one of the following: a second information sharing A device and a server; the second area is an area corresponding to the second chat object in the first chat program interface.
可选地,在本申请实施例中,上述接收模块602,还用于在上述第二区域显示第三窗口的情况下,接收用户对上述第三窗口的第二输入;上述第三窗口用于显示第二程序的程序界面的第二信息,上述第二程序为上述第二聊天对象使用的第二信息共享装置运行的程序;上述显示模块601,还用于响应于上述接收模块接收的上述第二输入,在上述第一区域显示第四窗口,上述第四窗口用于显示上述第二信息。Optionally, in this embodiment of the present application, the receiving module 602 is further configured to receive a second input from the user on the third window when the third window is displayed in the second area; the third window is used for Display the second information of the program interface of the second program, where the second program is a program run by the second information sharing device used by the second chat object; the display module 601 is further configured to respond to the first information received by the receiving module. For the second input, a fourth window is displayed in the above-mentioned first area, and the above-mentioned fourth window is used to display the above-mentioned second information.
可选地,在本申请实施例中,上述显示模块601,还用于在上述第一信息共享装置运行第三程序的情况下,在上述第一区域显示第五窗口,上述第五窗口用于显示上述第三程序的程序界面的第三信息。Optionally, in this embodiment of the present application, the above-mentioned display module 601 is further configured to display a fifth window in the above-mentioned first area when the above-mentioned first information sharing device runs a third program, and the above-mentioned fifth window is used for The third information of the program interface of the third program is displayed.
可选地,在本申请实施例中,上述装置600还包括接收模块602和执行模块604:上述接收模块602,用于接收用户对上述第一窗口的第三输入;上述执行模块604,用于响应于上述接收模块602接收上述第三输入,执行目标处理,上述目标处理包括以下至少一项:更新上述第一窗口的位置;更新上述第一窗口的尺寸;取消显示上述第一窗口。Optionally, in this embodiment of the present application, the above-mentioned apparatus 600 further includes a receiving module 602 and an executing module 604: the above-mentioned receiving module 602 is used for receiving the third input of the user on the above-mentioned first window; the above-mentioned executing module 604 is used for In response to the receiving module 602 receiving the third input, target processing is performed, and the target processing includes at least one of the following: updating the position of the first window; updating the size of the first window; and canceling the display of the first window.
图8为实现本申请实施例提供的信息共享装置的可能的结构示意图。如图8所示,上述信息共享装置700包括:显示模块701;上述显示模块701,用于在第二聊天程序界面中显示第一聊天对象,上述第一聊天对象使用的第一信息共享装置运行第一程序,上述第一程序的程序界面包括第一信息;上述显示模块701,还用于在上述第二聊天程序界面中的第三区域,显示第一窗口,上述第一窗口用于显示上述第一信息,上述第三区域为上述第一聊天对象对应的区域。FIG. 8 is a schematic structural diagram of a possible structure for implementing the information sharing apparatus provided by the embodiment of the present application. As shown in FIG. 8 , the above-mentioned information sharing apparatus 700 includes: a display module 701; the above-mentioned display module 701 is used for displaying a first chat object in a second chat program interface, and the first information sharing apparatus used by the first chat object runs The first program, the program interface of the above-mentioned first program includes the first information; the above-mentioned display module 701 is also used to display the first window in the third area in the above-mentioned second chat program interface, and the above-mentioned first window is used to display the above-mentioned The first information, the third area is the area corresponding to the first chat object.
本申请实施例提供的第二信息共享装置,第二信息共享装置在第二聊天程序界面中显示第一聊天对象,第二信息共享装置在上述第二聊天程序界面中的第三区域,显示第一窗口,上述第一聊天对象使用的第一信息共享装置运行第一程序,上述第一程序的程序界面包括第一信息。如此,第二信息共享装置可以直接在第二聊天程序界面中查看到第一聊天对象的装置在后台运行的程序,从而无需第一信息共享装置的分享,即可查看第一聊天对象的装置在后台运行的程序,提高了用户使用电子设备的效率。In the second information sharing device provided by the embodiment of the present application, the second information sharing device displays the first chat object in the second chat program interface, and the second information sharing device displays the first chat object in the third area in the second chat program interface. In a window, the first information sharing device used by the first chat object runs a first program, and the program interface of the first program includes the first information. In this way, the second information sharing device can directly view the program running in the background of the device of the first chat object in the second chat program interface, so that the device of the first chat object can be viewed without sharing by the first information sharing device. The program running in the background improves the efficiency of the user in using the electronic device.
可选地,在本申请实施例中,上述装置还包括接收模块702;上述接收模块702,用于接收第二目标对象发送的第二消息,上述第二消息用于指示上述第二信息共享装置显示上述第一窗口的第一信息;上述显示模块701,用于在上述第二聊天程序界面中的第四区域,显示第二窗口,上述第二窗口用于显示上述第一信息;其中,上述第二目标对象包括以下至少一项:第一信息共享装置、服务器;上述第四区域为上述第二聊天程序界面中的第二聊天对象对应的区域。Optionally, in this embodiment of the present application, the above-mentioned apparatus further includes a receiving module 702; the above-mentioned receiving module 702 is configured to receive a second message sent by the second target object, where the above-mentioned second message is used to indicate the above-mentioned second information sharing apparatus Displaying the first information of the above-mentioned first window; the above-mentioned display module 701 is used for displaying a second window in the fourth area in the above-mentioned second chat program interface, and the above-mentioned second window is used to display the above-mentioned first information; wherein, the above-mentioned The second target object includes at least one of the following: a first information sharing device and a server; and the fourth area is an area corresponding to the second chat object in the second chat program interface.
可选地,在本申请实施例中,上述显示模块701,用于在上述第一信息共享装置运行第三程序的情况下,在上述第三区域显示第五窗口,上述第五窗口用于显示上述第三程序的程序界面的第三信息。Optionally, in this embodiment of the present application, the above-mentioned display module 701 is configured to display a fifth window in the above-mentioned third area when the above-mentioned first information sharing device runs a third program, and the above-mentioned fifth window is used for displaying The third information of the program interface of the above-mentioned third program.
需要说明的是,如图7所示,信息共享装置600中一定包括的模块用实线框示意,如显示模块601;信息共享装置600中可以包括也可以不包括的模块用虚线框示意,如接收模块602。如图8所示,信息共享装置700中一定包括的模块用实线框示意,如显示模块701;信息共享装置700中可以包括也可以不包括的模块用虚线框示意,如接收模块702。It should be noted that, as shown in FIG. 7 , the modules that must be included in the information sharing device 600 are indicated by solid line boxes, such as the display module 601 ; the modules that may or may not be included in the information sharing device 600 are indicated by dotted line boxes, such as Receive module 602 . As shown in FIG. 8 , the modules that must be included in the information sharing apparatus 700 are indicated by solid line boxes, such as the display module 701 ; the modules that may or may not be included in the information sharing apparatus 700 are indicated by dashed boxes, such as the receiving module 702 .
本申请实施例中的信息共享装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性地,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(NetworkAttached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The information sharing apparatus in this embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc. The embodiments of the present application There is no specific limitation.
本申请实施例中的信息共享装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The information sharing apparatus in this embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的信息共享装置能够实现图1至图的方法实施例实现的各个过程,为避免重复,这里不再赘述。The information sharing apparatus provided in the embodiments of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 1 , and to avoid repetition, details are not repeated here.
可选地,如图9所示,本申请实施例还提供一种电子设备900,包括处理器901,存储器902,存储在存储器902上并可在所述处理器901上运行的程序或指令,该程序或指令被处理器901执行时实现上述信息共享方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 9, an embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, a program or instruction stored in the memory 902 and executable on the processor 901, When the program or instruction is executed by the processor 901, each process of the above-mentioned information sharing method embodiments can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图10为实现本申请实施例的一种第一电子设备的硬件结构示意图。FIG. 10 is a schematic diagram of a hardware structure of a first electronic device implementing an embodiment of the present application.
该第一电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The first electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110 and other components.
本领域技术人员可以理解,第一电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图10中示出的第一电子设备结构并不构成对第一电子设备的限定,第一电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。其中,在第一电子设备中,显示单元106,用于显示第一聊天对象的第一聊天程序界面;显示单元106,还用于在上述第一聊天程序界面中的第一区域,显示第一窗口,上述第一窗口用于显示第一信息;其中,上述第一聊天对象使用的上述第一信息共享装置运行第一程序,上述第一程序的程序界面包括上述第一信息,上述第一区域为上述第一聊天对象对应的区域。Those skilled in the art can understand that the first electronic device 100 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management functions. The structure of the first electronic device shown in FIG. 10 does not constitute a limitation to the first electronic device, and the first electronic device may include more or less components than shown, or combine some components, or arrange different components , and will not be repeated here. Wherein, in the first electronic device, the display unit 106 is used to display the first chat program interface of the first chat object; the display unit 106 is also used to display the first chat program interface in the first area in the above-mentioned first chat program interface. window, the first window is used to display the first information; wherein, the first information sharing device used by the first chat object runs a first program, the program interface of the first program includes the first information, the first area is the area corresponding to the above-mentioned first chat object.
在本申请实施例提供的第一电子设备,第一电子设备显示第一聊天对象的第一聊天程序界面,在上述第一聊天程序界面中的第一区域显示第一窗口,该第一窗口用于显示第一信息,上述第一聊天对象使用的上述第一信息共享装置运行第一程序,上述第一程序的程序界面包括上述第一信息,上述第一区域为上述第一聊天对象对应的区域。由此,在第一聊天程序界面中会话的同时查看后台实时运行的程序中的信息,无需切换至后台运行程序,简化了用户操作,提高了用户使用电子设备的效率。In the first electronic device provided by the embodiment of the present application, the first electronic device displays the first chat program interface of the first chat object, and displays the first window in the first area of the above-mentioned first chat program interface. In displaying the first information, the first information sharing device used by the first chat object runs a first program, the program interface of the first program includes the first information, and the first area is the area corresponding to the first chat object . Therefore, the information in the program running in the background in real time is viewed while chatting in the first chat program interface, and there is no need to switch to the program running in the background, which simplifies the user's operation and improves the efficiency of the user in using the electronic device.
可选地,用户输入单元107,用于接收用户对上述第一窗口的第一输入;处理器110,用于响应于上述用户输入单元107接收的上述第一输入,向第一目标对象发送第一消息,上述第一消息用于指示第二信息共享装置显示上述第一窗口的第一信息;显示单元106,用于在上述第一聊天程序界面中的第二区域,显示第二窗口,上述第二窗口用于显示上述第一信息;其中,上述第一目标对象包括以下至少一项:第二信息共享装置、服务器;上述第二区域为上述第一聊天程序界面中的第二聊天对象对应的区域。Optionally, the user input unit 107 is configured to receive the first input from the user on the above-mentioned first window; the processor 110 is configured to respond to the above-mentioned first input received by the above-mentioned user input unit 107, and send the first input to the first target object. A message, the first message is used to instruct the second information sharing device to display the first information of the first window; the display unit 106 is configured to display the second window in the second area in the interface of the first chat program, the above The second window is used to display the above-mentioned first information; wherein, the above-mentioned first target object includes at least one of the following: a second information sharing device and a server; the above-mentioned second area corresponds to the second chat object in the above-mentioned first chat program interface Area.
可选地,用户输入单元107,用于在上述第二区域显示第三窗口的情况下,接收用户对上述第三窗口的第二输入;上述第三窗口用于显示第二程序的程序界面的第二信息,上述第二程序为上述第二聊天对象使用的第二信息共享装置运行的程序;显示单元106,用于响应于上述用户输入单元107接收的上述第二输入,在上述第一区域显示第四窗口,上述第四窗口用于显示上述第二信息。Optionally, the user input unit 107 is configured to receive the second input from the user to the third window when the third window is displayed in the second area; the third window is used to display the program interface of the second program. Second information, the second program is a program run by the second information sharing device used by the second chat partner; the display unit 106 is configured to respond to the second input received by the user input unit 107, in the first area A fourth window is displayed, and the fourth window is used to display the second information.
可选地,显示单元106,用于在上述第一信息共享装置运行第三程序的情况下,在上述第一区域显示第五窗口,上述第五窗口用于显示上述第三程序的程序界面的第三信息。Optionally, the display unit 106 is configured to display a fifth window in the above-mentioned first area when the above-mentioned first information sharing device runs a third program, and the above-mentioned fifth window is used to display the program interface of the above-mentioned third program. third information.
可选地,用户输入单元107,用于接收用户对上述第一窗口的第三输入;处理器110,用于响应于上述用户输入单元107接收的上述第三输入,执行目标处理,上述目标处理包括以下至少一项:更新上述第一窗口的位置;更新上述第一窗口的尺寸;取消显示上述第一窗口。Optionally, the user input unit 107 is configured to receive a third input from the user to the above-mentioned first window; the processor 110 is configured to perform target processing in response to the above-mentioned third input received by the above-mentioned user input unit 107, and the above-mentioned target processing It includes at least one of the following: updating the position of the first window; updating the size of the first window; canceling the display of the first window.
图11为实现本申请实施例的一种第二电子设备的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of a second electronic device implementing an embodiment of the present application.
该第二电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1100等部件。The second electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1100 and other components.
本领域技术人员可以理解,第二电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1100逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图11示出的第二电子设备结构并不构成对电子设备的限定,第二电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the second electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1100 through a power management system, so that the management of charging, discharging, and power management functions. The structure of the second electronic device shown in FIG. 11 does not constitute a limitation on the electronic device. The second electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components. Here No longer.
其中,在第二电子设备中,显示单元1006,用于在第二聊天程序界面中显示第一聊天对象,上述第一聊天对象使用的第一信息共享装置运行第一程序,上述第一程序的程序界面包括第一信息;显示单元1006,还用于在上述第二聊天程序界面中的第三区域,显示第一窗口,上述第一窗口用于显示上述第一信息,上述第三区域为上述第一聊天对象对应的区域。Wherein, in the second electronic device, the display unit 1006 is used to display the first chat object in the second chat program interface, the first information sharing device used by the first chat object runs the first program, and the first program of the first program The program interface includes first information; the display unit 1006 is further configured to display a first window in the third area in the above-mentioned second chat program interface, the above-mentioned first window is used to display the above-mentioned first information, and the above-mentioned third area is the above-mentioned The area corresponding to the first chat object.
本申请实施例提供的第二电子设备,第二电子设备在第二聊天程序界面中显示第一聊天对象,第二信息共享装置在上述第二聊天程序界面中的第三区域,显示第一窗口,上述第一聊天对象使用的第一信息共享装置运行第一程序,上述第一程序的程序界面包括第一信息。如此,第二电子设备可以直接在第二聊天程序界面中查看到第一聊天对象的装置在后台运行的程序,从而无需第一信息共享装置的分享,即可查看第一聊天对象的装置在后台运行的程序,提高了用户使用电子设备的效率。In the second electronic device provided by the embodiment of the present application, the second electronic device displays the first chat object in the second chat program interface, and the second information sharing device displays the first window in the third area in the second chat program interface. , the first information sharing device used by the first chat object runs a first program, and the program interface of the first program includes the first information. In this way, the second electronic device can directly view the program running in the background of the device of the first chat object in the second chat program interface, so that the device of the first chat object can be viewed in the background without the sharing of the first information sharing device. The running program improves the efficiency of the user's use of the electronic device.
可选地,用户输入单元1007,用于接收第二目标对象发送的第二消息,上述第二消息用于指示上述第二信息共享装置显示上述第一窗口的第一信息;显示单元1006,用于在上述第二聊天程序界面中的第四区域,显示第二窗口,上述第二窗口用于显示上述第一信息;其中,上述第二目标对象包括以下至少一项:第一信息共享装置、服务器;上述第四区域为上述第二聊天程序界面中的第二聊天对象对应的区域。Optionally, the user input unit 1007 is configured to receive a second message sent by the second target object, where the second message is used to instruct the second information sharing apparatus to display the first information of the first window; the display unit 1006 is configured to use In the fourth area in the above-mentioned second chat program interface, a second window is displayed, and the above-mentioned second window is used to display the above-mentioned first information; wherein, the above-mentioned second target object includes at least one of the following: a first information sharing device, server; the fourth area is the area corresponding to the second chat object in the second chat program interface.
可选地,显示单元1006,用于在上述第一信息共享装置运行第三程序的情况下,在上述第三区域显示第五窗口,上述第五窗口用于显示上述第三程序的程序界面的第三信息。Optionally, the display unit 1006 is configured to display a fifth window in the third area when the first information sharing device runs the third program, and the fifth window is used to display the program interface of the third program. third information.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that, in this embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. camera) to process the image data of still pictures or videos. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072 . The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
相应地,应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1009可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1100可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1100中。Correspondingly, it should be understood that, in this embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 is capable of capturing images from images in a video capture mode or an image capture mode. The image data of still pictures or videos obtained by a capture device (such as a camera) is processed. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072 . The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 1100 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1100.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述信息共享方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above information sharing method embodiment can be achieved, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述信息共享方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the information sharing method embodiments described above. Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of computer software products that are essentially or contribute to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk , CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.