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.
V2TIMAdvancedMsgListener

Public Member Functions

 V2TIMAdvancedMsgListener ()
 
virtual ~V2TIMAdvancedMsgListener ()
 
virtual void OnRecvNewMessage (const V2TIMMessage &message)
 
virtual void OnRecvC2CReadReceipt (const V2TIMMessageReceiptVector &receiptList)
 
virtual void OnRecvMessageReadReceipts (const V2TIMMessageReceiptVector &receiptList)
 
virtual void OnRecvMessageRevoked (const V2TIMString &msgID, const V2TIMUserFullInfo &operateUser, const V2TIMString &reason)
 
virtual void OnRecvMessageModified (const V2TIMMessage &message)
 
virtual void OnRecvMessageExtensionsChanged (const V2TIMString &msgID, const V2TIMMessageExtensionVector &extensions)
 
virtual void OnRecvMessageExtensionsDeleted (const V2TIMString &msgID, const V2TIMStringVector &extensionKeys)
 
virtual void OnRecvMessageReactionsChanged (const V2TIMMessageReactionChangeInfoVector &changeInfos)
 
virtual void OnRecvMessageRevoked (const V2TIMString &messageID)
 

Constructor & Destructor Documentation

◆ V2TIMAdvancedMsgListener()

◆ ~V2TIMAdvancedMsgListener()

virtual ~V2TIMAdvancedMsgListener ( )
virtual

Member Function Documentation

◆ OnRecvNewMessage()

virtual void OnRecvNewMessage ( const V2TIMMessage message)
inlinevirtual

Received a new message

Parameters
messageMessage

◆ OnRecvC2CReadReceipt()

virtual void OnRecvC2CReadReceipt ( const V2TIMMessageReceiptVector receiptList)
inlinevirtual

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´╝ë

Parameters
receiptListRead receipt list

◆ OnRecvMessageReadReceipts()

virtual void OnRecvMessageReadReceipts ( const V2TIMMessageReceiptVector receiptList)
inlinevirtual

Notification of message read receipt

Parameters
receiptListRead receipt list

◆ OnRecvMessageRevoked() [1/2]

virtual void OnRecvMessageRevoked ( const V2TIMString msgID,
const V2TIMUserFullInfo operateUser,
const V2TIMString reason 
)
inlinevirtual

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()

virtual void OnRecvMessageModified ( const V2TIMMessage message)
inlinevirtual

Message content modified

◆ OnRecvMessageExtensionsChanged()

virtual void OnRecvMessageExtensionsChanged ( const V2TIMString msgID,
const V2TIMMessageExtensionVector extensions 
)
inlinevirtual

Message extension changed

◆ OnRecvMessageExtensionsDeleted()

virtual void OnRecvMessageExtensionsDeleted ( const V2TIMString msgID,
const V2TIMStringVector extensionKeys 
)
inlinevirtual

Message extension deleted

◆ OnRecvMessageReactionsChanged()

virtual void OnRecvMessageReactionsChanged ( const V2TIMMessageReactionChangeInfoVector changeInfos)
inlinevirtual

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]

virtual void OnRecvMessageRevoked ( const V2TIMString messageID)
inlinevirtual

Received a message recall notification (It is deprecated and discouraged to use this callback. Please use onRecvMessageRevoked(const V2TIMString &msgID, const V2TIMUserFullInfo &operateUser, const V2TIMString &reason) instead )

Parameters
messageIDUnique ID of a message