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

Public Member Functions

void onMemberEnter (String groupID, List< V2TIMGroupMemberInfo > memberList)
 
void onMemberLeave (String groupID, V2TIMGroupMemberInfo member)
 
void onMemberInvited (String groupID, V2TIMGroupMemberInfo opUser, List< V2TIMGroupMemberInfo > memberList)
 
void onMemberKicked (String groupID, V2TIMGroupMemberInfo opUser, List< V2TIMGroupMemberInfo > memberList)
 
void onMemberInfoChanged (String groupID, List< V2TIMGroupMemberChangeInfo > v2TIMGroupMemberChangeInfoList)
 
void onGroupCreated (String groupID)
 
void onGroupDismissed (String groupID, V2TIMGroupMemberInfo opUser)
 
void onGroupRecycled (String groupID, V2TIMGroupMemberInfo opUser)
 
void onGroupInfoChanged (String groupID, List< V2TIMGroupChangeInfo > changeInfos)
 
void onReceiveJoinApplication (String groupID, V2TIMGroupMemberInfo member, String opReason)
 
void onApplicationProcessed (String groupID, V2TIMGroupMemberInfo opUser, boolean isAgreeJoin, String opReason)
 
void onGrantAdministrator (String groupID, V2TIMGroupMemberInfo opUser, List< V2TIMGroupMemberInfo > memberList)
 
void onRevokeAdministrator (String groupID, V2TIMGroupMemberInfo opUser, List< V2TIMGroupMemberInfo > memberList)
 
void onQuitFromGroup (String groupID)
 
void onReceiveRESTCustomData (String groupID, byte[] customData)
 
void onGroupAttributeChanged (String groupID, Map< String, String > groupAttributeMap)
 

Member Function Documentation

◆ onMemberEnter()

void onMemberEnter ( String  groupID,
List< V2TIMGroupMemberInfo memberList 
)
inline

Users join the group (received by all members)

Parameters
groupIDGroup ID
memberListMembers who join the group

◆ onMemberLeave()

void onMemberLeave ( String  groupID,
V2TIMGroupMemberInfo  member 
)
inline

Users leave the group (received by all members)

Parameters
groupIDGroup ID
memberMembers who leave the group

◆ onMemberInvited()

void onMemberInvited ( String  groupID,
V2TIMGroupMemberInfo  opUser,
List< V2TIMGroupMemberInfo memberList 
)
inline

Users are added to a group by others (received by all members)

Parameters
groupIDGroup ID
opUserHandler
memberListMembers who are added to the group

◆ onMemberKicked()

void onMemberKicked ( String  groupID,
V2TIMGroupMemberInfo  opUser,
List< V2TIMGroupMemberInfo memberList 
)
inline

Users are removed from a group by others (received by all members)

Parameters
groupIDGroup ID
opUserHandler
memberListMembers who are removed from the group

◆ onMemberInfoChanged()

void onMemberInfoChanged ( String  groupID,
List< V2TIMGroupMemberChangeInfo v2TIMGroupMemberChangeInfoList 
)
inline

Group member information modified, supporting notifications for muting only (received by all members)

Attention
Meeting groups (Meeting) and audio-video groups (AVChatRoom) do not have this callback by default. To configure callback for them, please submit a ticket.
Parameters
groupIDGroup ID
v2TIMGroupMemberChangeInfoListGroup member information modified

◆ onGroupCreated()

void onGroupCreated ( String  groupID)
inline

Group created (used for multi-device synchronization)

Parameters
groupIDGroup ID

◆ onGroupDismissed()

void onGroupDismissed ( String  groupID,
V2TIMGroupMemberInfo  opUser 
)
inline

Group deleted (received by all members)

Parameters
groupIDGroup ID
opUserHandler

◆ onGroupRecycled()

void onGroupRecycled ( String  groupID,
V2TIMGroupMemberInfo  opUser 
)
inline

Group repossessed (received by all members)

Parameters
groupIDGroup ID
opUserHandler

◆ onGroupInfoChanged()

void onGroupInfoChanged ( String  groupID,
List< V2TIMGroupChangeInfo changeInfos 
)
inline

Group information modified (received by all members)

Parameters
changeInfosGroup information modified

◆ onReceiveJoinApplication()

void onReceiveJoinApplication ( String  groupID,
V2TIMGroupMemberInfo  member,
String  opReason 
)
inline

New group joining request (received only by the group owner and admin)

Parameters
groupIDGroup ID
memberApplicant
opReasonRequest reason

◆ onApplicationProcessed()

void onApplicationProcessed ( String  groupID,
V2TIMGroupMemberInfo  opUser,
boolean  isAgreeJoin,
String  opReason 
)
inline

Group joining request handled by group owner or admin (received only by the applicant)

Parameters
groupIDGroup ID
opUserHandler
isAgreeJoinWhether to agree to join the group
opReasonHandling reason

◆ onGrantAdministrator()

void onGrantAdministrator ( String  groupID,
V2TIMGroupMemberInfo  opUser,
List< V2TIMGroupMemberInfo memberList 
)
inline

Specify the admin identity

Parameters
groupIDGroup ID
opUserHandler
memberListGroup members handled

◆ onRevokeAdministrator()

void onRevokeAdministrator ( String  groupID,
V2TIMGroupMemberInfo  opUser,
List< V2TIMGroupMemberInfo memberList 
)
inline

Cancel the admin identity

Parameters
groupIDGroup ID
opUserHandler
memberListGroup members handled

◆ onQuitFromGroup()

void onQuitFromGroup ( String  groupID)
inline

Quit a group (mainly used for multi-device synchronization, not supported by audio-video groups)

Parameters
groupIDGroup ID

◆ onReceiveRESTCustomData()

void onReceiveRESTCustomData ( String  groupID,
byte[]  customData 
)
inline

Received a custom system message delivered via the RESTful API

Parameters
groupIDGroup ID
customDataCustom data

◆ onGroupAttributeChanged()

void onGroupAttributeChanged ( String  groupID,
Map< String, String >  groupAttributeMap 
)
inline

Received group attribute update

Parameters
groupIDGrroup ID
groupAttributeMapAll attributes of the group