IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMAdvancedMsgListenerabstract

Public Member Functions

void onRecvNewMessage (V2TIMMessage msg)
 
void onRecvMessageReadReceipts (List< V2TIMMessageReceipt > receiptList)
 
void onRecvC2CReadReceipt (List< V2TIMMessageReceipt > receiptList)
 
void onRecvMessageRevoked (String msgID, V2TIMUserFullInfo operateUser, String reason)
 
void onRecvMessageModified (V2TIMMessage msg)
 
void onRecvMessageExtensionsChanged (String msgID, List< V2TIMMessageExtension > extensions)
 
void onRecvMessageExtensionsDeleted (String msgID, List< String > extensionKeys)
 
void onRecvMessageReactionsChanged (List< V2TIMMessageReactionChangeInfo > changeInfos)
 
void onRecvMessageRevoked (String msgID)
 
void onGroupMessagePinned (String groupID, V2TIMMessage message, boolean isPinned, V2TIMGroupMemberInfo opUser)
 

Member Function Documentation

◆ onRecvNewMessage()

void onRecvNewMessage ( V2TIMMessage  msg)
inline

Received a new message

Parameters
msgMessage

◆ onRecvMessageReadReceipts()

void onRecvMessageReadReceipts ( List< V2TIMMessageReceipt receiptList)
inline

If the message you send supports read receipts, and the message receiver calls sendMessageReadReceipts, you will receive this notification.

◆ onRecvC2CReadReceipt()

void onRecvC2CReadReceipt ( List< V2TIMMessageReceipt receiptList)
inline

Read receipts for a one-to-one conversation. If a remote user calls markC2CMessageAsRead, you will receive this callback, which will only carry the remote user's userID and the timestamp when the message was read.

◆ onRecvMessageRevoked() [1/2]

void onRecvMessageRevoked ( String  msgID,
V2TIMUserFullInfo  operateUser,
String  reason 
)
inline

Message recall notification (Supported only in 7.4 and later versions)

Parameters
msgIDUnique ID of a message
operateUserOperator info
reasonReason of recall

◆ onRecvMessageModified()

void onRecvMessageModified ( V2TIMMessage  msg)
inline

Message content modified

◆ onRecvMessageExtensionsChanged()

void onRecvMessageExtensionsChanged ( String  msgID,
List< V2TIMMessageExtension extensions 
)
inline

Message extension changed

◆ onRecvMessageExtensionsDeleted()

void onRecvMessageExtensionsDeleted ( String  msgID,
List< String >  extensionKeys 
)
inline

Message extension deleted

◆ onRecvMessageReactionsChanged()

void onRecvMessageReactionsChanged ( List< V2TIMMessageReactionChangeInfo changeInfos)
inline

Message reaction changed.

  • This callback is an additional callback for message reactions. It only contains the information of changed reactions.
  • If the field totalUserCount in the callback is 0, it means that no users are using the reaction, and you can remove it from the UI.

◆ onRecvMessageRevoked() [2/2]

void onRecvMessageRevoked ( String  msgID)
inline

Received a message recall notification (This is to be deprecated. Please use onRecvMessageRevoked(String, V2TIMUserFullInfo, String) instead )

Parameters
msgIDUnique ID of a message

◆ onGroupMessagePinned()

void onGroupMessagePinned ( String  groupID,
V2TIMMessage  message,
boolean  isPinned,
V2TIMGroupMemberInfo  opUser 
)
inline

Changes to the pinned group message list (supported by version 7.9 and above)

Parameters
groupIDGroup ID
messageChanged group pinned message
isPinnedtype
opUserHandler
Attention
If the change type is "unpin", the "message" parameter only contains the key of the message, without the complete message body.