"@A @B @C......"
, which can be further edited before sent.
In the group chat list of the receiver's conversation UI, the identifier "someone@me"
or "@all"
will be displayed to remind the user that the user was mentioned by someone in the group chat.Listening for the @ character for group member selection | Editing and sending the group @ message | Receiving the group @ message |
| | |
Cell
.V2TimMessage
object, while the nickname is to be displayed in the text box.createTextAtMessage
API (Details) to create a text @ message, get the V2TIMMessage
object, and specify the target group members.sendMessage
API (Details) to send the created @ message.// Create a group @ messageTencentImSDKPlugin.v2TIMManager.getMessageManager().createTextAtMessage(text: "123", atUserList: ['user1','user2','all']);// Send the group @ messageTencentImSDKPlugin.v2TIMManager.getMessageManager().sendMessage(id: id,receiver: "",groupID: "",);
groupAtInfolist
API (Details) of V2TimConversation
to get the @ data list of the conversation.atType
API (Details) of the V2TimGroupAtInfo
object in the list to get the @ data type and update it to the @ information of the conversation.V2TimValueCallback<V2TimConversationResult> getConversationList = await TencentImSDKPlugin.v2TIMManager.getConversationManager().getConversationList(nextSeq: "", count: 10);if(getConversationList.code == 0){getConversationList.data.conversationList.forEach((element) {element.groupAtInfoList.forEach((element) {if(element.atType == 0){// @me}if(element.atType == 1){// @all}if(element.atType == 2){// @all and @me}});});}
Was this page helpful?