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)
 

Member Function Documentation

◆ onRecvNewMessage()

void onRecvNewMessage ( V2TIMMessage  msg)
inline

Received a new message

Parameters
msgMessage

◆ onRecvMessageReadReceipts()

void onRecvMessageReadReceipts ( List< V2TIMMessageReceipt receiptList)
inline

Notification of message read receipt(If the message sent by yourself supports read receipts, the message receiver calls sendMessageReadReceipts, and you will receive the notification)

◆ onRecvC2CReadReceipt()

void onRecvC2CReadReceipt ( List< V2TIMMessageReceipt receiptList)
inline

C2C peer user conversation read notification(If the peer user calls the markC2CMessageAsRead interface, you will receive the callback, and the callback will only carry the peer userID and peer read timestamp information)

◆ onRecvMessageRevoked() [1/2]

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

Received a 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 incremental callback for message reactions, and will only contain the changed reactions information. When the totalUserCount value in the changed reaction is 0, it means that no users are using the reaction, and you can remove the display of the reaction on the UI.

◆ onRecvMessageRevoked() [2/2]

void onRecvMessageRevoked ( String  msgID)
inline

Received a message recall notification (It is deprecated and discouraged to use this callback. Please use onRecvMessageRevoked(String, V2TIMUserFullInfo, String) instead )

Parameters
msgIDUnique ID of a message