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

Public Member Functions

void onRecvC2CTextMessage (String msgID, V2TIMUserInfo sender, String text)
 
void onRecvC2CCustomMessage (String msgID, V2TIMUserInfo sender, byte[] customData)
 
void onRecvGroupTextMessage (String msgID, String groupID, V2TIMGroupMemberInfo sender, String text)
 
void onRecvGroupCustomMessage (String msgID, String groupID, V2TIMGroupMemberInfo sender, byte[] customData)
 

Member Function Documentation

◆ onRecvC2CTextMessage()

void onRecvC2CTextMessage ( String  msgID,
V2TIMUserInfo  sender,
String  text 
)
inline

Received a one-to-one text message

Parameters
msgIDUnique ID of a message
senderSender information
textContent sent

◆ onRecvC2CCustomMessage()

void onRecvC2CCustomMessage ( String  msgID,
V2TIMUserInfo  sender,
byte[]  customData 
)
inline

Received a one-to-one custom (signaling) message

Parameters
msgIDUnique ID of a message
senderSender information
customDataContent sent

◆ onRecvGroupTextMessage()

void onRecvGroupTextMessage ( String  msgID,
String  groupID,
V2TIMGroupMemberInfo  sender,
String  text 
)
inline

Received a group text message

Parameters
msgIDUnique ID of a message
groupIDGroup ID
senderGroup member information of the sender
textContent sent

◆ onRecvGroupCustomMessage()

void onRecvGroupCustomMessage ( String  msgID,
String  groupID,
V2TIMGroupMemberInfo  sender,
byte[]  customData 
)
inline

Received a group custom (signaling) message

Parameters
msgIDUnique ID of a message
groupIDGroup ID
senderGroup member information of the sender
customDataContent sent