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
Swift - V2TIMSimpleMsgListener
Swift

Protocol V2TIMSimple​Msg​Listener

public protocol V2TIMSimpleMsgListener : AnyObject  

Definition of V2TIMSimpleMsgListener (For advanced message listener, please see @ref V2TIMManager+Message.h -> V2TIMAdvancedMsgListener)

V2TIMSimpleMsgListener V2TIMSimpleMsgListener AnyObject AnyObject V2TIMSimpleMsgListener->AnyObject

Conforms To

AnyObject

Requirements

on​Recv​C2CText​Message(msg​ID:​sender:​text:​)

func onRecvC2CTextMessage(msgID: String, sender: V2TIMUserInfo, text: String?) 

Received a one-to-one text message

on​Recv​C2CCustom​Message(msg​ID:​sender:​custom​Data:​)

func onRecvC2CCustomMessage(msgID: String, sender: V2TIMUserInfo, customData: Data?) 

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

on​Recv​Group​Text​Message(msg​ID:​group​ID:​sender:​text:​)

func onRecvGroupTextMessage(msgID: String, groupID: String, sender: V2TIMGroupMemberInfo, text: String?) 

Received a group text message

on​Recv​Group​Custom​Message(msg​ID:​group​ID:​sender:​custom​Data:​)

func onRecvGroupCustomMessage(msgID: String, groupID: String, sender: V2TIMGroupMemberInfo, customData: Data?) 

Received a group custom (signaling) message