Protocol
V2TIMSimpleMsgListener
public protocol V2TIMSimpleMsgListener : AnyObject
Definition of V2TIMSimpleMsgListener (For advanced message listener, please see @ref V2TIMManager+Message.h -> V2TIMAdvancedMsgListener)
Relationships
Conforms To
AnyObject
Requirements
onRecvC2CTextMessage(msgID:sender:text:)
func onRecvC2CTextMessage(msgID: String, sender: V2TIMUserInfo, text: String?)
Received a one-to-one text message
onRecvC2CCustomMessage(msgID:sender:customData:)
func onRecvC2CCustomMessage(msgID: String, sender: V2TIMUserInfo, customData: Data?)
Received a one-to-one custom (signaling) message
onRecvGroupTextMessage(msgID:groupID:sender:text:)
func onRecvGroupTextMessage(msgID: String, groupID: String, sender: V2TIMGroupMemberInfo, text: String?)
Received a group text message
onRecvGroupCustomMessage(msgID:groupID:sender:customData:)
func onRecvGroupCustomMessage(msgID: String, groupID: String, sender: V2TIMGroupMemberInfo, customData: Data?)
Received a group custom (signaling) message