CN115525199B - Card display method and device - Google Patents
Card display method and device Download PDFInfo
- Publication number
- CN115525199B CN115525199B CN202210332147.5A CN202210332147A CN115525199B CN 115525199 B CN115525199 B CN 115525199B CN 202210332147 A CN202210332147 A CN 202210332147A CN 115525199 B CN115525199 B CN 115525199B
- Authority
- CN
- China
- Prior art keywords
- card
- contact
- message
- session
- notification
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04842—Selection of displayed objects or displayed text elements
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请提供了一种卡片显示方法及装置,该方法可以在电子设备的桌面上显示会话类型APP对应的卡片,即第一卡片,该第一卡片包括一会话应用中的一联系人的名称。用户可以直接点击卡片进入该联系人对应的对话界面,无需先打开该会话APP或打开通知栏,再进入第一联系人对应的对话界面,因此,简化了用户进入对话界面的操作,提高了人机交互效率,以及提高了用户体验。
The present application provides a card display method and device, which can display a card corresponding to a conversation type APP on the desktop of an electronic device, that is, a first card. The first card includes the name of a contact in a conversation application. The user can directly click on the card to enter the conversation interface corresponding to the contact. There is no need to open the conversation APP or open the notification bar first, and then enter the conversation interface corresponding to the first contact. Therefore, the operation for the user to enter the conversation interface is simplified and improves the user experience. It improves the efficiency of computer interaction and improves user experience.
Description
技术领域Technical field
本申请涉及终端技术领域,尤其涉及卡片显示方法及装置。The present application relates to the field of terminal technology, and in particular to card display methods and devices.
背景技术Background technique
目前,当电子设备接收到消息后,在一种场景下,用户需要先打开应用,找到对应的联系人对话界面,然后查看或回复消息。在另一种场景下,用户可以从通知列表中找到相应联系人的通知消息,然后,点击该通知消息进入对应的会话界面查看或回复消息。可见,目前的使用场景,用户查看或回复消息的操作比较复杂,导致人机交互效率低。Currently, when an electronic device receives a message, in one scenario, the user needs to first open the application, find the corresponding contact conversation interface, and then view or reply to the message. In another scenario, the user can find the notification message of the corresponding contact from the notification list, and then click the notification message to enter the corresponding conversation interface to view or reply to the message. It can be seen that in the current usage scenario, the operation for users to view or reply to messages is relatively complicated, resulting in low efficiency of human-computer interaction.
发明内容Contents of the invention
有鉴于此,本申请提供了一种卡片显示方法及装置,以解决上述的技术问题,其公开的技术方案如下:In view of this, this application provides a card display method and device to solve the above technical problems. The disclosed technical solutions are as follows:
第一方面,本申请提供了一种卡片显示方法,应用于电子设备,该电子设备包括会话类应用,该方法包括:显示第一桌面,第一桌面包括第一卡片,第一卡片包括第一会话应用中第一联系人的名称;接收第一联系人发送的第一会话消息;响应于第一会话消息,在第一卡片中显示第一会话消息;接收用户对第一卡片输入的第一操作;响应于第一操作,从第一桌面跳转至第一会话应用中与第一联系人的对话界面,对话界面中包括第一会话消息。这样,用户可以点击第一卡片直接进入第一联系人的对话界面,不需要先打开第一会话应用或从打开通知栏进入该第一会话应用,再进入第一联系人对应的对话界面,因此,简化了用户进入该联系人的对话界面的操作,提高了人机交互效率,同时还提高了用户体验。In a first aspect, this application provides a card display method, which is applied to an electronic device. The electronic device includes a conversational application. The method includes: displaying a first desktop, the first desktop including a first card, and the first card including a first card. The name of the first contact in the conversation application; receiving the first conversation message sent by the first contact; responding to the first conversation message, displaying the first conversation message in the first card; receiving the first input of the user on the first card. Operation; in response to the first operation, jump from the first desktop to a conversation interface with the first contact in the first conversation application, where the conversation interface includes the first conversation message. In this way, the user can click the first card to directly enter the conversation interface of the first contact. There is no need to first open the first conversation application or enter the first conversation application by opening the notification bar, and then enter the conversation interface corresponding to the first contact. Therefore, , which simplifies the user's operation to enter the contact's conversation interface, improves the efficiency of human-computer interaction, and also improves the user experience.
在第一方面一种可能的实现方式中,响应于第一会话消息,在第一卡片中显示第一会话消息,包括:响应于第一会话消息,第一卡片由包括第一联系人的名称更新为包括第一会话消息和第一联系人的名称。In a possible implementation of the first aspect, in response to the first conversation message, displaying the first conversation message in the first card includes: in response to the first conversation message, the first card includes the name of the first contact Updated to include the first conversation message and the name of the first contact.
在第一方面另一种可能的实现方式中,该方法还包括:接收第一联系人发送的第二会话消息;响应于第二会话消息,第一卡片中的第一会话消息更新为第二会话消息。可见,第一卡片中显示第一会话消息后,若再次接收到第一联系人发送的第二会话消息,则第一卡片中的会话消息更新为最新的第二会话消息。从而方便用户查看到最新的消息。In another possible implementation of the first aspect, the method further includes: receiving a second conversation message sent by the first contact; in response to the second conversation message, updating the first conversation message in the first card to the second Conversation messages. It can be seen that after the first conversation message is displayed in the first card, if the second conversation message sent by the first contact is received again, the conversation message in the first card is updated to the latest second conversation message. This makes it easier for users to view the latest news.
在第一方面又一种可能的实现方式中,该方法还包括:接收发送至第一联系人的第三会话消息;响应于所述第三会话消息,在所述第一卡片中显示所述第三会话消息。可见,第一卡片还可以显示用户发送给第一联系人的会话消息,以便用户查看第一卡片就能够获知与第一联系人之间的最新会话,进一步提高了人机交互效率。In yet another possible implementation of the first aspect, the method further includes: receiving a third conversation message sent to the first contact; in response to the third conversation message, displaying the first conversation message in the first card. Third session message. It can be seen that the first card can also display the conversation messages sent by the user to the first contact, so that the user can learn the latest conversation with the first contact by viewing the first card, which further improves the efficiency of human-computer interaction.
在第一方面再一种可能的实现方式中,响应于第一会话消息,在第一卡片中显示第一会话消息包括:监听到通知中心收到新通知消息后,获取新通知消息的信息,新通知消息的信息包括消息内容、联系人信息及状态信息,状态信息表征通知消息是否是会话类型消息;基于新通知消息对应的状态信息及联系人信息,确定新通知消息的消息内容是第一会话消息后,查询第一映射关系获得与第一联系人的全局唯一标识关联的目标卡片标识;在目标卡片标识对应的卡片中显示第一会话消息;其中,第一映射关系包括卡片的卡片标识与卡片对应的联系人的全局唯一标识之间对应关系,全局唯一标识用于唯一标示会话类应用的联系人,卡片标识用于唯一标示第一桌面上的卡片。In yet another possible implementation of the first aspect, in response to the first session message, displaying the first session message in the first card includes: after monitoring that the notification center receives the new notification message, obtaining information about the new notification message, The information of the new notification message includes message content, contact information and status information. The status information indicates whether the notification message is a session type message; based on the status information and contact information corresponding to the new notification message, it is determined that the message content of the new notification message is the first After the conversation message, the first mapping relationship is queried to obtain the target card identification associated with the globally unique identification of the first contact; the first conversation message is displayed in the card corresponding to the target card identification; wherein the first mapping relationship includes the card identification of the card There is a correspondence relationship between the globally unique identifier of the contact corresponding to the card, the globally unique identifier is used to uniquely identify the contact of the conversational application, and the card identifier is used to uniquely identify the card on the first desktop.
在第一方面另一种可能的实现方式中,该方法还包括:监听到通知中心的通知消息被移除后,获取被移除的通知消息的信息,通知消息的信息包括联系人信息,以及状态信息,状态信息表征通知消息是否是会话类型消息;基于被移除的通知消息对应的状态信息及联系人信息,确定被移除的通知消息的消息内容是第一会话消息后,删除第一卡片中显示的消息内容。可见,该方案通过监听通知中心中通知消息的更新,同步动态更新相关卡片的显示内容,如监听到第一联系人的第一会话消息从通知中心移除后,此时认为用户已获知该第一会话消息的内容,同步删除第一卡片中显示的第一会话消息,避免用户重复操作。In another possible implementation of the first aspect, the method further includes: after monitoring that the notification message in the notification center is removed, obtaining information about the removed notification message, where the information about the notification message includes contact information, and Status information, the status information represents whether the notification message is a session type message; based on the status information and contact information corresponding to the removed notification message, after determining that the message content of the removed notification message is the first session message, delete the first The content of the message displayed in the card. It can be seen that this solution synchronizes and dynamically updates the display content of related cards by monitoring the updates of notification messages in the notification center. For example, after monitoring that the first conversation message of the first contact is removed from the notification center, it is considered that the user has learned the third message. The content of a conversation message is synchronized to delete the first conversation message displayed in the first card to avoid repeated operations by the user.
在第一方面又一种可能的实现方式中,接收发送至所述第一联系人的第三会话消息,响应于所述第三会话消息,在所述第一卡片中显示所述第三会话消息,包括:监听到会话消息更新后,获取更新的会话消息的信息,所述会话消息的信息包括所述会话消息的联系人信息和会话消息内容;基于所述联系人信息确定与所述第一联系人之间的会话消息更新后,在所述第一卡片中显示更新后的会话消息。可见,该方案通过直接监听会话消息的更新,获取联系人的最新会话消息,以弥补通过监听通知中心无法获得的会话消息,如用户回复给第一联系人的会话消息,以便用户直接查看第一卡片即可获知与第一联系人之间的最新会话消息。In yet another possible implementation of the first aspect, a third conversation message sent to the first contact is received, and in response to the third conversation message, the third conversation is displayed in the first card. The message includes: after monitoring the update of the session message, obtaining updated session message information, where the session message information includes the contact information of the session message and the session message content; determining the relationship with the third session message based on the contact information. After the conversation message between a contact is updated, the updated conversation message is displayed in the first card. It can be seen that this solution directly monitors the update of session messages to obtain the latest session messages of the contact to make up for the session messages that cannot be obtained by monitoring the notification center, such as the session messages that the user replies to the first contact, so that the user can directly view the first contact's session messages. You can get the latest conversation messages with the first contact through the card.
在第一方面再一种可能的实现方式中,该方法还包括:接收用户对第二桌面的第二操作;响应于第二操作,显示第一界面,第一界面显示卡片对应的功能类型,功能类型包括会话类型;响应于用户选择会话类型的操作,显示第三桌面,第三桌面包括会话类型的空白卡片;响应于用户对空白卡片输入的操作,显示第二界面,第二界面包括会话类型应用对应的近期联系人列表;响应于用户在近期联系人列表中选择第一联系人的操作,空白卡片更新为第一卡片。可见,通过上述操作过程,实现了用户在桌面上添加会话应用中某一联系人的卡片,极大地方便了用户查看和进入某一联系人对话界面,提高了用户体验。In yet another possible implementation of the first aspect, the method further includes: receiving a second operation from the user on the second desktop; in response to the second operation, displaying a first interface, and the first interface displays the function type corresponding to the card, The function type includes a session type; in response to the user's operation of selecting the session type, a third desktop is displayed, and the third desktop includes a blank card of the session type; in response to the user's operation of inputting the blank card, a second interface is displayed, and the second interface includes the session The recent contact list corresponding to the type application; in response to the user's operation of selecting the first contact in the recent contact list, the blank card is updated to the first card. It can be seen that through the above operation process, the user can add a card of a contact in the conversation application on the desktop, which greatly facilitates the user to view and enter a certain contact conversation interface, and improves the user experience.
在第一方面另一种可能的实现方式中,响应于用户对空白卡片输入的操作,显示第二界面,包括:响应于对空白卡片的编辑操作,显示查看最近消息界面,查看最近消息界面包括查看近期联系人入口;响应于对查看近期联系人入口的点击操作,显示第二界面,第二界面包括近期联系人列表。这样,方便用户从近期联系人列表中根据自己的需求选择相应的联系人,提高了添加卡片的灵活性。In another possible implementation of the first aspect, in response to the user's input operation on the blank card, displaying the second interface includes: in response to the editing operation on the blank card, displaying the recent message viewing interface, and the viewing recent message interface includes: View the recent contacts portal; in response to the click operation on the view recent contacts portal, display a second interface, and the second interface includes a recent contact list. In this way, it is convenient for users to select corresponding contacts according to their own needs from the recent contact list, and the flexibility of adding cards is improved.
在第一方面又一种可能的实现方式中,电子设备包括通知管理器;在响应于对查看近期联系人入口的点击操作之后,方法还包括:检测到用户点击查看近期联系人入口的操作后,向通知管理器发送获取近期会话通知的请求,近期会话通知是通知管理器在截止到当前时刻的第一时间段内接收到的会话类型的通知消息;接收通知管理器发送的近期会话通知,按照近期会话通知的时间戳由早到晚的顺序进行排序,获得近期联系人列表。可见,该方案可以通过监听通知中心中接收到的通知消息收集联系人,无需调用第三方会话应用的接口,实现了卡片显示方法在开发和调试过程中与第三方应用之间的解耦,提高了卡片显示方法的开发和调试效率。In yet another possible implementation of the first aspect, the electronic device includes a notification manager; after responding to the click operation of viewing the recent contact entry, the method further includes: detecting that the user clicks the operation of viewing the recent contact entry. , send a request to obtain recent session notifications to the notification manager. Recent session notifications are session type notification messages received by the notification manager within the first time period up to the current moment; receive recent session notifications sent by the notification manager, Sort by the timestamp of recent conversation notifications from earliest to latest to get a list of recent contacts. It can be seen that this solution can collect contacts by monitoring the notification messages received in the notification center without calling the interface of the third-party conversation application. It realizes the decoupling between the card display method and the third-party application during the development and debugging process, and improves the Improves the development and debugging efficiency of the card display method.
在第一方面再一种可能的实现方式中,响应于用户在近期联系人列表中选择第一联系人的操作,空白卡片更新为第一卡片,包括:如果通知中心中存在第一联系人发送的会话消息,第一卡片包括第一联系人的名称和该会话消息;如果通知中心中不存在第一联系人发送的会话消息,第一卡片包括第一联系人的名称。可见,在卡片上添加相应的联系人后,可以根据联系人的不同情况分别在卡片上显示不同的内容,例如,如果通知中心中有第一联系人的会话消息通知,则在该第一卡片中显示该会话消息;如果通知中心没有该联系人的会话消息通知,则可以仅在卡片中显示该联系人的信息,如名称、头像等。In yet another possible implementation of the first aspect, in response to the user's operation of selecting the first contact in the recent contact list, the blank card is updated to the first card, including: if the first contact exists in the notification center, send For a conversation message, the first card includes the name of the first contact and the conversation message; if there is no conversation message sent by the first contact in the notification center, the first card includes the name of the first contact. It can be seen that after adding the corresponding contact to the card, different content can be displayed on the card according to the different situations of the contact. For example, if there is a conversation message notification of the first contact in the notification center, the first contact will be displayed in the notification center. Display the conversation message in the card; if there is no conversation message notification for the contact in the notification center, you can only display the contact's information, such as name, avatar, etc., in the card.
在第一方面另一种可能的实现方式中,在响应于用户在近期联系人列表中选择第一联系人的操作之后,该方法还包括:在第一映射关系中添加第一卡片的卡片标识与第一联系人的全局唯一标识之间的对应关系,第一映射关系包括卡片的卡片标识与卡片对应的联系人的全局唯一标识之间的对应关系。In another possible implementation of the first aspect, after responding to the user's operation of selecting the first contact in the recent contact list, the method further includes: adding the card identification of the first card in the first mapping relationship The first mapping relationship includes a corresponding relationship between the card identifier of the card and the globally unique identifier of the contact corresponding to the card.
在第一方面又一种可能的实现方式中,该方法还包括:响应于用户对第一卡片的编辑操作,显示第二界面;响应于用户在近期联系人列表中选择第二联系人的操作,第一卡片显示的联系人由第一联系人更新为第二联系人。这样,用户可以随时修改卡片关联的联系人,降低用户操作复杂度,提高了用户体验。In yet another possible implementation of the first aspect, the method further includes: in response to the user's editing operation on the first card, displaying a second interface; in response to the user's operation of selecting the second contact in the recent contact list , the contact displayed on the first card is updated from the first contact to the second contact. In this way, users can modify the contacts associated with the card at any time, reducing user operation complexity and improving user experience.
在第一方面再一种可能的实现方式中,在第一卡片显示的联系人由第一联系人更新得第二联系人之后,方法还包括:将第一映射关系中第一卡片与第一联系人之间的映射关系数据,更新为第一卡片与第二联系人之间的映射关系数据。In yet another possible implementation of the first aspect, after the contact displayed on the first card is updated from the first contact to the second contact, the method further includes: combining the first card and the first contact in the first mapping relationship. The mapping relationship data between contacts is updated to the mapping relationship data between the first card and the second contact.
在第一方面另一种可能的实现方式中,在显示第一桌面之后,该方法还包括:响应于用户对第一卡片的删除操作,从第一桌面中删除第一卡片。In another possible implementation of the first aspect, after displaying the first desktop, the method further includes: in response to a user's deletion operation on the first card, deleting the first card from the first desktop.
在第一方面又一种可能的实现方式中,第一桌面包括以堆叠方式显示的至少两个卡片。这样,可以减少卡片占用的面积,使得桌面可以放置更多卡片。In yet another possible implementation of the first aspect, the first desktop includes at least two cards displayed in a stacked manner. In this way, the area occupied by cards can be reduced, allowing more cards to be placed on the desktop.
在第一方面再一种可能的实现方式中,第一卡片还包括第一控件;该方法还包括:响应于用户对第一控件输入的操作,第一卡片显示信息输入框和发送控件;响应于用户对信息输入框的点击操作,第一卡片显示内容输入的界面;响应于对发送控件的点击操作,第一卡片显示发送给第一联系人的会话消息。这样,用户可以直接在卡片上回复会话消息,进一步简化了用户回复联系人消息的操作,进一步提高了用户体验。In yet another possible implementation of the first aspect, the first card further includes a first control; the method further includes: in response to the user's input operation on the first control, the first card displays an information input box and a sending control; responding In response to the user's click operation on the information input box, the first card displays a content input interface; in response to the user's click operation on the sending control, the first card displays the conversation message sent to the first contact. In this way, users can reply to conversation messages directly on the card, further simplifying the user's operation of replying to contact messages and further improving user experience.
在第一方面另一种可能的实现方式中,第一卡片还包括第二控件;该方法还包括:接收用户对第二控件输入的操作,第二控件为标记已读控件或删除控件;响应于对第二控件输入的操作,删除第一卡片中显示的会话消息。这样,用户可以直接在卡片上将消息标记为已读或删除该消息,不需要进入对话界面再操作,进一步提高了用户体验。In another possible implementation of the first aspect, the first card further includes a second control; the method further includes: receiving an operation input by the user on the second control, where the second control is a mark read control or a delete control; responding For operations input to the second control, delete the conversation message displayed in the first card. In this way, the user can mark the message as read or delete the message directly on the card without entering the conversation interface, further improving the user experience.
在第一方面又一种可能的实现方式中,卡片所显示的消息内容包括文字、图片、音频和视频中的至少一种。In yet another possible implementation of the first aspect, the message content displayed on the card includes at least one of text, pictures, audio, and video.
第二方面,本申请还提供了一种电子设备,电子设备包括:一个或多个处理器、存储器和触摸屏;所述存储器用于存储程序代码;所述处理器用于运行所述程序代码,使得所述电子设备实现如第一方面任一种可能的实现方式所述的卡片显示方法。In a second aspect, this application also provides an electronic device. The electronic device includes: one or more processors, memories, and a touch screen; the memory is used to store program code; the processor is used to run the program code, so that The electronic device implements the card display method described in any possible implementation manner of the first aspect.
第三方面,本申请还提供了一种计算机可读存储介质,其上存储有指令,当所述指令在电子设备上运行时,使得所述电子设备执行如第一方面任一种可能的实现方式所述的卡片显示方法。In a third aspect, the application also provides a computer-readable storage medium on which instructions are stored. When the instructions are run on an electronic device, the electronic device causes the electronic device to execute any possible implementation as in the first aspect. The card display method described in the method.
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be achieved in any single embodiment. On the contrary, it can be understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions or beneficial effects in this specification do not necessarily refer to the same embodiments. Furthermore, the technical features, technical solutions and beneficial effects described in this embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that embodiments can be implemented without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects may also be identified in specific embodiments that do not embody all embodiments.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are: For some embodiments of the present invention, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1是本申请实施例提供的一种电子设备的硬件结构示意图;Figure 1 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application;
图2是本申请实施例提供的一种电子设备的软件架构示意图;Figure 2 is a schematic diagram of the software architecture of an electronic device provided by an embodiment of the present application;
图3~图7是本申请实施例提供的一种添加会话卡片过程的界面示意图;Figures 3 to 7 are schematic interface diagrams of a process of adding conversation cards provided by embodiments of the present application;
图8~图9是本申请实施例提供的会话卡片的尺寸示意图;Figures 8 to 9 are schematic diagrams of the dimensions of conversation cards provided by embodiments of the present application;
图10是本申请实施例提供的桌面上添加多张空白的会话卡片的界面示意图;Figure 10 is a schematic diagram of the interface for adding multiple blank conversation cards on the desktop provided by the embodiment of the present application;
图11~图12是本申请实施例提供的卡片堆的显示效果示意图;Figures 11 to 12 are schematic diagrams of the display effect of the card pile provided by the embodiment of the present application;
图13~图18是本申请实施例提供的在卡片中添加联系人的界面示意图;Figures 13 to 18 are schematic diagrams of the interface for adding contacts to a card provided by embodiments of the present application;
图19是本申请实施例提供的一种联系人列表的示意图;Figure 19 is a schematic diagram of a contact list provided by an embodiment of the present application;
图20是本申请实施例提供的多张有消息的会话卡片的显示效果示意图;Figure 20 is a schematic diagram of the display effect of multiple conversation cards with messages provided by the embodiment of the present application;
图21~图23是本申请实施例提供的删除会话卡片的界面示意图;Figures 21 to 23 are schematic diagrams of the interface for deleting conversation cards provided by the embodiment of the present application;
图24~图26是本申请实施例提供的操作卡片展示信息的界面示意图;Figures 24 to 26 are schematic interface diagrams of operation cards displaying information provided by embodiments of the present application;
图27~图28是本申请实施例提供的会话卡片跳转至会话应用的对话界面的示意图;Figures 27 to 28 are schematic diagrams of conversation interfaces jumping from conversation cards to conversation applications provided by embodiments of the present application;
图29是本申请实施例提供的一种会话卡片编辑过程的流程图;Figure 29 is a flow chart of a conversation card editing process provided by an embodiment of the present application;
图30是本申请实施例提供的一种删除会话卡片过程的流程图;Figure 30 is a flow chart of a process of deleting conversation cards provided by an embodiment of the present application;
图31是本申请实施例提供的一种更新会话卡片展示信息的流程图。Figure 31 is a flow chart for updating session card display information provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请说明书和权利要求书及附图说明中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms “first”, “second”, “third”, etc. in the description, claims and drawings of this application are used to distinguish different objects, rather than to limit a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of this application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "such as" in the embodiments of the present application is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" or "such as" is intended to present the concept in a concrete manner.
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍:In order to describe the following embodiments clearly and concisely, a brief introduction to related technologies is first given:
微件(web widget,widget,也可称为组件)是一种Web2.0的衍生物,类似一个小型的应用程式,可应用于移动设备领域。Widget可以是一个时钟、一个日记簿、一段视频、天气预报、一个flash游戏等。A widget (web widget, widget, also called a component) is a derivative of Web 2.0, similar to a small application that can be applied to mobile devices. Widget can be a clock, a diary, a video, a weather forecast, a flash game, etc.
“窗口小工具”、“卡片”、“卡片堆”均是微件的一种表现形式,用于显示各种相关信息,如,文本、图像、按钮、地图等。"Widget", "Card", and "Card Stack" are all forms of widgets, used to display various related information, such as text, images, buttons, maps, etc.
前已叙及,当手机接收到会话类型消息,如短信息或等其他即时通讯消息,需要用户打开相应的应用或通知栏,然后进入该消息对应联系人的交互界面,查看或回复消息。可见,上述两种场景下,用户都需要至少两步操作,才能进入消息对应联系人的交互界面,导致人机交互效率低。As mentioned before, when the mobile phone receives a conversation type message, such as a short message or For other instant messaging messages, the user needs to open the corresponding application or notification bar, and then enter the interactive interface of the contact corresponding to the message to view or reply to the message. It can be seen that in the above two scenarios, the user needs at least two steps to enter the interactive interface corresponding to the contact in the message, resulting in low efficiency of human-computer interaction.
为了解决该问题,本申请提供一种卡片显示方法,该方法可以在电子设备的桌面上显示对应的卡片(即,第一卡片,该第一卡片包括一会话应用中的一联系人的名称),用户可以直接点击卡片进入该联系人对应的对话界面,无需先打开该会话APP或打开通知栏,再进入第一联系人对应的对话界面,因此,简化了用户进入对话界面的操作,提高了人机交互效率,以及提高了用户体验。In order to solve this problem, the present application provides a card display method, which can display the corresponding card (ie, the first card, the first card includes the name of a contact in a conversation application) on the desktop of the electronic device. , the user can directly click on the card to enter the conversation interface corresponding to the contact. There is no need to open the conversation APP or open the notification bar first, and then enter the conversation interface corresponding to the first contact. Therefore, the operation for the user to enter the conversation interface is simplified and improves the efficiency. Human-computer interaction efficiency and improved user experience.
示例性的,本申请中的电子设备可以为便携式计算机(如手机)、平板电脑、笔记本电脑、个人计算机(personal computer,PC)、可穿戴电子设备(如智能手表)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、车载电脑等,以下示例对该电子设备的具体形式不做特殊限制。For example, the electronic device in this application can be a portable computer (such as a mobile phone), a tablet computer, a notebook computer, a personal computer (PC), a wearable electronic device (such as a smart watch), or augmented reality. AR)/virtual reality (VR) equipment, vehicle-mounted computers, etc. The following examples do not impose special restrictions on the specific form of the electronic equipment.
以电子设备是手机为例,如图1所示,示出了本申请实施例提供的一种电子设备的结构示意图。Taking the electronic device as a mobile phone as an example, as shown in FIG. 1 , a schematic structural diagram of an electronic device provided by an embodiment of the present application is shown.
如图1所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in Figure 1, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142. Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, Display 194, and subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本实施例示意的结构并不构成对电子设备102的具体限定。在另一些实施例中,电子设备102可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 102. In other embodiments, the electronic device 102 may include more or fewer components than illustrated, or some components may be combined, or some components may be separated, or may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元。Processor 110 may include one or more processing units.
内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码可以包括操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。该可执行程序代码包括指令,处理器110通过运行存储在内部存储器121的指令,从而使电子设备执行各种功能应用以及数据处理。The internal memory 121 may be used to store computer executable program code, which may include an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The executable program code includes instructions, and the processor 110 executes the instructions stored in the internal memory 121 to cause the electronic device to perform various functional applications and data processing.
显示屏194用于显示图像,视频、一系列图形用户界面(graphical userinterface,GUI)等。例如,在本申请实施例中,显示屏可以用于显示widget卡片。The display screen 194 is used to display images, videos, a series of graphical user interfaces (graphical user interface, GUI), etc. For example, in this embodiment of the present application, the display screen can be used to display widget cards.
电子设备的操作系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备的软件结构。The operating system of an electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device.
图2示出了本申请实施例的终端设备的软件结构框图。Figure 2 shows a software structure block diagram of the terminal device according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。以Android系统为例,在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层(application,APP),应用程序框架层(Framework),类库层,以及内核层(Kernel)。The layered architecture divides the software into several layers, and each layer has clear roles and division of labor. The layers communicate through software interfaces. Taking the Android system as an example, in some embodiments, the Android system is divided into four layers, from top to bottom: application layer (application, APP), application framework layer (Framework), class library layer, and kernel layer. (Kernel).
图2仅示出了与本申请实施例提供的卡片显示方法相关的软件层及软件层包含的模块。Figure 2 only shows the software layer related to the card display method provided by the embodiment of the present application and the modules included in the software layer.
如图2所示,应用程序层可以包括一系列应用程序包。示例性的,应用程序包可以包括桌面、即时通讯、视频、通话、浏览器、日历、地图、音乐、相机等APP。As shown in Figure 2, the application layer can include a series of application packages. For example, the application package may include desktop, instant messaging, video, call, browser, calendar, map, music, camera and other APPs.
其中,本申请涉及的会话类应用是指可以生成对话消息的APP,如,图2所示的即时通讯和短信息。其中,即时通讯是指具有即时通讯功能的一类应用,如微信、QQ、钉钉等。Among them, the conversational application involved in this application refers to an APP that can generate conversational messages, such as instant messaging and short messages as shown in Figure 2. Among them, instant messaging refers to a type of applications with instant messaging functions, such as WeChat, QQ, DingTalk, etc.
在本申请的一个示例性实施例中,桌面应用(可称为桌面,主屏幕,或Launcher等),例如,在安卓系统中,桌面又称为桌面启动器(Launcher)。为了方便描述,本文中统称为桌面。In an exemplary embodiment of the present application, a desktop application (which may be called a desktop, a home screen, or a Launcher, etc.), for example, in an Android system, the desktop is also called a desktop launcher (Launcher). For convenience of description, they are collectively referred to as the desktop in this article.
在本申请实施例中,可以在桌面上创建卡片,此处的会卡片是指桌面上显示的,可以显示与某会话APP中联系人之间的会话消息的服务卡片。例如,在卡片中显示该联系人的头像、名称、会话消息等内容。进一步,用户点击该卡片还可以直接跳转至该联系人的对话界面,例如,桌面上添加有微信联系人“Cat”的卡片,当用户点击“Cat”的卡片后,触发微信应用打开“Cat”的对话界面。In this embodiment of the present application, a card can be created on the desktop. The meeting card here refers to a service card displayed on the desktop that can display conversation messages with contacts in a conversation APP. For example, display the contact's avatar, name, conversation message, etc. in the card. Furthermore, the user can also jump directly to the contact's conversation interface by clicking on the card. For example, a card with WeChat contact "Cat" is added to the desktop. When the user clicks on the card of "Cat", the WeChat application is triggered to open "Cat". ” dialogue interface.
应用程序框架层(Framework,FWK)为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer (Framework, FWK) provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
在一示例性实施例中,如图2所示,应用程序框架层可以包括通知管理器(Notification Manager)、会话管理器(People Manager)、卡片管理器(App WidgetManager)。还可以包括资源管理器、窗口管理器、视图系统、内容提供器等。In an exemplary embodiment, as shown in Figure 2, the application framework layer may include a notification manager (Notification Manager), a session manager (People Manager), and a card manager (App WidgetManager). Can also include resource managers, window managers, view systems, content providers, etc.
其中,通知管理器,Notification Manager,用于对接收到的通知消息进行管理,例如,接收到通知变更后,更新通知的状态。Among them, the notification manager, Notification Manager, is used to manage received notification messages, for example, after receiving notification changes, update the status of the notification.
会话管理器是Framework侧的接口,负责解析对话通知,生成相应的会话消息。The session manager is an interface on the Framework side, responsible for parsing dialogue notifications and generating corresponding session messages.
卡片管理器用于提供可以在桌面放置卡片的接口,负责卡片的生成、更新等过程。The card manager is used to provide an interface for placing cards on the desktop, and is responsible for the card generation, update and other processes.
系统库层包括java语言需要调用的功能函数,以及安卓的核心库,该层还包括安卓运行时(Android runtime)负责安卓系统的调度和管理。在一示例性实施例中,系统库层包括表面管理器、三维图形处理库、媒体库和二维图形引擎等。The system library layer includes functional functions that need to be called by the Java language, as well as the core library of Android. This layer also includes the Android runtime (Android runtime), which is responsible for the scheduling and management of the Android system. In an exemplary embodiment, the system library layer includes a surface manager, a three-dimensional graphics processing library, a media library, a two-dimensional graphics engine, etc.
内核层是硬件和软件之间的层,在一示例性实施例中,内核层包括显示驱动、摄像头驱动、传感器驱动、音频驱动等。The kernel layer is a layer between hardware and software. In an exemplary embodiment, the kernel layer includes a display driver, a camera driver, a sensor driver, an audio driver, etc.
需要说明的是,本申请实施例以Android系统为例进行说明,但是其基本原理同样适用于采用其他操作系统的终端设备中,本申请对终端设备采用的操作系统不做限定。It should be noted that the embodiment of this application takes the Android system as an example for description, but its basic principles are also applicable to terminal devices using other operating systems. This application does not limit the operating system used by the terminal device.
下面以电子设备是手机为例,并结合图3~图7介绍本申请实施例提供的一种在桌面添加会话卡片的过程,如,会话类型APP可以包括短信、QQ、钉钉等。The following takes the electronic device as a mobile phone as an example, and introduces a process of adding conversation cards on the desktop provided by the embodiment of the present application in conjunction with Figures 3 to 7. For example, a conversation type APP can include SMS, QQ, DingTalk, etc.
在一示例性实施例中,如图3所示,手机显示桌面,用户在桌面上进行双指捏合操作,跳转至图4所示的显示界面。In an exemplary embodiment, as shown in Figure 3, the mobile phone displays a desktop, and the user performs a two-finger pinch operation on the desktop to jump to the display interface shown in Figure 4.
在另一示例性实施例中,操作系统的设置应用中设置有桌面卡片项,用户可以通过设置应用进入桌面卡片设置项,本申请实施例对进入桌面卡片设置界面的方式不做限定。In another exemplary embodiment, a desktop card item is provided in the setting application of the operating system, and the user can enter the desktop card setting item through the setting application. The embodiment of the present application does not limit the method of entering the desktop card setting interface.
如图4所示,该界面是桌面编辑界面,该界面的上方区域显示可以编辑的桌面页面10,可以通过左右滑动桌面页面更换桌面页面。该显示界面的底部区域显示操作选项,如壁纸、桌面卡片20、切换效果、桌面设置等。As shown in Figure 4, the interface is a desktop editing interface. The upper area of the interface displays an editable desktop page 10, and the desktop page can be replaced by sliding the desktop page left or right. The bottom area of the display interface displays operation options, such as wallpaper, desktop card 20, switching effects, desktop settings, etc.
用户点击图4所示的桌面卡片20后,显示界面从图4所示的界面跳转至图5所示的界面。After the user clicks on the desktop card 20 shown in Figure 4, the display interface jumps from the interface shown in Figure 4 to the interface shown in Figure 5.
如图5所示,显示界面上显示一卡片类型展示界面100,该界面包括一种或多种卡片的类型,如会话101、时钟、备忘录、天气、图库、联系人。用户点击图5所示的会话101选项后,显示界面跳转至图6所示的界面。As shown in Figure 5, a card type display interface 100 is displayed on the display interface. The interface includes one or more card types, such as conversation 101, clock, memo, weather, gallery, and contacts. After the user clicks the session 101 option shown in Figure 5, the display interface jumps to the interface shown in Figure 6.
其中,图5所示的会话101选项是会话类型APP的统称,即此处的会话并非特指一个APP,而是包括会话类型的多个APP,如,短信,QQ,钉钉等,本申请实施例对会话类APP不做限定。Among them, the session 101 option shown in Figure 5 is a general term for session type APPs, that is, the session here does not specifically refer to one APP, but includes multiple APPs of session type, such as, SMS, QQ, DingTalk, etc., the embodiments of this application do not limit conversational APPs.
如图6所示,显示屏显示会话卡片界面110,该界面包括卡片111的大小和样式。在一示例性实施例中,用户可以左右滑动会话卡片界面110,从而实现切换显示其他大小和样式的卡片。As shown in FIG. 6 , the display screen displays the session card interface 110 , which includes the size and style of the card 111 . In an exemplary embodiment, the user can slide the conversation card interface 110 left or right to switch to display cards of other sizes and styles.
在其他实施例中,可以通过其他方式切换显示其他大小、样式的卡片,如上下滑动页面,用户上下滑动界面切换界面上展示的卡片。本申请对切换显示卡片的具体方式不做限制。In other embodiments, cards of other sizes and styles can be switched and displayed in other ways, such as sliding the page up and down, and the user sliding the interface up and down to switch the cards displayed on the interface. This application does not limit the specific method of switching display cards.
例如,图6所示的卡片111的大小是2×2。卡片还可以是其他大小,如图8所示的卡片111的大小是4×2,图9所示卡片111的大小是2×1,本申请实施例对卡片的大小不做限定。For example, the size of the card 111 shown in Figure 6 is 2×2. The card can also be of other sizes. The size of the card 111 shown in Figure 8 is 4×2, and the size of the card 111 shown in Figure 9 is 2×1. The embodiment of the present application does not limit the size of the card.
在一示例性实施例中,卡片的样式可以包括卡片显示的各部分内容(如,头像、联系人名称(或昵称)、消息内容等),卡片显示内容布局、透明度、卡片颜色等,本申请对卡片的样式不做限制。用户可以基于会话卡片界面提供的卡片样式选择相应的样式。In an exemplary embodiment, the style of the card may include various parts of the content displayed on the card (such as avatar, contact name (or nickname), message content, etc.), card display content layout, transparency, card color, etc., this application There are no restrictions on card styles. Users can choose the corresponding style based on the card styles provided by the session card interface.
此外,如图6所示,会话卡片界面110的顶部还设置有退出控件112,用户点击退出控件112后,退出会话卡片界面。以及,会话卡片界面110的左上角还设置有返回控件113,用户点击返回控件113后,返回至会话卡片界面110的上一级界面,即图5所示的卡片类型展示界面100。In addition, as shown in FIG. 6 , an exit control 112 is also provided at the top of the session card interface 110. After the user clicks the exit control 112, the user exits the session card interface. In addition, a return control 113 is provided in the upper left corner of the conversation card interface 110. After the user clicks the return control 113, the user returns to the upper level interface of the conversation card interface 110, that is, the card type display interface 100 shown in Figure 5.
例如,用户选中卡片111后可拖拽卡片111。当卡片111被拖拽出会话卡片界面110后,会话卡片界面110可自动消失,使得手机显示出位于会话卡片界面110下的桌面。进而,用户可继续拖拽卡片111,将卡片111放置在任一桌面页面。此时,如图7所示,桌面显示的卡片111为空白卡片,卡片111的类型为会话类型。空白卡片是没有任何信息的卡片。For example, after selecting card 111, the user can drag card 111. When the card 111 is dragged out of the conversation card interface 110, the conversation card interface 110 can automatically disappear, so that the mobile phone displays the desktop located under the conversation card interface 110. Furthermore, the user can continue to drag the card 111 and place the card 111 on any desktop page. At this time, as shown in FIG. 7 , the card 111 displayed on the desktop is a blank card, and the type of the card 111 is a conversation type. Blank cards are cards without any information.
在卡片111添加至桌面的过程中,用户可以通过拖拽卡片111的方式,将卡片111放置在桌面的目标位置,如图7所示,将卡片111放置于桌面的其他应用图标的左下方。During the process of adding card 111 to the desktop, the user can place the card 111 at the target location on the desktop by dragging the card 111. As shown in Figure 7, the user can place the card 111 at the lower left of other application icons on the desktop.
在卡片111添加完成后,用户也可以通过拖拽卡片111的方式移动卡片111在桌面上的位置,如图7所示,可以从卡片111所在的位置移至虚线区域114处。此外,还可以将卡片111通过拖拽方式移至其它桌面页面。After the card 111 is added, the user can also move the card 111 on the desktop by dragging the card 111. As shown in Figure 7, the user can move the card 111 from the position to the dotted area 114. In addition, the card 111 can also be moved to other desktop pages by dragging and dropping.
在另一种场景下,桌面上添加有至少两张空白卡片,如图10所示,各空白卡片平铺在桌面上,可以根据每个空白卡片的大小确定空白卡片的布局,此处不再赘述。In another scenario, at least two blank cards are added to the desktop, as shown in Figure 10. Each blank card is laid flat on the desktop. The layout of the blank cards can be determined according to the size of each blank card. This is not discussed here. Repeat.
如图7和图10所示,在一示例性实施例中,空白卡片上显示一通用头像,且该通用头像位于空白卡片的中间位置。当然,在其它实施例中,通用头像在空白卡片中的位置可以调整,本申请对此不做限制。As shown in FIGS. 7 and 10 , in an exemplary embodiment, a universal avatar is displayed on the blank card, and the universal avatar is located in the middle of the blank card. Of course, in other embodiments, the position of the universal avatar in the blank card can be adjusted, and this application does not limit this.
用户可以根据需求以及桌面的空白区域的大小,调整卡片111在桌面上的位置。该空白区域是指未放置任何应用图标的区域,本申请实施例并不限定卡片111的具体位置。The user can adjust the position of the card 111 on the desktop according to the needs and the size of the blank area on the desktop. The blank area refers to an area where no application icon is placed, and the embodiment of the present application does not limit the specific location of the card 111 .
在桌面上放置有多张卡片111的场景下,多张卡片还可以堆叠方式显示,如图11所示,三张卡片111-1、111-2和111-3堆叠在一起,当前视图显示卡片111-1,卡片111-2被卡片111-1遮挡,只能显示卡片边缘部分,同理,卡片111-3被卡片111-2遮挡。In a scenario where multiple cards 111 are placed on the desktop, multiple cards can also be displayed in a stacked manner. As shown in Figure 11, three cards 111-1, 111-2 and 111-3 are stacked together, and the cards are displayed in the current view. 111-1, card 111-2 is blocked by card 111-1, and only the edge of the card can be displayed. Similarly, card 111-3 is blocked by card 111-2.
用户可以点击卡片堆中的任一张,被点击的卡片切换至当前视图显示,例如,用户点击卡片111-2后,卡片111-2切换至当前视图,即能够全部显示卡片111-2,此时,卡片111-1被卡片111-2遮挡。The user can click on any card in the card pile, and the clicked card switches to the current view. For example, after the user clicks on card 111-2, card 111-2 switches to the current view, that is, all cards 111-2 can be displayed. This At this time, card 111-1 is blocked by card 111-2.
此外,不同大小的卡片也可以以堆叠方式显示,不同大小的卡片可以按卡片由小到大的顺序依次堆叠,例如,如图12所示,卡片111-4、111-5、111-6堆叠在一起,当前视图显示卡片111-4,卡片111-5的部分区域被卡片111-4遮挡,同理,卡片111-6的部分区域被卡片111-5遮挡。查看图12所示的卡片堆的方式与图11所示的卡片堆的查看方式相同,此处不再赘述。In addition, cards of different sizes can also be displayed in a stacked manner. Cards of different sizes can be stacked in order from small to large. For example, as shown in Figure 12, cards 111-4, 111-5, and 111-6 are stacked. Together, the current view displays card 111-4, and part of card 111-5 is blocked by card 111-4. Similarly, part of card 111-6 is blocked by card 111-5. The way of viewing the card pile shown in Figure 12 is the same as the way of viewing the card pile shown in Figure 11, and will not be described again here.
图11和图12仅是可能存在的卡片堆的示意图,还可以以其他的堆叠样式展示卡片堆,本申请对此不做限制。Figures 11 and 12 are only schematic diagrams of possible card piles, and the card piles can also be displayed in other stacking styles, which is not limited by this application.
后续,可以对添加至桌面的会话类型的空白卡片进行编辑,如添加会话联系人,即将该卡片绑定会话联系人,从而直接在卡片上显示该联系人的相关信息,如头像、名称和会话内容等。Subsequently, you can edit the blank card of the conversation type added to the desktop, such as adding a conversation contact, that is, binding the card to the conversation contact, thereby directly displaying the contact's relevant information on the card, such as avatar, name and conversation. Content etc.
下面将结合图13~图20介绍本申请实施例提供的编辑卡片的过程。The process of editing cards provided by the embodiment of the present application will be introduced below with reference to Figures 13 to 20.
如图13所示,用户可以长按空白的卡片111,跳转至图14所示的显示界面。As shown in Figure 13, the user can long press the blank card 111 to jump to the display interface shown in Figure 14.
在一示例性实施例中,如图14所示,在桌面的上层显示卡片操作界面200,卡片操作界面200上显示空白卡片111,以及,在空白卡片111的上方显示卡片操作选项卡210。In an exemplary embodiment, as shown in FIG. 14 , a card operation interface 200 is displayed on the upper layer of the desktop, a blank card 111 is displayed on the card operation interface 200 , and a card operation tab 210 is displayed above the blank card 111 .
卡片操作选项卡210上显示操作选项,如移除、编辑卡片、更多“会话”卡片等选项。当然还可以包括其他选项,如隐藏等,本申请对卡片操作选项卡210上显示的选项数量和内容不做限定。The card operation tab 210 displays operation options, such as options for removing, editing cards, and more "session" cards. Of course, other options may also be included, such as hiding, etc. This application does not limit the number and content of options displayed on the card operation tab 210.
此外,在其他示例性实施例中,还可以在卡片操作界面200的其他位置显示卡片操作选项卡210,本申请对卡片操作选项卡的显示位置不做限定。In addition, in other exemplary embodiments, the card operation tab 210 can also be displayed at other locations on the card operation interface 200. This application does not limit the display location of the card operation tab.
用户点击图14所示的“编辑卡片”选项后,页面跳转至图15所示的界面,如图15所示,在桌面的上层显示近期消息界面220,近期消息界面220包括“最近联系人”选项221,用户点击“最近联系人”选项221后,可以查最近期联系人,如页面跳转至图16所示的最近联系人列表页面230。此外,此处仅以最近联系人为例进行说明,例如,在一段时间内发送过会话消息的联系人都可以查看到,或者,发送过会话消息的联系人都可以查看到。After the user clicks the "Edit Card" option shown in Figure 14, the page jumps to the interface shown in Figure 15. As shown in Figure 15, a recent message interface 220 is displayed on the upper layer of the desktop. The recent message interface 220 includes the "Recent Contacts" ” option 221. After the user clicks the “Recent Contacts” option 221, the user can check the most recent contacts. For example, the page jumps to the recent contact list page 230 as shown in Figure 16. In addition, the description here only takes recent contacts as an example. For example, all contacts who have sent conversation messages within a period of time can be viewed, or all contacts who have sent conversation messages can be viewed.
在一示例中,如图15所示,近期消息界面220还可以包括“查看近期的消息”和“快速回复消息”的提示信息。其中,“查看近期的消息”的提示信息可以提醒用户在桌面上添加联系人的卡片后,可以直接在该卡片上查看与该联系人之间的近期会话消息。“快速回复消息”的提示信息可以提醒用户在桌面上添加联系人的卡片后,可以直接在卡片上回复消息。当然,在其他示例中,近期消息界面220也可以不包括上述的“查看近期的消息”和“快速回复消息”的提示,或者也可以进一步包括其他提示信息,本申请对此不做限定。In an example, as shown in FIG. 15 , the recent message interface 220 may also include prompt information for “view recent messages” and “quickly reply to messages”. Among them, the prompt message "View recent messages" can remind the user that after adding a contact's card on the desktop, the user can view recent conversation messages with the contact directly on the card. The prompt message of "Quickly reply to messages" can remind users that after adding a contact's card on the desktop, they can reply to the message directly on the card. Of course, in other examples, the recent message interface 220 may not include the above-mentioned "view recent messages" and "quickly reply to messages" prompts, or may further include other prompt information, which is not limited in this application.
如图16所示,最近联系人列表页面230中显示一个或多个联系人。这些联系人可以是最近一段时间内接收到的所有会话类型APP的通知消息的联系人,如可能包括微信联系人、短信联系人、QQ联系人等。As shown in Figure 16, one or more contacts are displayed in the recent contact list page 230. These contacts can be contacts that have received notification messages from all conversation type APPs in the recent period, such as WeChat contacts, SMS contacts, QQ contacts, etc.
在一种场景下,如图19所示,最近联系人列表中的联系人数量较多,一屏只能显示部分联系人,例如,如图16所示,一屏只能显示7个联系人,即从联系人“Cat”到联系人“CCC”,无法显示全部联系人,用户可以向上滑动最近联系人列表页面230,显示图19所示的“CCC”之后的其他联系人。In one scenario, as shown in Figure 19, there are a large number of contacts in the recent contact list, and only some of the contacts can be displayed on one screen. For example, as shown in Figure 16, only 7 contacts can be displayed on one screen. , that is, from contact "Cat" to contact "CCC", all contacts cannot be displayed. The user can slide up the recent contact list page 230 to display other contacts after "CCC" as shown in Figure 19.
例如,图16所示的联系人列表中的每个联系人选项包括联系人的头像、名称。例如,图16中Cat、Dog、Parrot、Lion、AAA、BBB和CCC均表示联系人在所属会话类APP中设置的名称。For example, each contact option in the contact list shown in Figure 16 includes the contact's avatar and name. For example, in Figure 16, Cat, Dog, Parrot, Lion, AAA, BBB and CCC all represent the names set by the contact in the session APP to which they belong.
在一示例性实施例中,联系人头像是该联系人在所属会话类APP中设置的个人头像。进一步,为了标示每个联系人所属的APP,还可以在该个人头像的右下角显示该联系人所属的会话APP的图标。例如,图16所示的联系人列表中,前两个联系人均来自这两个联系人的头像右下角显示/>的图标。In an exemplary embodiment, the contact avatar is the personal avatar set by the contact in the conversational APP to which it belongs. Furthermore, in order to indicate the APP to which each contact belongs, the icon of the conversation APP to which the contact belongs can also be displayed in the lower right corner of the personal avatar. For example, in the contact list shown in Figure 16, the first two contacts are from The avatars of these two contacts are displayed in the lower right corner/> icon.
在一示例性实施例中,如图16所示,最近联系人列表页面230的顶部可以设置隐藏控件231和搜索栏232。用户点击隐藏控件231后,最近联系人列表页面230隐藏,可以显示桌面或其他页面,本申请对此不做限定。In an exemplary embodiment, as shown in FIG. 16 , a hidden control 231 and a search bar 232 may be provided at the top of the recent contact list page 230 . After the user clicks on the hidden control 231, the recent contact list page 230 is hidden, and the desktop or other pages can be displayed. This application does not limit this.
用户点击搜索栏232进入搜索页面,在搜索页面可以输入联系人的至少部分名称快速筛选出包含该名称的联系人,简化了用户查找联系人的操作,提高了人机交互效率。The user clicks on the search bar 232 to enter the search page, where he or she can input at least part of a contact's name to quickly filter out contacts containing the name, which simplifies the user's operation of finding contacts and improves the efficiency of human-computer interaction.
用户可以点击最近联系人列表页面230中的任一联系人行,将选择的联系人添加至卡片111中。如图16所示,用户点击联系人“Parrot”后,跳转至图17或图18所示的界面。The user can click on any contact row in the recent contact list page 230 to add the selected contact to the card 111 . As shown in Figure 16, after the user clicks on the contact "Parrot", it jumps to the interface shown in Figure 17 or Figure 18.
在一种场景下,联系人“Parrot”是历史联系人,历史联系人是指在一段时间内接收到该联系人的会话类型的通知消息(也可称为会话通知消息,或会话通知),但是通知中心中不包含该联系人的会话消息,此种场景下,如图17所示,卡片111上可以只显示联系人的头像和名称。In one scenario, the contact "Parrot" is a historical contact, and a historical contact refers to a session type notification message (which can also be called a session notification message, or session notification) that has been received by the contact within a period of time. However, the notification center does not contain the conversation message of the contact. In this scenario, as shown in Figure 17, only the contact's avatar and name can be displayed on the card 111.
在另一种场景下,联系人“Parrot”是活跃联系人,活跃联系人是指通知中心中包含该联系人的会话类型通知消息。此种场景下,如图18所示,卡片111除显示联系人“Parrot”的头像和名称之外,还可以显示最近接收到的来自Parrot的消息内容。In another scenario, the contact "Parrot" is an active contact, and the active contact refers to the session type notification message containing the contact in the notification center. In this scenario, as shown in Figure 18, in addition to displaying the avatar and name of the contact "Parrot", the card 111 can also display the content of the recently received message from Parrot.
如图20所示,卡片显示的消息内容的类型包括但不限于文字、图片、视频、音频、链接等,本申请实施例对卡片所能显示的消息内容的类型不做限定。As shown in Figure 20, the types of message content displayed by the card include but are not limited to text, pictures, videos, audios, links, etc. The embodiment of the present application does not limit the types of message content that can be displayed by the card.
此外,在空白卡片中添加联系人后,还可以通过编辑卡片选项修改卡片关联的联系人,例如,如图17所示,卡片111关联的联系人是短信联系人“Parrot”。用户可以长按图17的卡片111进入图14所示的卡片操作界面200,进一步点击“编辑卡片”选项,进入图15或图16所示的界面,用户从图16所示的联系人列表中选择新的联系人后,最终在卡片111上显示最新联系人的信息。In addition, after adding a contact to a blank card, you can also modify the contact associated with the card through the edit card option. For example, as shown in Figure 17, the contact associated with card 111 is the SMS contact "Parrot". The user can long press the card 111 in Figure 17 to enter the card operation interface 200 shown in Figure 14, and further click the "Edit Card" option to enter the interface shown in Figure 15 or 16. The user can select the card from the contact list shown in Figure 16 After selecting a new contact, the latest contact information is finally displayed on card 111.
在又一种场景中,用户还可以删除桌面上的卡片111。下面将结合图21~图23介绍本申请实施例提供的卡片删除过程。In yet another scenario, the user can also delete the card 111 on the desktop. The card deletion process provided by the embodiment of the present application will be introduced below with reference to Figures 21 to 23.
如图21所示,用户长按卡片111后,跳转至图22所示的卡片操作选项卡210的界面,用户点击“移除”选项后,删除桌面上的卡片111,即跳转至图23所示的桌面页面。As shown in Figure 21, after the user long presses the card 111, it jumps to the interface of the card operation tab 210 shown in Figure 22. After the user clicks the "Remove" option, the card 111 on the desktop is deleted, and the user jumps to the interface shown in Figure 22. The desktop page shown in 23.
以上内容是用户针对卡片的操作过程,在另一示例性实施例中,用户还可以对卡片的内容进行操作。下面将结合图24~图26介绍对卡片内容进行操作的过程。The above content is the user's operation process on the card. In another exemplary embodiment, the user can also operate on the content of the card. The process of operating the card content will be introduced below with reference to Figures 24 to 26.
如图24所示,卡片111上显示联系人的头像、名称(“Parrot”)和最新消息,还可以显示“回复”、“标记已读”控件。用户点击卡片111上显示的“回复”控件后,卡片111的显示界面更新为图25所示的界面。As shown in Figure 24, the contact's avatar, name ("Parrot") and latest message are displayed on the card 111, and "reply" and "mark read" controls can also be displayed. After the user clicks the "reply" control displayed on the card 111, the display interface of the card 111 is updated to the interface shown in Figure 25.
如图25所示,卡片111的底部区域显示回复栏310,回复栏310的右侧显示发送图标320。用户可以在回复栏310中输入欲回复的内容,输入完内容后,点击发送图标320,发送回复的消息。如图26所示,卡片111的消息内容显示区域330更新为用户回复的消息,即卡片111中的消息更新为与联系人“Parrot”之间的最新消息。As shown in FIG. 25 , a reply column 310 is displayed in the bottom area of the card 111 , and a send icon 320 is displayed on the right side of the reply column 310 . The user can input the content to be replied in the reply column 310. After inputting the content, the user clicks the send icon 320 to send the reply message. As shown in Figure 26, the message content display area 330 of the card 111 is updated with the message replied by the user, that is, the message in the card 111 is updated with the latest message with the contact "Parrot".
在桌面上添加一联系人的卡片后,接收到该联系人发送的会话消息后,可以在该联系人的卡片上更新显示该消息。After adding a contact's card on the desktop, after receiving a conversation message sent by the contact, the message can be updated and displayed on the contact's card.
在一种场景下,如图17所示,桌面上添加的卡片111中不包括联系人的消息,此后,接收到该联系人的消息后,在卡片111中显示接收到的消息,如图18所示,卡片111中还包括消息内容,如,可以在头像右侧显示消息内容。In one scenario, as shown in Figure 17, the card 111 added on the desktop does not include the contact's message. After that, after receiving the contact's message, the received message is displayed in the card 111, as shown in Figure 18 As shown, the card 111 also includes message content. For example, the message content can be displayed on the right side of the avatar.
在另一种场景下,如图18所示,桌面上添加的卡片111包括联系人的会话消息(可称为第一会话消息),当接收到该联系人发送的第二会话消息后,卡片111中显示的第一消息更新为第二会话消息,即,卡片中消息会跟随会话内容的更新而更新。In another scenario, as shown in Figure 18, the card 111 added on the desktop includes the contact's conversation message (which can be called the first conversation message). After receiving the second conversation message sent by the contact, the card The first message displayed in 111 is updated as the second conversation message, that is, the message in the card will be updated as the conversation content is updated.
在又一种场景下,当用户向联系人回复会话消息后,如图18所示,卡片111中显示联系人“Parrot”发送的会话消息(如第一会话消息),然后,用户又向“Parrot”回复了一条会话消息(如第三会话消息),此时,卡片111中的消息内容由第一会话消息更新为第三会话消息。例如,用户可以在通知中心中包含第一会话消息的通知中直接回复第三会话消息,或者,用户直接在会话应用中回复第三会话消息;又如,如图24所示,用户还可以直接在该联系人的卡片上回复第三会话消息。本申请对用户回复会话消息的途径不做限定。In another scenario, after the user replies to the conversation message to the contact, as shown in Figure 18, the card 111 displays the conversation message (such as the first conversation message) sent by the contact "Parrot", and then the user replies to " Parrot" replied to a conversation message (such as the third conversation message). At this time, the message content in the card 111 is updated from the first conversation message to the third conversation message. For example, the user can directly reply to the third conversation message in the notification containing the first conversation message in the notification center, or the user can directly reply to the third conversation message in the conversation application; for another example, as shown in Figure 24, the user can also directly reply to the third conversation message. Reply to the third conversation message on the contact's card. This application does not limit the ways in which users can reply to conversational messages.
此外,在一示例性实施例中,卡片中显示的会话消息可以是来自联系人的未读会话消息。例如,未读会话消息可以是用户未查看的消息,例如,接收该联系人发送的会话消息后,用户未回复任何消息,没有将该消息标记为已读,没有从通知中心删除该消息等。相应的,如果用户将联系人发送的会话消息标记为已读,或者,直接从通知中心中删除该会话消息,则同步更新卡片中显示的内容,即删除卡片中显示的会话消息。Furthermore, in an exemplary embodiment, the conversation messages displayed in the card may be unread conversation messages from the contact. For example, unread conversation messages can be messages that the user has not viewed. For example, after receiving the conversation message sent by the contact, the user did not reply to any message, did not mark the message as read, did not delete the message from the notification center, etc. Correspondingly, if the user marks the conversation message sent by the contact as read, or directly deletes the conversation message from the notification center, the content displayed in the card will be updated synchronously, that is, the conversation message displayed in the card will be deleted.
下面将结合图27和图28,介绍本申请实施例提供的从卡片跳转至会话类APP界面的过程。The process of jumping from a card to a conversational APP interface provided by the embodiment of the present application will be introduced below with reference to Figures 27 and 28.
用户点击桌面上显示的卡片后,手机的显示界面直接跳转至该卡片关联的联系人所属应用的对话界面。如图27所示,用户点击短信联系人“Parrot”的卡片111后,跳转至如图28所示的界面,即短信应用中联系人“Parrot”的对话界面。After the user clicks on the card displayed on the desktop, the display interface of the mobile phone jumps directly to the conversation interface of the application to which the contact associated with the card belongs. As shown in Figure 27, after the user clicks on the card 111 of the SMS contact "Parrot", the user jumps to the interface shown in Figure 28, which is the conversation interface of the contact "Parrot" in the SMS application.
由上述内容可知,本申请实施例提供的卡片显示方法能够在桌面上添加会话类型APP对应的Widget卡片,进一步可以向该Widget卡片添加关联的联系人。当用户点击该卡片后,直接跳转至该联系人对应的对话界面,简化了用户操作,提高了人机交互效率。It can be seen from the above that the card display method provided by the embodiment of the present application can add a Widget card corresponding to the session type APP on the desktop, and further can add associated contacts to the Widget card. When the user clicks on the card, it jumps directly to the conversation interface corresponding to the contact, which simplifies user operations and improves the efficiency of human-computer interaction.
在搭载12及以上的电子设备中,当电子设备开机时即由实现桌面小工具的类PeopleSpaceWidgetProvider向桌面(System UI)注册卡片组件,注册完成后,在图5所示的卡片类型展示界面100展示的卡片类型列表中展示会话选项。用户点击会话选项后,跳转至图6所示的会话卡片界面,用户可以选择任一种尺寸的卡片添加至桌面。On board In electronic devices of 12 years old and above, when the electronic device is turned on, the class PeopleSpaceWidgetProvider that implements desktop gadgets registers the card component with the desktop (System UI). After the registration is completed, the card is displayed in the card type display interface 100 shown in Figure 5 Session options are displayed in the type list. After the user clicks the session option, it jumps to the session card interface shown in Figure 6. The user can select a card of any size to add to the desktop.
在System UI的配置文件中配置各个界面的样式以及点击界面上的选项产生的请求。Configure the styles of each interface and the requests generated by clicking options on the interface in the System UI configuration file.
例如,配置的界面可以包括卡片类型展示界面100、会话卡片界面110、卡片操作选项卡210、近期消息界面220、联系人列表界面230等。例如,点击卡片操作选项卡210上的编辑卡片选项产生调用联系人列表的请求,又如,点击已添加联系人的卡片后,产生的跳转至相应应用的联系人对话界面的请求。For example, the configured interface may include a card type display interface 100, a conversation card interface 110, a card operation tab 210, a recent message interface 220, a contact list interface 230, etc. For example, clicking the edit card option on the card operation tab 210 generates a request to call the contact list, or, for example, clicking a card to which a contact has been added generates a request to jump to the contact dialogue interface of the corresponding application.
将卡片添加至桌面后,可以对卡片进行编辑操作,例如添加联系人等。下面将结合图29介绍本申请实施例提供的会话类型卡片的编辑过程。After adding the card to the desktop, you can edit the card, such as adding contacts, etc. The editing process of the session type card provided by the embodiment of the present application will be introduced below with reference to Figure 29.
如图29所示,编辑卡片的过程可以包括:As shown in Figure 29, the process of editing a card may include:
S110,会话选择界面(PeopleSpaceActivty)接收到卡片编辑操作后,向会话卡片管理器(PeopleSpaceWidgetManager)发送获取近期联系人的请求。S110: After receiving the card editing operation, the session selection interface (PeopleSpaceActivty) sends a request to obtain recent contacts to the session card manager (PeopleSpaceWidgetManager).
PeopleSpaceActivty是添加会话类型卡片时的会话选择界面。例如,会话选择界面包括图15所示的近期消息界面220。PeopleSpaceActivty is the session selection interface when adding session type cards. For example, the conversation selection interface includes the recent message interface 220 shown in FIG. 15 .
PeopleSpaceWidgetManager是会话类型卡片的管理者,其中一个功能是监听通知(Notification),即能够感知到通知消息的变化。PeopleSpaceWidgetManager is the manager of session type cards. One of its functions is to listen for notifications (Notification), that is, it can sense changes in notification messages.
如图15所示,用户点击近期消息界面220中的最近联系人选项221后,PeopleSpaceActivty会接收到联系人获取请求,发起调用PeopleSpaceWidgetManager中近期会话获取方法的请求。As shown in Figure 15, after the user clicks the recent contact option 221 in the recent message interface 220, PeopleSpaceActivty will receive a contact acquisition request and initiate a request to call the recent session acquisition method in PeopleSpaceWidgetManager.
S120,会话卡片管理器(PeopleSpaceWidgetManager)向通知管理器(NotificationManager)发起获取近期联系人的请求。S120. The session card manager (PeopleSpaceWidgetManager) initiates a request to the notification manager (NotificationManager) to obtain recent contacts.
近期联系人包括活跃联系人和历史联系人,此处的近期联系人是指一段时间内接收到该联系人发送会话通知消息,其中,此处的一段时间的结束时刻为当前时间戳。Recent contacts include active contacts and historical contacts. The recent contacts here refer to the session notification messages sent by the contact received within a period of time, where the end time of the period of time here is the current timestamp.
其中,活跃联系人是指通知消息中包含该联系人的会话通知消息。历史联系人是指在一段时间段内接收过该联系人的会话通知消息,但当前的通知消息中不包含该联系人的会话通知消息,如会话通知消息已从通知中清除。The active contact refers to the session notification message containing the contact in the notification message. A historical contact refers to a contact that has received session notification messages within a period of time, but the current notification message does not contain the session notification message of this contact, for example, the session notification message has been cleared from the notification.
PeopleSpaceWidgetManager通过调用getPriorityTiles方法获得通知中的活跃联系人,通过调用getRecentTiles方法获得历史联系人。PeopleSpaceWidgetManager obtains the active contacts in the notification by calling the getPriorityTiles method, and obtains the historical contacts by calling the getRecentTiles method.
PeopleSpaceActivty调用PeopleSpaceWidgetManager的getPriorityTiles方法和getRecentTiles方法后,触发PeopleSpaceWidgetManager发起调用NotificationManager的近期会话获取方法。After PeopleSpaceActivty calls the getPriorityTiles method and getRecentTiles method of PeopleSpaceWidgetManager, it triggers PeopleSpaceWidgetManager to initiate a call to NotificationManager's recent session acquisition method.
其中,getPriorityTiles方法被调用后,PeopleSpaceWidgetManager会调用NotificationManager的getconversation(true)方法。getconversation(true)方法用于获取NotificationChannel的isImportantConversation字段是true的Conversations。Among them, after the getPriorityTiles method is called, PeopleSpaceWidgetManager will call the getconversation(true) method of NotificationManager. The getconversation(true) method is used to obtain Conversations whose isImportantConversation field of NotificationChannel is true.
getRecentTiles方法被调用后,PeopleSpaceWidgetManager会调用NotificationManager的getconversation(false)方法。getconversation(false)方法用于获取NotificationChannel中的Conversations,不限制isImportantConversation字段的值。After the getRecentTiles method is called, PeopleSpaceWidgetManager will call the getconversation(false) method of NotificationManager. The getconversation(false) method is used to obtain Conversations in NotificationChannel without limiting the value of the isImportantConversation field.
S130,通知管理器(NotificationManager)向会话卡片管理器(PeopleSpaceWidgetManager)返回近期会话。S130, the notification manager (NotificationManager) returns the recent session to the session card manager (PeopleSpaceWidgetManager).
getconversation(true)方法被调用后,NotificationManager向PeopleSpaceWidgetManager返回活跃会话。其中,返回的活跃会话可以包括活跃联系人的信息(如,头像和名称)、会话内容以及最后一次会话内容对应的时间戳等。After the getconversation(true) method is called, NotificationManager returns the active session to PeopleSpaceWidgetManager. The returned active session may include active contact information (such as avatar and name), session content, and the timestamp corresponding to the last session content, etc.
getconversation(false)方法被调用后,NotificationManager向PeopleSpaceWidgetManager返回历史会话。其中,返回的历史会话可以包括历史联系人的信息,以及最后一次会话内容对应的时间戳。After the getconversation(false) method is called, NotificationManager returns the historical conversation to PeopleSpaceWidgetManager. The returned historical conversations may include historical contact information and the timestamp corresponding to the last conversation content.
S140,会话卡片管理器(PeopleSpaceWidgetManager)按照近期会话的时间戳由早到晚的顺序进行排序,得到近期联系人列表。S140. The conversation card manager (PeopleSpaceWidgetManager) sorts the recent conversation timestamps from early to late to obtain a recent contact list.
PeopleSpaceWidgetManager中的getPriorityTiles方法,按照活跃会话的时间戳由早到晚的顺序进行排序,并获取活跃联系人的信息,获得活跃联系人。The getPriorityTiles method in PeopleSpaceWidgetManager sorts the timestamps of active sessions from early to late, obtains active contact information, and obtains active contacts.
getRecentTiles方法是按照历史会话的时间戳由早到晚的顺序进行排序,获得历史联系人。The getRecentTiles method sorts the historical session timestamps from early to late to obtain historical contacts.
例如,一条会话的时间戳是2022.02.01的16:00,另一条会话对应的时间戳是2022.02.01的17:00,则16:00对应的会话排在17:00对应的会话之前。For example, if the timestamp of one session is 16:00 on 2022.02.01, and the timestamp corresponding to another session is 17:00 on 2022.02.01, then the session corresponding to 16:00 is ranked before the session corresponding to 17:00.
获得活跃联系人列表和历史联系人列表后,为每一个联系人创建对应的PeopleSpace Tile View(联系人列表项视图),且将历史联系人排在活跃联系人之后,最终形成联系人列表。After obtaining the active contact list and the historical contact list, create a corresponding PeopleSpace Tile View (contact list item view) for each contact, and arrange the historical contacts after the active contacts to finally form a contact list.
其中,PeopleSpaceTileView是联系人列表中一个单独列表项的视图布局,如图16和图19所示的一个联系人的显示内容布局。Among them, PeopleSpaceTileView is the view layout of a single list item in the contact list, as shown in Figure 16 and Figure 19. The display content layout of a contact.
S150,会话卡片管理器(PeopleSpaceWidgetManager)向会话选择界面(PeopleSpaceActivty)返回近期联系人列表。S150, the session card manager (PeopleSpaceWidgetManager) returns the recent contact list to the session selection interface (PeopleSpaceActivty).
S160,会话选择界面(PeopleSpaceActivty)显示近期联系人列表。S160, the session selection interface (PeopleSpaceActivty) displays the recent contact list.
此种场景下,会话选择界面包括图16所示的联系人列表界面230。In this scenario, the session selection interface includes the contact list interface 230 shown in FIG. 16 .
在一示例性实施例中,会话选择界面显示的近期联系人列表中可以仅显示联系人的信息,如头像和名称,从而方便用户直观查看联系人的信息。例如,近期联系人列表可以采用图16或图19所示的布局方式。In an exemplary embodiment, the recent contact list displayed on the session selection interface may only display the contact's information, such as avatar and name, so as to facilitate the user to intuitively view the contact's information. For example, the recent contact list may adopt the layout shown in Figure 16 or Figure 19.
S170,会话选择界面(PeopleSpaceActivty)检测到选择联系人的操作后,调用会话卡片管理器的卡片更新方法,并向会话卡片管理器传递被点击的联系人(即,第一目标联系人)的信息。S170, after detecting the operation of selecting a contact, the session selection interface (PeopleSpaceActivty) calls the card update method of the session card manager and transmits the information of the clicked contact (ie, the first target contact) to the session card manager. .
用户点击PeopleSpaceActivty展示的联系人列表中的任一列表项后,PeopleSpaceActivty向PeopleSpaceWidgetManager传递第一目标联系人的信息(如,头像、名称、会话内容等),并调用PeopleSpaceWidgetManager中的卡片更新方法updateWidgets,以便更新会话卡片的联系人以及界面显示。After the user clicks any list item in the contact list displayed by PeopleSpaceActivty, PeopleSpaceActivty passes the first target contact information (such as avatar, name, conversation content, etc.) to PeopleSpaceWidgetManager, and calls the card update method updateWidgets in PeopleSpaceWidgetManager so that Update the contacts and interface display of the conversation card.
S180,会话卡片管理器(PeopleSpaceWidgetManager)根据第一目标联系人对应的信息,获得第一目标卡片的第一目标视图界面。S180. The session card manager (PeopleSpaceWidgetManager) obtains the first target view interface of the first target card based on the information corresponding to the first target contact.
本申请中的视图界面可以包括卡片中各显示元素的样式以及布局等构成的显示界面,并以卡片的形式呈现该界面。The view interface in this application may include a display interface composed of the style and layout of each display element in the card, and the interface is presented in the form of a card.
例如,卡片所显示的元素可以包括联系人的头像、名称,或者还可以包括回复、标记为已读、删除等控件,头像、名称、控件即卡片的显示元素。可以按照各显示元素的样式及布局获得该卡片的显示界面。For example, the elements displayed on the card may include the contact's avatar and name, or may also include controls such as reply, mark as read, and delete. The avatar, name, and controls are the display elements of the card. The display interface of the card can be obtained according to the style and layout of each display element.
在此场景中,第一目标卡片是当前编辑的空白卡片。In this scenario, the first target card is the currently edited blank card.
PeopleSpaceWidgetManager调用updateWidgets方法,进一步调用updateAppWidgetViews方法,updateAppWidgetViews方法会根据第一目标联系人对应的信息(如头像、名称、会话内容)组装第一目标卡片的视图界面,即第一目标视图界面。PeopleSpaceWidgetManager calls the updateWidgets method and further calls the updateAppWidgetViews method. The updateAppWidgetViews method assembles the view interface of the first target card based on the information corresponding to the first target contact (such as avatar, name, conversation content), that is, the first target view interface.
updateAppWidgetViews方法会调用PeopleTileViewHelper方法的createRemoteViews创建RemoteViews。The updateAppWidgetViews method will call the createRemoteViews of the PeopleTileViewHelper method to create RemoteViews.
PeopleTileViewHelper是PeopleTileView的Helper类,在PeopleSpaceWidgetManager更新会话卡片时,为其提供显示视图。PeopleTileViewHelper is the Helper class of PeopleTileView, which provides a display view for PeopleSpaceWidgetManager when it updates the session card.
如果第一目标联系人是活跃联系人,则第一目标视图界面中包括该联系人的头像、名称、最新会话的内容,以及各项信息的显示布局,例如,图18所示的卡片111所显示的信息及各项信息的显示布局。If the first target contact is an active contact, the first target view interface includes the contact's avatar, name, content of the latest conversation, and the display layout of various information, for example, card 111 shown in Figure 18 The information displayed and the display layout of each information.
如果第一目标联系人是历史联系人,则第一目标视图界面中包括该联系人的头像、名称,以及各项信息的显示布局。例如,图17所示的卡片111所显示的信息及各项信息的显示布局。If the first target contact is a historical contact, the first target view interface includes the contact's avatar, name, and display layout of various information. For example, the information displayed on the card 111 and the display layout of each piece of information are shown in FIG. 17 .
S190,会话卡片管理器(PeopleSpaceWidgetManager)向桌面卡片管理器(AppWidgetManager)发送第一目标卡片的唯一标识和第一目标视图界面。S190. The session card manager (PeopleSpaceWidgetManager) sends the unique identifier of the first target card and the first target view interface to the desktop card manager (AppWidgetManager).
桌面卡片管理器(AppWidgetManager)位于电子设备软件架构中的应用程序框架层,用于提供可以在桌面上放置卡片的接口,并负责卡片生成、更新等。而且,AppWidgetManager为每个卡片生成一个唯一标识(即,卡片ID)。PeopleSpaceWidgetManager可以从AppWidgetManager中获知当前添加的卡片的ID。The desktop card manager (AppWidgetManager) is located at the application framework layer in the electronic device software architecture. It is used to provide an interface for placing cards on the desktop and is responsible for card generation, updating, etc. Furthermore, AppWidgetManager generates a unique identification (i.e., card ID) for each card. PeopleSpaceWidgetManager can get the ID of the currently added card from AppWidgetManager.
PeopleSpaceWidgetManager调用AppWidgetManager的updateAppWidget方法将将组装好的第一目标视图界面,以及第一目标卡片的唯一标识(即卡片ID)发送至AppWidgetManager,以便AppWidgetManager将View(即第一目标视图界面)更新到AppWidget(即第一目标卡片)。PeopleSpaceWidgetManager calls the updateAppWidget method of AppWidgetManager to send the assembled first target view interface and the unique identification of the first target card (i.e. card ID) to AppWidgetManager so that AppWidgetManager can update the View (i.e. first target view interface) to AppWidget( That is the first target card).
S1100,桌面卡片管理器(AppWidgetManager)将第一目标卡片的界面更新为第一目标视图界面。S1100. The desktop card manager (AppWidgetManager) updates the interface of the first target card to the first target view interface.
AppWidgetManager根据接收到的卡片ID确定欲更新界面的卡片,进一步将该卡片的界面更新为接收到的第一目标视图界面,从而完成卡片界面更新。例如,将卡片从图13所示的界面更新为图17或图18所示的界面。AppWidgetManager determines the card whose interface is to be updated based on the received card ID, and further updates the card's interface to the received first target view interface, thereby completing the card interface update. For example, the card is updated from the interface shown in Figure 13 to the interface shown in Figure 17 or Figure 18.
S1110,会话卡片管理器(PeopleSpaceWidgetManager)将第一目标联系人的全局唯一标识与第一目标卡片的唯一标识之间映射关系更新至映射关系表中。S1110. The session card manager (PeopleSpaceWidgetManager) updates the mapping relationship between the globally unique identifier of the first target contact and the unique identifier of the first target card into the mapping relationship table.
电子设备的操作系统为联系人列表中的每个联系人创建一个全局唯一标识,即Key,用于唯一标识联系人。The operating system of the electronic device creates a globally unique identifier, that is, a Key, for each contact in the contact list, which is used to uniquely identify the contact.
电子设备中维护有卡片ID与该卡片上添加的联系人的全局唯一标识(即Key)之间的映射关系,例如,某卡片的ID为abc,该卡片上添加的联系人的Key为123,则建立abc与123之间的映射关系。The electronic device maintains a mapping relationship between the card ID and the globally unique identifier (ie, Key) of the contact added to the card. For example, the ID of a certain card is abc, and the Key of the contact added to the card is 123. Then establish the mapping relationship between abc and 123.
在一示例性实施例中,联系人与卡片之间可以是一对一,或者一对多的映射关系,换言之,可以为一个联系人创建一张会话卡片,或者,还可以为同一联系人创建至少两张会话卡片。如果联系人与卡片是一对多的关系,则该联系人对应的至少两张会话卡片的视图界面同步更新。In an exemplary embodiment, there may be a one-to-one or one-to-many mapping relationship between contacts and cards. In other words, a conversation card may be created for one contact, or a conversation card may be created for the same contact. At least two conversation cards. If there is a one-to-many relationship between contacts and cards, the view interfaces of at least two conversation cards corresponding to the contact are updated simultaneously.
当用户在第一目标卡片中添加第一目标联系人后,PeopleSpaceWidgetManager会将第一目标卡片的卡片ID及第一目标联系人的Key之间的映射关系保存至上述的映射关系表中。After the user adds the first target contact in the first target card, PeopleSpaceWidgetManager will save the mapping relationship between the card ID of the first target card and the Key of the first target contact into the above-mentioned mapping relationship table.
在另一种场景下,用户还可以变更已添加有联系人的会话卡片上所关联的联系人。变更卡片关联的联系人的过程与向空白卡片添加联系人的过程相似,此处不再详述。其中,图中S1120~S1180所示的过程即变更卡片关联的联系人的过程:In another scenario, the user can also change the contact associated with the conversation card to which the contact has been added. The process of changing the contacts associated with a card is similar to the process of adding contacts to a blank card and will not be described in detail here. Among them, the process shown in S1120 to S1180 in the figure is the process of changing the contact person associated with the card:
S1120,会话选择界面(PeopleSpaceActivty)接收到卡片编辑的操作后,调用会话卡片管理器(PeopleSpaceWidgetManager)的获取近期联系人的方法。S1120: After receiving the card editing operation, the session selection interface (PeopleSpaceActivty) calls the method of the session card manager (PeopleSpaceWidgetManager) to obtain recent contacts.
与编辑空白卡片的过程相似,PeopleSpaceActivty接收到用户点击图14所示的“编辑卡片”选项的操作后,调用PeopleSpaceWidgetManager的getPriorityTiles方法和getRecentTiles方法,分别获取活跃联系人和历史联系人,进一步获得包含活跃联系人和历史联系人的联系人列表。Similar to the process of editing a blank card, after PeopleSpaceActivty receives the user's click on the "Edit Card" option shown in Figure 14, it calls the getPriorityTiles method and getRecentTiles method of PeopleSpaceWidgetManager to obtain active contacts and historical contacts respectively, and further obtains active contacts including active contacts. Contact list of contacts and historical contacts.
需要说明的是,PeopleSpaceWidgetManager在该步骤获得的联系人列表与在S140获得的联系人列表可能不同。It should be noted that the contact list obtained by PeopleSpaceWidgetManager in this step may be different from the contact list obtained in S140.
随着时间推移,电子设备接收到的会话通知消息会更新,S140获得的活跃联系人,在本步骤获中可能变为历史联系人。本步骤获得的联系人列表中可能不包括S140获得的部分历史联系人。因此,不同时间获得的联系人列表可能不同。但获取联系人列表的方法相同,此处不再赘述。As time goes by, the session notification messages received by the electronic device will be updated, and the active contacts obtained in S140 may become historical contacts obtained in this step. The contact list obtained in this step may not include some historical contacts obtained by S140. Therefore, the contact list obtained at different times may be different. However, the method of obtaining the contact list is the same and will not be repeated here.
S1130,会话卡片管理器向会话选择界面返回联系人列表。S1130. The session card manager returns the contact list to the session selection interface.
S1140,会话选择界面接收到选择联系人的操作后,调用会话卡片管理器的卡片更新方法,并向会话卡片管理器传递第二目标联系人的信息。S1140: After receiving the operation of selecting a contact, the session selection interface calls the card update method of the session card manager and transmits the information of the second target contact to the session card manager.
用户选择的联系人即第二目标联系人。该步骤的过程与S170的过程相同,此处不再赘述。The contact selected by the user is the second target contact. The process of this step is the same as that of S170 and will not be described again here.
S1150,会话卡片管理器利用第二目标联系人的信息,获得第二目标卡片的第二目标视图界面。S1150. The conversation card manager uses the information of the second target contact to obtain the second target view interface of the second target card.
第二目标卡片是指当前编辑的卡片,第二目标视图界面是第二目标卡片对应的目标视图界面。The second target card refers to the currently edited card, and the second target view interface is the target view interface corresponding to the second target card.
S1160,会话卡片管理器向桌面卡片管理器发送第二目标卡片对应的卡片ID及第二目标视图界面。S1160. The session card manager sends the card ID corresponding to the second target card and the second target view interface to the desktop card manager.
S1170,桌面卡片管理器将第二目标卡片的界面更新为第二目标视图界面。S1170. The desktop card manager updates the interface of the second target card to the second target view interface.
S1180,会话卡片管理器将映射关系表中第二目标卡片对应的联系人更新为第二目标联系人。S1180. The conversation card manager updates the contact corresponding to the second target card in the mapping relationship table to the second target contact.
会话卡片管理器从映射关系表中查找到第二目标卡片的卡片ID对应的映射关系数据中的联系人的Key更新为第二目标联系人的Key。The session card manager searches the mapping relationship table and updates the contact's key in the mapping relationship data corresponding to the card ID of the second target card to the key of the second target contact.
在一种可能的实现方式中,修改卡片关联的联系人的过程可以是:将卡片关联的第一联系人替换为第二联系人。例如,如图17所示,卡片111关联的原联系人是“Parrot”。修改后,卡片111关联的联系人变为“Cat”,即卡片111显示微信联系人“Cat”的信息。In a possible implementation, the process of modifying the contact associated with the card may be: replacing the first contact associated with the card with the second contact. For example, as shown in Figure 17, the original contact associated with card 111 is "Parrot". After modification, the contact associated with card 111 becomes “Cat”, that is, card 111 displays the information of WeChat contact “Cat”.
在另一种可能的实现方式中,修改卡片关联的联系人的过程还可以是:在卡片的原联系人基础上增加另一联系人,即,一个卡片关联两个联系人。例如,如图17所示,卡片111的原联系人是“Parrot”,修改后,卡片111的联系人变为“Parrot”和“Cat”,即卡片111显示短信联系人“Parrot”和微信联系人“Cat”的信息。当然,在其他可能的实现方式中,一个卡片还可以关联更多数量的联系人,例如,3个或以上,可以根据卡片的尺寸确定该卡片可以关联的联系人数量,如卡片尺寸越大可关联的联系人可以越多。In another possible implementation, the process of modifying the contacts associated with the card may also be: adding another contact based on the original contact of the card, that is, one card is associated with two contacts. For example, as shown in Figure 17, the original contact of card 111 is "Parrot". After modification, the contacts of card 111 become "Parrot" and "Cat", that is, card 111 displays the SMS contact "Parrot" and the WeChat contact Information about the person "Cat". Of course, in other possible implementations, a card can also be associated with a larger number of contacts, for example, 3 or more. The number of contacts that the card can be associated with can be determined according to the size of the card. For example, the larger the size of the card, the greater the number of contacts. The more contacts you can associate.
本实施例提供的卡片显示方法,可以在桌面上创建会话卡片,进而在会话卡片上添加联系人,从而使该卡片显示该联系人的信息,如头像、名称和会话消息内容等。编辑卡片的过程操作简单。而且,添加会话类型的卡片后,可以直接在卡片上显示该卡片关联的联系人的会话消息,用户无需打开通知栏查看通知消息,也无需打开该会话类APP查看对应联系人的消息,简化了用户查看会话类型消息的操作,提高了人机交互效率,以及提高了用户体验。The card display method provided in this embodiment can create a conversation card on the desktop, and then add a contact to the conversation card, so that the card displays the contact's information, such as avatar, name, conversation message content, etc. The process of editing cards is simple. Moreover, after adding a conversation type card, the conversation messages of the contacts associated with the card can be displayed directly on the card. The user does not need to open the notification bar to view the notification messages, nor does he need to open the conversation type APP to view the messages of the corresponding contact, which simplifies The user's operation of viewing conversation type messages improves the efficiency of human-computer interaction and improves the user experience.
此外,如图21~图23所示的过程,用户还可以删除添加至桌面的会话类型的卡片。如图30所示,删除会话类卡片的过程如下:In addition, according to the process shown in Figures 21 to 23, the user can also delete the session type card added to the desktop. As shown in Figure 30, the process of deleting session cards is as follows:
S210,PeopleSpaceWidgetProvider接收到删除会话类型卡片的事件后,调用桌面卡片管理器的删除卡片的方法,从向桌面卡片管理器传递目标卡片的卡片ID。S210, after receiving the event of deleting the session type card, the PeopleSpaceWidgetProvider calls the delete card method of the desktop card manager and passes the card ID of the target card to the desktop card manager.
例如,用户点击图22所示的“移除”选项删除已添加至桌面的卡片。For example, the user clicks the "Remove" option shown in Figure 22 to delete a card that has been added to the desktop.
PeopleSpaceWidgetProvider是实现桌面小工具的类,当电子设备的触摸屏检测到用户点击“移除”选项的操作后,生成删除卡片的事件并传递至PeopleSpaceWidgetProvider。PeopleSpaceWidgetProvider is a class that implements desktop gadgets. When the touch screen of the electronic device detects that the user clicks the "Remove" option, an event to delete the card is generated and passed to PeopleSpaceWidgetProvider.
PeopleSpaceWidgetProvider接收到删除卡片的事件后,向AppWidgetManager传递目标卡片的卡片ID,并调用AppWidgetManager的删除卡片的方法,以删除该目标卡片。目标卡片即欲删除的卡片。After receiving the event of deleting a card, PeopleSpaceWidgetProvider passes the card ID of the target card to AppWidgetManager and calls the delete card method of AppWidgetManager to delete the target card. The target card is the card to be deleted.
S220,桌面卡片管理器调用删除卡片的方法,基于目标卡片的卡片ID删除桌面上的目标卡片。S220: The desktop card manager calls a method of deleting a card to delete the target card on the desktop based on the card ID of the target card.
如图22所示,用户点击卡片操作选项卡210中的“移除”选项后,显示图23所示的桌面页面,该桌面页面不包括卡片111。As shown in Figure 22, after the user clicks the "Remove" option in the card operation tab 210, the desktop page shown in Figure 23 is displayed, and the desktop page does not include the card 111.
S230,桌面卡片管理器向PeopleSpaceWidgetProvider返回卡片成功删除的消息。S230: The desktop card manager returns a message that the card is successfully deleted to the PeopleSpaceWidgetProvider.
S240,PeopleSpaceWidgetProvider调用会话卡片管理器中更新目标卡片的映射数据的方法。S240, PeopleSpaceWidgetProvider calls the method in the session card manager to update the mapping data of the target card.
PeopleSpaceWidgetProvider向PeopleSpaceWidgetManager传递更新映射数据的动作,如删除,以及目标卡片的卡片ID,以便PeopleSpaceWidgetManager删除映射关系表中与该卡片ID对应的数据条目。PeopleSpaceWidgetProvider passes the action to update the mapping data, such as deletion, and the card ID of the target card to PeopleSpaceWidgetManager, so that PeopleSpaceWidgetManager can delete the data entry corresponding to the card ID in the mapping relationship table.
S250,会话卡片管理器基于目标卡片的卡片ID,删除映射关系表中目标卡片对应的映射数据条目。S250: The session card manager deletes the mapping data entry corresponding to the target card in the mapping relationship table based on the card ID of the target card.
本实施例提供的删除卡片的过程,在检测到用户删除桌面上的卡片的操作后,执行删除卡片的方法,同时,删除存储有卡片ID与关联的联系人之间的映射关系的映射关系表中已删除的卡片对应的映射数据,确保映射关系表中的数据准确。In the process of deleting a card provided by this embodiment, after detecting the user's operation of deleting a card on the desktop, the method of deleting the card is executed, and at the same time, the mapping relationship table that stores the mapping relationship between the card ID and the associated contact is deleted. Mapping data corresponding to the deleted card in , ensuring that the data in the mapping relationship table is accurate.
为桌面上的卡片添加联系人后,当接收到该联系人的会话消息后,会将最新的会话消息更新至该联系人对应的卡片上。例如,如图17所示,为卡片111添加联系人“Parrot”后,卡片111只显示联系人“Parrot”的头像和名称。接收到“Parrot”的会话消息后,卡片111更新为图18所示的视图界面,即,卡片111不仅显示联系人“Parrot”的头像和名称,还显示“Parrot”的最新会话消息的内容。After adding a contact to a card on the desktop, when the contact's conversation message is received, the latest conversation message will be updated to the card corresponding to the contact. For example, as shown in Figure 17, after adding the contact "Parrot" to the card 111, the card 111 only displays the avatar and name of the contact "Parrot". After receiving the conversation message of "Parrot", the card 111 is updated to the view interface shown in Figure 18, that is, the card 111 not only displays the avatar and name of the contact "Parrot", but also displays the content of the latest conversation message of "Parrot".
下面将结合图31介绍更新会话卡片所显示的会话消息的过程。如图31所示,更新卡片显示的会话消息的过程可以包括两种情况,一种可以通过监听通知中心的通知消息更新动作,更新对应卡片的视图界面的过程,如图31中S310~S380所示的过程;另一种可以通过直接监听会话消息的更新动作,更新对应卡片的视图界面的过程,如图31中S390~S3140所示的过程。The process of updating the conversation messages displayed on the conversation card will be introduced below with reference to Figure 31. As shown in Figure 31, the process of updating the session message displayed on the card can include two situations. One can be a process of updating the view interface of the corresponding card by monitoring the notification message update action of the notification center, as shown in S310 to S380 in Figure 31. The other process is to directly monitor the update action of the session message to update the view interface of the corresponding card, such as the process shown in S390 to S3140 in Figure 31.
本文中的通知消息是指NotificationListener通过监听NotificationService接收到的消息,例如,通知消息可以包括如下字段:更新动作(接收或移除)、是否属于会话类型(true或false)、通知所属的应用(即发送通知消息的应用)、通知联系人(发送通知的联系人),通知内容等。The notification message in this article refers to the message received by NotificationListener by monitoring NotificationService. For example, the notification message can include the following fields: update action (receive or remove), whether it belongs to the session type (true or false), and the application to which the notification belongs (i.e. The application that sent the notification message), the notification contact (the contact that sent the notification), the notification content, etc.
本文中的会话消息是指用户与会话APP中某一联系人之间的交互消息,会话消息可以包括如下字段:会话所属应用、会话联系人和会话消息内容。The conversation message in this article refers to the interactive message between the user and a contact in the conversation APP. The conversation message can include the following fields: the application to which the conversation belongs, the conversation contact and the conversation message content.
在通过监听通知消息更新对应卡片的场景中,通知中心接收到一条会话类型的通知消息(即是否属于会话类型的字段是true),则从通知消息中提取通知所属的应用、通知联系人、通知内容等内容获得会话消息,进而将这些消息更新至相应的卡片中。In the scenario where the corresponding card is updated by listening to the notification message, the notification center receives a notification message of session type (that is, whether the field of whether it belongs to the session type is true), and then extracts the application, notification contact, and notification to which the notification belongs from the notification message. Content and other content obtain conversation messages, and then update these messages to the corresponding cards.
下面先介绍S310~S380所示的更新卡片的视图界面的过程:The following first introduces the process of updating the card view interface shown in S310 to S380:
S310,电子设备的操作系统启动后,触发会话卡片管理器对通知监听服务进行监听。S310: After the operating system of the electronic device is started, the session card manager is triggered to monitor the notification listening service.
PeopleSpaceWidgetManager(会话卡片管理器)的一个主要功能就是监听应用程序框架层的NotificationListenerService,以实现对Notification(系统通知)的监听。One of the main functions of PeopleSpaceWidgetManager (session card manager) is to monitor the NotificationListenerService of the application framework layer to monitor Notification (system notification).
电子设备的操作系统启动后,桌面(SystemUI)的Status Bar(状态栏)组件的start方法通过调用PeopleSpaceWidgetManager的attach方法,将PeopleSpaceWidgetManager的通知处理者(Notification Handler)附加到NotificationListener的实例mNotificationListener中,以实现PeopleSpaceWidgetManager对应用程序框架层的NotificationListenerService的监听。After the operating system of the electronic device is started, the start method of the Status Bar component of the desktop (SystemUI) attaches the notification handler (Notification Handler) of the PeopleSpaceWidgetManager to the instance mNotificationListener of the NotificationListener by calling the attach method of the PeopleSpaceWidgetManager. PeopleSpaceWidgetManager monitors the NotificationListenerService of the application framework layer.
其中,NotificationListener属于System UI,是NotificationListenerService的继承类,主要实现NotificationListenerService对外暴露的接口。Among them, NotificationListener belongs to System UI and is an inherited class of NotificationListenerService. It mainly implements the interface exposed by NotificationListenerService.
S320,通知监听者监听到通知消息更新后,获取通知消息的信息。S320: After listening to the update of the notification message, the notification listener obtains the information of the notification message.
NotificationListener包括onNotificationPosted方法和onNotificationRemove方法。当系统收到新的通知时,NotificationListener会回调onNotificationPosted方法,获取系统接收到的通知的相关信息,如更新动作(即,接收)、通知内容、通知联系人、是否属于会话类型通知等。NotificationListener includes onNotificationPosted method and onNotificationRemove method. When the system receives a new notification, NotificationListener will call back the onNotificationPosted method to obtain relevant information about the notification received by the system, such as update action (ie, reception), notification content, notification contact, whether it is a session type notification, etc.
当监听到通知被删除时,NotificationListener会回调onNotificationRemove方法,获取被删除的通知的相关信息,如更新动作(即,移除)、通知内容、通知联系人、是否属于会话类型通知等。When it detects that a notification is deleted, NotificationListener will call back the onNotificationRemove method to obtain relevant information about the deleted notification, such as update action (ie, removal), notification content, notification contact, whether it is a session type notification, etc.
S330,通知监听者向会话卡片管理器传递需要更新的通知消息的信息。S330: The notification listener delivers the notification message information that needs to be updated to the session card manager.
PeopleSpaceWidgetManager的NotificationHandler也包括onNotificationPosted方法和onNotificationRemove方法。PeopleSpaceWidgetManager's NotificationHandler also includes onNotificationPosted method and onNotificationRemove method.
NotificationListener回调自身的onNotificationPosted方法和onNotificationRemove方法后,会调用Notification Handler的onNotificationPosted方法和onNotificationRemove方法,从而将获得的通知消息的信息传递给People SpaceWidget Manager。After the NotificationListener calls back its own onNotificationPosted method and onNotificationRemove method, it will call the Notification Handler's onNotificationPosted method and onNotificationRemove method, thereby passing the obtained notification message information to the People SpaceWidget Manager.
S340,会话卡片管理器判断更新的通知消息是否属于会话类型的通知;如果是,则继续执行S350;如果否,则结束当前流程。S340, the session card manager determines whether the updated notification message belongs to a session type notification; if so, continue to execute S350; if not, end the current process.
PeopleSpaceWidgetManager接收到通知传递的更新的通知消息的信息后,进一步调用updateWidgetsWithNotificationChanged方法,以便判断更新的通知消息是否是会话类型的通知。After receiving the updated notification message information delivered by the notification, PeopleSpaceWidgetManager further calls the updateWidgetsWithNotificationChanged method to determine whether the updated notification message is a session type notification.
NotificationListener传递给PeopleSpaceWidgetManager的通知消息的相关信息中包括是否属于会话类型通知的状态信息。The relevant information of the notification message passed by NotificationListener to PeopleSpaceWidgetManager includes status information of whether it is a session type notification.
例如,可以采用二进制数“1”表示该通知消息属于会话类型通知,“0”表示该通知消息不是会话类型通知。PeopleSpaceWidgetManager解析状态信息确定出更新的通知消息是否属于会话类型的通知。如果确定更新的通知消息是会话类型的通知,则继续判断其他信息项进而确定是否需要更新桌面卡片的界面。For example, a binary number "1" may be used to indicate that the notification message is a session type notification, and "0" indicates that the notification message is not a session type notification. PeopleSpaceWidgetManager parses the status information to determine whether the updated notification message is a session type notification. If it is determined that the updated notification message is a session type notification, continue to determine other information items to determine whether the interface of the desktop card needs to be updated.
S350,会话卡片管理器判断更新的通知消息的联系人是否添加会话卡片;如果是,则执行S360,如果否,则结束当前流程。S350: The conversation card manager determines whether the contact of the updated notification message has added a conversation card; if so, execute S360; if not, end the current process.
如果确定更新的通知是会话类型通知,PeopleSpaceWidgetManager通过调用updateWidgetsWithNotificationChanged方法继续判断是否为该通知的联系人添加了对应的会话卡片,如果为该联系人添加了会话卡片,则确定需要更新该会话卡片的界面。If it is determined that the updated notification is a conversation type notification, PeopleSpaceWidgetManager continues to determine whether a corresponding conversation card has been added to the contact of the notification by calling the updateWidgetsWithNotificationChanged method. If a conversation card has been added to the contact, it is determined that the interface of the conversation card needs to be updated. .
前已叙及,电子设备中维护有桌面上的会话卡片与关联的联系人之间的映射关系,即卡片ID与联系人的Key之间的映射关系。As mentioned before, the electronic device maintains a mapping relationship between the conversation card on the desktop and the associated contact, that is, the mapping relationship between the card ID and the key of the contact.
PeopleSpaceWidgetManager可以查找映射关系表中是否包含通知联系人的Key的映射数据,如果包含,表明已为该联系人添加了会话卡片。进一步查询获得与该通知联系人关联的卡片的卡片ID。PeopleSpaceWidgetManager can find whether the mapping relationship table contains the mapping data of the notification contact's Key. If it does, it indicates that a conversation card has been added to the contact. Further queries obtain the card ID of the card associated with the notification contact.
如果映射关系表中不包含该联系人的Key,表明没有为该联系人添加会话卡片。If the mapping relationship table does not contain the key of the contact, it means that the conversation card is not added to the contact.
S360,会话卡片管理器根据更新的通知消息的信息,获得第三目标卡片的第三目标视图界面。S360: The session card manager obtains the third target view interface of the third target card based on the updated notification message information.
其中,第三目标卡片是与更新的通知消息的联系人(即,第三目标联系人)关联的卡片。Wherein, the third target card is a card associated with the contact of the updated notification message (ie, the third target contact).
PeopleSpaceWidgetManager确定更新的通知消息的联系人存在对应的会话卡片后,调用updateAppWidgetViews方法,updateAppWidgetViews方法会根据第三目标联系人对应的信息(如头像、名称、会话内容)组装第一目标卡片的视图界面,即第三目标视图界面。After PeopleSpaceWidgetManager determines that the contact of the updated notification message has a corresponding conversation card, it calls the updateAppWidgetViews method. The updateAppWidgetViews method assembles the view interface of the first target card based on the information corresponding to the third target contact (such as avatar, name, conversation content). That is, the third target view interface.
在接收新的通知消息的场景下,将新的通知消息中需要更新的信息更新至目标卡片的界面中,例如,将第三目标卡片展示的会话内容更新为最新的会话内容。In the scenario of receiving a new notification message, update the information that needs to be updated in the new notification message to the interface of the target card, for example, update the session content displayed on the third target card to the latest session content.
在移除通知消息的场景下,则删除目标卡片所展示的会话内容。In the scenario where the notification message is removed, the conversation content displayed on the target card is deleted.
此外,无论是接收到新的通知消息还是移除通知消息的场景,如果通知传递的通知联系人的头像和/或名称更新,则将目标卡片展示的联系人的头像、名称更新为最新的头像、名称。In addition, whether a new notification message is received or a notification message is removed, if the avatar and/or name of the notification contact delivered by the notification are updated, the avatar and name of the contact displayed on the target card will be updated to the latest avatar. ,name.
S370,会话卡片管理器向桌面卡片管理器传递第三目标卡片的卡片ID和第三目标视图界面。S370: The session card manager passes the card ID of the third target card and the third target view interface to the desktop card manager.
PeopleSpaceWidgetManager调用AppWidgetManager的updateAppWidget方法将第三目标视图界面更新至第三目标卡片。PeopleSpaceWidgetManager calls the updateAppWidget method of AppWidgetManager to update the third target view interface to the third target card.
S380,桌面卡片管理器将第三目标卡片的界面更新为第三目标视图界面。S380, the desktop card manager updates the third target card interface to the third target view interface.
AppWidgetManager根据接收到的卡片ID确定欲更新界面的卡片,进一步将该卡片的界面更新为接收到的第三目标视图界面,从而完成卡片界面更新。AppWidgetManager determines the card whose interface is to be updated based on the received card ID, and further updates the card's interface to the received third target view interface, thereby completing the card interface update.
此外,在一些实施例中,卡片显示的消息可以跟随通知中心中通知消息的更新而更新,而通知中心中的通知消息的状态可以不因卡片消息的更新而变化。In addition, in some embodiments, the message displayed by the card may be updated following the update of the notification message in the notification center, and the status of the notification message in the notification center may not change due to the update of the card message.
例如,若通知中心接收到联系人A的新消息通知,而且,桌面上添加有与联系人A关联的卡片A,此种情况下,卡片A上消息更新为联系人A的最新消息。同时,通知中心通知用户收到联系人A的新消息的方式可以不变,如可以在通知栏中显示联系人A的新消息通知,以及,还可以在熄屏状态下收到通知自动亮屏显示,以显示新通知的内容预览。For example, if the notification center receives a new message notification from contact A, and card A associated with contact A is added to the desktop, in this case, the message on card A is updated to the latest message from contact A. At the same time, the notification center's method of notifying users of new messages received from Contact A can remain unchanged. For example, the new message notification of Contact A can be displayed in the notification bar, and the screen can also be automatically turned on when the screen is turned off when receiving notifications. Show to show a preview of the new notification's content.
当然,在其他实施例中,通知中心中通知消息的状态也可以跟随卡片消息的更新而变化,如卡片中的消息更新为通知中心中的最新消息后,可以删除通知中心中相应的消息通知,避免用户针对同一条消息重复操作。Of course, in other embodiments, the status of the notification message in the notification center can also change with the update of the card message. For example, after the message in the card is updated to the latest message in the notification center, the corresponding message notification in the notification center can be deleted. Prevent users from repeating operations on the same message.
又如,若通知中心已收到联系人A发送的新消息通知,然后,用户在桌面上添加了与联系人A关联的卡片A,即在添加联系人A的卡片之前,通知中心中就有联系人A的消息,此种情况下,在卡片A上添加联系人A后,卡片A不仅显示联系人A的信息(如,头像、名称等),同时还可以显示来自联系人A的新消息。而且,卡片A的更新不会影响通知中心中联系人A的新消息的状态,即卡片A显示联系人的新消息后,可以不删除通知中心中该联系人A的该消息。For another example, if the notification center has received a new message notification from contact A, and then the user adds card A associated with contact A on the desktop, that is, before adding contact A's card, there is Messages from contact A. In this case, after adding contact A to card A, card A not only displays contact A’s information (such as avatar, name, etc.), but also displays new messages from contact A. . Moreover, the update of card A will not affect the status of contact A's new messages in the notification center. That is, after card A displays the contact's new message, the message for contact A in the notification center does not need to be deleted.
当然,在其他实施例中,也可以删除通知中心中该联系人的消息通知,避免用户重复操作。Of course, in other embodiments, the contact's message notification in the notification center can also be deleted to avoid repeated operations by the user.
再如,用户删除了通知中心中的一条未读消息后,而且,桌面上添加有与该消息对应的联系人的卡片,则同步删除该卡片中的未读消息。但是,如果用户在卡片上删除了一条未读消息,可以不删除通知中心中的相应的未读消息。For another example, after the user deletes an unread message in the notification center, and a card of the contact corresponding to the message is added to the desktop, the unread message in the card will be deleted simultaneously. However, if the user deletes an unread message on the card, the corresponding unread message in the notification center does not need to be deleted.
当然,在其他实施例中,也可以删除通知中心中相应的未读消息,从而避免用户针对同一条未读消息重复操作。Of course, in other embodiments, the corresponding unread message in the notification center can also be deleted, thereby preventing the user from repeating operations on the same unread message.
NotificationListener只能监听通知消息(即,通知中心的消息),无法监听到会话的变化,例如,用户在会话应用(或通知中心)直接回复的消息,或者,会话APP推送的与该联系人相关的信息(如,好友生日提醒),由于会话APP推送消息的发送方是会话APP系统,而不是该联系人,因此通过监听通知中心无法获得该会话消息。而此种场景,也存在将用户回复的会话消息或APP推送的消息更新至相应的卡片上的需求。NotificationListener can only listen to notification messages (i.e., messages in the notification center) and cannot monitor changes in the session, such as messages directly replied by the user in the session application (or notification center), or messages related to the contact pushed by the session APP. Information (such as friend's birthday reminder), because the sender of the push message of the conversation APP is the conversation APP system, not the contact, the conversation message cannot be obtained by monitoring the notification center. In this scenario, there is also a need to update the conversation messages replied by the user or the messages pushed by the APP to the corresponding card.
下面将结合S390~S3140介绍通过直接监听会话的变化更新卡片显示内容的过程:The following will introduce the process of updating card display content by directly monitoring session changes in combination with S390 ~ S3140:
S390,会话卡片管理器(PeopleSpaceWidgetManager)注册会话监听,对会话状态进行监听。S390, the session card manager (PeopleSpaceWidgetManager) registers session monitoring and monitors the session status.
PeopleSpaceWidgetManager的另一个主要功能是监听应用程序框架层(FWK)的会话变化,以便及时更新会话卡片的视图界面。Another main function of PeopleSpaceWidgetManager is to monitor the session changes of the application framework layer (FWK) in order to timely update the view interface of the session card.
在一示例性实施例中,在会话卡片添加联系人时,PeopleSpaceWidgetManager在构造方法里获得FWK的PeopleManager服务,并向PeopleManager注册PeopleManager.ConversationListener的接口,以绑定TileConversationListener接口,实现对该联系人的会话进行监听。In an exemplary embodiment, when adding a contact to a conversation card, PeopleSpaceWidgetManager obtains the PeopleManager service of FWK in the construction method and registers the interface of PeopleManager.ConversationListener with PeopleManager to bind the TileConversationListener interface to implement a conversation with the contact. Monitor.
S3100,会话管理器监听到会话更新后,获取更新的会话的信息。S3100: After monitoring the session update, the session manager obtains the updated session information.
当PeopleManager监听到会话(Conversation)变化时,获取更新的会话的信息,例如,会话的联系人信息(如联系人Key)、会话内容等。When PeopleManager listens to changes in the conversation, it obtains updated conversation information, such as the conversation's contact information (such as contact key), conversation content, etc.
S3110,会话管理器向会话卡片管理器传递更新的会话的信息。S3110: The session manager transmits updated session information to the session card manager.
当监听到Conversation变化时,PeopleManager回调onConversationUpdate方法,并通过TileConversationListener接口将更新的会话的信息传递至PeopleSpaceWidgetManager。When listening to Conversation changes, PeopleManager calls back the onConversationUpdate method and passes the updated session information to PeopleSpaceWidgetManager through the TileConversationListener interface.
S3120,会话卡片管理器根据更新的会话的信息,获得第四目标联系人对应的第四目标卡片的目标视图界面(即,第四目标视图界面)。S3120: The conversation card manager obtains the target view interface (ie, the fourth target view interface) of the fourth target card corresponding to the fourth target contact according to the updated conversation information.
PeopleSpaceWidgetManager根据更新的会话对应的联系人Key,从联系人与会话卡片的映射关系表中查询得到该联系人Key关联的会话卡片(即第四目标卡片)的卡片ID。According to the contact key corresponding to the updated session, PeopleSpaceWidgetManager queries the mapping relationship table between contacts and session cards to obtain the card ID of the session card (ie, the fourth target card) associated with the contact key.
进一步,PeopleSpaceWidgetManager调用updateAppWidgetViews方法,根据更新的会话的信息组装第四目标卡片对应的视图界面,即第四目标视图界面。Further, PeopleSpaceWidgetManager calls the updateAppWidgetViews method to assemble the view interface corresponding to the fourth target card, that is, the fourth target view interface, based on the updated session information.
S3130,会话卡片管理器向桌面卡片管理器传递第四目标卡片的卡片ID,以及第四目标视图界面。S3130: The session card manager passes the card ID of the fourth target card and the fourth target view interface to the desktop card manager.
S3140,桌面卡片管理器将第四目标卡片的视图界面更新为第四目标视图界面。S3140, the desktop card manager updates the view interface of the fourth target card to the fourth target view interface.
在一示例性实施例中,PeopleSpaceWidgetManager基于卡片ID确定需要更新的第四目标卡片,进一步调用AppWidgetManager的updateAppWidget方法,将第四目标卡片的视图界面更新为第四目标视图界面。In an exemplary embodiment, PeopleSpaceWidgetManager determines the fourth target card that needs to be updated based on the card ID, and further calls the updateAppWidget method of AppWidgetManager to update the view interface of the fourth target card to the fourth target view interface.
例如,用户直接在通知栏提供的“回复”控件回复联系人的会话消息,此种场景下,通过上述步骤S390~S3140将用户回复的会话消息更新至该联系人对应的会话卡片上。For example, the user directly replies to the contact's conversation message in the "Reply" control provided in the notification bar. In this scenario, the conversation message replied by the user is updated to the conversation card corresponding to the contact through the above steps S390 to S3140.
又如,会话类APP向用户推送了关于好友的提醒信息,如好友过生日,此种场景下,利用该方案能够将该提醒信息更新至该好友对应的会话卡片上。For another example, a conversational APP pushes reminder information about a friend to the user, such as a friend's birthday. In this scenario, this solution can be used to update the reminder information to the conversation card corresponding to the friend.
本实施例提供的卡片消息更新过程,通过对通知消息的监听,进一步根据有变化的会话通知消息对应的信息更新目标会话卡片所展示的信息。以及,通过对会话消息的监听,进一步根据有变化的会话消息的信息更新目标会话卡片所展示的信息。The card message update process provided in this embodiment further updates the information displayed on the target session card based on the information corresponding to the changed session notification message by monitoring the notification message. And, by monitoring the session messages, the information displayed on the target session card is further updated according to the information of the changed session messages.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the above description of the embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working processes of the systems, devices and units described above, reference can be made to the corresponding processes in the foregoing method embodiments, which will not be described again here.
在本实施例所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this embodiment, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be The combination can either be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of this embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment. The aforementioned storage media include: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the protection scope of the present application. . Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims (19)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210332147.5A CN115525199B (en) | 2022-03-30 | 2022-03-30 | Card display method and device |
| CN202311485488.7A CN117724646A (en) | 2022-03-30 | 2022-03-30 | Card display method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210332147.5A CN115525199B (en) | 2022-03-30 | 2022-03-30 | Card display method and device |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311485488.7A Division CN117724646A (en) | 2022-03-30 | 2022-03-30 | Card display method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115525199A CN115525199A (en) | 2022-12-27 |
| CN115525199B true CN115525199B (en) | 2023-10-24 |
Family
ID=84696025
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210332147.5A Active CN115525199B (en) | 2022-03-30 | 2022-03-30 | Card display method and device |
| CN202311485488.7A Pending CN117724646A (en) | 2022-03-30 | 2022-03-30 | Card display method and device |
Family Applications After (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311485488.7A Pending CN117724646A (en) | 2022-03-30 | 2022-03-30 | Card display method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN115525199B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117193847A (en) * | 2023-09-08 | 2023-12-08 | 北京字跳网络技术有限公司 | Mini-client generation method, device, computer equipment and storage medium |
| CN119336202A (en) * | 2024-10-18 | 2025-01-21 | 北京字跳网络技术有限公司 | Method, device, equipment and storage medium for interface interaction |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102184096A (en) * | 2011-03-30 | 2011-09-14 | 华为技术有限公司 | Interactive method for converged communication, device and terminal |
| CN102902539A (en) * | 2012-09-21 | 2013-01-30 | 百度在线网络技术(北京)有限公司 | Contact person displaying method of instant messaging software |
| CN108519896A (en) * | 2017-02-27 | 2018-09-11 | 陕西胜慧源信息科技有限公司 | A kind of contact person's display methods of instant message applications |
| CN109643207A (en) * | 2017-04-05 | 2019-04-16 | 微软技术许可有限责任公司 | Desktop starter |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110099507A1 (en) * | 2009-10-28 | 2011-04-28 | Google Inc. | Displaying a collection of interactive elements that trigger actions directed to an item |
| CN103957318B (en) * | 2014-04-28 | 2016-10-05 | 广州三星通信技术研究有限公司 | The equipment of session content between management and contact person and method in the terminal |
-
2022
- 2022-03-30 CN CN202210332147.5A patent/CN115525199B/en active Active
- 2022-03-30 CN CN202311485488.7A patent/CN117724646A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102184096A (en) * | 2011-03-30 | 2011-09-14 | 华为技术有限公司 | Interactive method for converged communication, device and terminal |
| CN102902539A (en) * | 2012-09-21 | 2013-01-30 | 百度在线网络技术(北京)有限公司 | Contact person displaying method of instant messaging software |
| CN108519896A (en) * | 2017-02-27 | 2018-09-11 | 陕西胜慧源信息科技有限公司 | A kind of contact person's display methods of instant message applications |
| CN109643207A (en) * | 2017-04-05 | 2019-04-16 | 微软技术许可有限责任公司 | Desktop starter |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115525199A (en) | 2022-12-27 |
| CN117724646A (en) | 2024-03-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108512695B (en) | Method and device for monitoring application blockage | |
| US20220050578A1 (en) | Animated visual cues indicating the availability of associated content | |
| CN112041791B (en) | A method and terminal for displaying input method virtual keyboard | |
| EP2509390B1 (en) | Method and mobile terminal for processing contacts | |
| US9396005B2 (en) | Method, apparatus and computer storage medium for plug-in management and control | |
| WO2019206158A1 (en) | Interface displaying method, apparatus, and device | |
| CN108027706A (en) | A kind of application interface display methods and terminal device | |
| CN113127773B (en) | Page processing method, device, storage medium and terminal device | |
| CN115525199B (en) | Card display method and device | |
| CN102830989B (en) | Reader provides method, reader and the terminal of service | |
| CN118519553A (en) | Application data processing method and device and terminal equipment | |
| CN112134788A (en) | Event processing method and device, storage medium, mobile terminal and computer | |
| CN113709022A (en) | Message interaction method, device, equipment and storage medium | |
| CN108900407B (en) | Method and device for managing session record and storage medium | |
| CN114095610B (en) | A notification message processing method and computer-readable storage medium | |
| CN114721761B (en) | Terminal equipment, application icon management method and storage medium | |
| JP2024529821A (en) | Message Urgent Method, Apparatus, System and Storage Medium | |
| CN108206890A (en) | A kind of applicative notifications management-control method, device and terminal | |
| CN113642010B (en) | Method for acquiring data of extended storage device and mobile terminal | |
| CN117650829B (en) | Communication system, method and terminal equipment | |
| EP4583481A1 (en) | Multi-device networking system and method, and terminal devices | |
| CN114138140B (en) | Information management method, electronic device and storage medium | |
| EP2493158B1 (en) | Apparatus and method for managing call notes in a wireless device | |
| CN107888781B (en) | Information sharing method and device and computer storage medium | |
| CN113641533B (en) | Terminal and short message processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address |