hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
Public Member Functions | List of all members
com.hyphenate.EMGroupChangeListener Interface Reference

Public Member Functions

void onInvitationReceived (String groupId, String groupName, String inviter, String reason)
 
void onApplicationReceived (String groupId, String groupName, String applicant, String reason)
 
void onApplicationAccept (String groupId, String groupName, String accepter)
 
void onApplicationDeclined (String groupId, String groupName, String decliner, String reason)
 
void onInvitationAccpted (String groupId, String invitee, String reason)
 
void onInvitationDeclined (String groupId, String invitee, String reason)
 
void onUserRemoved (String groupId, String groupName)
 
void onGroupDestroy (String groupId, String groupName)
 
void onAutoAcceptInvitationFromGroup (String groupId, String inviter, String inviteMessage)
 

Detailed Description

Group change listener, listen group related events. Such as receive join group invite, and join group application, etc...

Member Function Documentation

void com.hyphenate.EMGroupChangeListener.onApplicationAccept ( String  groupId,
String  groupName,
String  accepter 
)

Join group's application has been approved

Parameters
groupIdThe group ID
groupNamegroup's name
accepterwho approve the application
void com.hyphenate.EMGroupChangeListener.onApplicationDeclined ( String  groupId,
String  groupName,
String  decliner,
String  reason 
)

Join group's application has been declined

Parameters
groupIdThe group ID
groupNamegroup's name
declinerdecliner's username
reasondecline reason
void com.hyphenate.EMGroupChangeListener.onApplicationReceived ( String  groupId,
String  groupName,
String  applicant,
String  reason 
)

some one want to join the group.

Parameters
groupIdThe group ID
groupNamegroup's name
applicantThe applicant want to join the group
reasonLiteral message coming with the application
void com.hyphenate.EMGroupChangeListener.onAutoAcceptInvitationFromGroup ( String  groupId,
String  inviter,
String  inviteMessage 
)

When receive group join invitation, will auto accept it, and join the group. Please refer to com.hyphenate.chat.EMOptions.setAutoAcceptGroupInvitation(boolean value)

void com.hyphenate.EMGroupChangeListener.onGroupDestroy ( String  groupId,
String  groupName 
)

group dissolution SDK will delete the group from local DB and local memory cache, then notify user this group has been destroyed

void com.hyphenate.EMGroupChangeListener.onInvitationAccpted ( String  groupId,
String  invitee,
String  reason 
)

invite some one to be member of group, and the user has accept the invitation

Parameters
groupIdThe group ID
invitee
reason
void com.hyphenate.EMGroupChangeListener.onInvitationDeclined ( String  groupId,
String  invitee,
String  reason 
)

invite some one to be member of group, and the user has decline the invitation

Parameters
groupIdThe group ID
invitee
reasonrefuse reason
void com.hyphenate.EMGroupChangeListener.onInvitationReceived ( String  groupId,
String  groupName,
String  inviter,
String  reason 
)

current user receive group invitation

Parameters
groupIdThe group ID.
groupNamegroup's subject
inviterWho invite you join the group
reasonLiteral message coming with the invitation
void com.hyphenate.EMGroupChangeListener.onUserRemoved ( String  groupId,
String  groupName 
)

current user has been remove from the group

Parameters
groupId
groupName

The documentation for this interface was generated from the following file: