Protocol
V2TIMGroupListener
public protocol V2TIMGroupListener : AnyObject
Definition of V2TIMGroupListener
Relationships
Conforms To
AnyObject
Requirements
onMemberEnter(groupID:memberList:)
func onMemberEnter(groupID: String, memberList: Array<V2TIMGroupMemberInfo>)
Notification about group member
Users joined the group (received by all members) By default, meeting groups do not trigger this callback. If you want to receive this callback for meeting groups too, please configure it in the console (Configuration -> Group configuration -> Group system notification configuration -> Notification of group member change).
onMemberLeave(groupID:member:)
func onMemberLeave(groupID: String, member: V2TIMGroupMemberInfo)
Users left the group (received by all members).
By default, meeting groups do not trigger this callback. If you want to receive this callback for meeting groups too, please configure it in the console (Configuration -> Group configuration -> Group system notification configuration -> Notification of group member change).
onMemberInvited(groupID:opUser:memberList:)
func onMemberInvited(groupID: String, opUser: V2TIMGroupMemberInfo, memberList: Array<V2TIMGroupMemberInfo>)
Users are added to a group by others (received by all members)
onMemberKicked(groupID:opUser:memberList:)
func onMemberKicked(groupID: String, opUser: V2TIMGroupMemberInfo, memberList: Array<V2TIMGroupMemberInfo>)
Users are removed from a group by others (received by all members)
onMemberInfoChanged(groupID:changeInfoList:)
func onMemberInfoChanged(groupID: String, changeInfoList: Array<V2TIMGroupMemberChangeInfo>)
Group member information modified (received by all members). This callback is triggered only when a group member is muted.
By default, meeting groups and AVChatRoom groups do not trigger this callback. If you want to receive this callback for those groups too, please configure it in the console (Configuration -> Group configuration -> Group system notification configuration -> Notification of group member profile change).
onAllGroupMembersMuted(groupID:isMute:)
func onAllGroupMembersMuted(groupID: String, isMute: Bool)
All group members are muted or unmuted (received by all members).
To receive this callback, you need to turn on the corresponding feature in the console (Configuration -> Group configuration -> Group system notification configuration -> Notification of group profile change -> Notification of muting all change). Supported only in 7.5 and later versions.
onMemberMarkChanged(groupID:memberIDList:markType:enableMark:)
func onMemberMarkChanged(groupID: String, memberIDList: Array<String>, markType: Int, enableMark: Bool)
Some group members are marked (received by all members).
This callback is only triggered by community groups. This is only supported in 7.5 and later versions of the Premium Edition.
onGroupCreated(groupID:)
func onGroupCreated(groupID: String)
Notification about group lifecycle
Group created (used for multi-device synchronization)
onGroupDismissed(groupID:opUser:)
func onGroupDismissed(groupID: String, opUser: V2TIMGroupMemberInfo)
Group deleted (received by all members)
onGroupRecycled(groupID:opUser:)
func onGroupRecycled(groupID: String, opUser: V2TIMGroupMemberInfo)
Group repossessed (received by all members)
onGroupInfoChanged(groupID:changeInfoList:)
func onGroupInfoChanged(groupID: String, changeInfoList: Array<V2TIMGroupChangeInfo>)
Group information modified (received by all members).
This callback may be triggered if the following fields are changed: groupName, introduction, notification, faceUrl, owner, allMute, custom. You can limit notifications or roaming to specific fields in the console (Configuration -> Group configuration -> Group system notification configuration -> Notification of group profile change).
onGroupAttributeChanged(groupID:attributes:)
func onGroupAttributeChanged(groupID: String, attributes: Dictionary<String, String>)
Group attributes changed(received by all members)
onGroupCounterChanged(groupID:key:newValue:)
func onGroupCounterChanged(groupID: String, key: String, newValue: Int)
Group counter update notification with the newest counters which have been modified(received by all members).
onReceiveJoinApplication(groupID:member:opReason:)
func onReceiveJoinApplication(groupID: String, member: V2TIMGroupMemberInfo, opReason: String?)
Notification about group join request
New group joining request (received only by the group owner and admin)
onApplicationProcessed(groupID:opUser:isAgreeJoin:opReason:)
func onApplicationProcessed(groupID: String, opUser: V2TIMGroupMemberInfo, isAgreeJoin: Bool, opReason: String?)
The request to join the group or invite has been processed by the group owner or administrator. (received only by the applicant)
onGrantAdministrator(groupID:opUser:memberList:)
func onGrantAdministrator(groupID: String, opUser: V2TIMGroupMemberInfo, memberList: Array<V2TIMGroupMemberInfo>)
Other notifications
Some users are made admins.
onRevokeAdministrator(groupID:opUser:memberList:)
func onRevokeAdministrator(groupID: String, opUser: V2TIMGroupMemberInfo, memberList: Array<V2TIMGroupMemberInfo>)
Some users are removed as admin.
onQuitFromGroup(groupID:)
func onQuitFromGroup(groupID: String)
You quit a group. (mainly used for multi-device synchronization)
onReceiveRESTCustomData(groupID:data:)
func onReceiveRESTCustomData(groupID: String, data: Data?)
Received a custom system message delivered via the RESTful API
onTopicCreated(groupID:topicID:)
func onTopicCreated(groupID: String, topicID: String)
Notification about topic
Topic created
onTopicDeleted(groupID:topicIDList:)
func onTopicDeleted(groupID: String, topicIDList: Array<String>)
Topic deleted
onTopicChanged(groupID:topicInfo:)
func onTopicChanged(groupID: String, topicInfo: V2TIMTopicInfo)
Topic information modified (received by all members)