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)
 
virtual void OnGroupMessagePinned (const V2TIMString &groupID, const V2TIMMessage &message, bool isPinned, const V2TIMGroupMemberInfo &opUser)
 

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

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.

Parameters
receiptListRead receipt list

◆ OnRecvMessageReadReceipts()

virtual void OnRecvMessageReadReceipts ( const V2TIMMessageReceiptVector receiptList)
inlinevirtual

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

Parameters
receiptListRead receipt list

◆ OnRecvMessageRevoked() [1/2]

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

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 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]

virtual void OnRecvMessageRevoked ( const V2TIMString messageID)
inlinevirtual

Received a message recall notification (This is to be deprecated. Please use onRecvMessageRevoked(const V2TIMString &msgID, const V2TIMUserFullInfo &operateUser, const V2TIMString &reason) instead )

Parameters
messageIDUnique ID of a message

◆ OnGroupMessagePinned()

virtual void OnGroupMessagePinned ( const V2TIMString groupID,
const V2TIMMessage message,
bool  isPinned,
const V2TIMGroupMemberInfo opUser 
)
inlinevirtual

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

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