hyphenate_SDK3.0
3.0.1
hyphenatejavaIMSDK
|
Public 成员函数 | |
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) |
群组相关的监听器,侦听群组相关的事件,例如加群申请,希望加入某个群,这个群的群主同意或者拒绝,被踢群等事件。
void com.hyphenate.EMGroupChangeListener.onApplicationAccept | ( | String | groupId, |
String | groupName, | ||
String | accepter | ||
) |
加群申请被对方接受
groupId | 群组的id |
groupName | 群组的名字 |
accepter | 同意人得username |
void com.hyphenate.EMGroupChangeListener.onApplicationDeclined | ( | String | groupId, |
String | groupName, | ||
String | decliner, | ||
String | reason | ||
) |
加群申请被拒绝
groupId | 群组id |
groupName | 群组名字 |
decliner | 拒绝人得username |
reason | 拒绝理由 |
void com.hyphenate.EMGroupChangeListener.onApplicationReceived | ( | String | groupId, |
String | groupName, | ||
String | applicant, | ||
String | reason | ||
) |
用户申请加入群
groupId | 要加入的群的id |
groupName | 要加入的群的名称 |
applyer | 申请人的username |
reason | 申请加入的reason |
void com.hyphenate.EMGroupChangeListener.onAutoAcceptInvitationFromGroup | ( | String | groupId, |
String | inviter, | ||
String | inviteMessage | ||
) |
自动同意加入群组 sdk会先加入这个群组,并通过此回调通知应用 参考com.hyphenate.chat.EMOptions.setAutoAcceptGroupInvitation(boolean value)
groupId | |
inviter | |
inviteMessage |
void com.hyphenate.EMGroupChangeListener.onGroupDestroy | ( | String | groupId, |
String | groupName | ||
) |
群组被解散。 sdk 会先删除本地的这个群组,之后通过此回调通知应用,此群组被删除了
groupId | 群组的ID |
groupName | 群组的名称 |
void com.hyphenate.EMGroupChangeListener.onInvitationAccpted | ( | String | groupId, |
String | invitee, | ||
String | reason | ||
) |
群组邀请被接受
groupId | |
invitee | |
reason |
void com.hyphenate.EMGroupChangeListener.onInvitationDeclined | ( | String | groupId, |
String | invitee, | ||
String | reason | ||
) |
群组邀请被拒绝
groupId | |
invitee | |
reason |
void com.hyphenate.EMGroupChangeListener.onInvitationReceived | ( | String | groupId, |
String | groupName, | ||
String | inviter, | ||
String | reason | ||
) |
当前用户收到加入群组邀请
groupId | 要加入的群的id |
groupName | 要加入的群的名称 |
inviter | 邀请人的id |
reason | 邀请加入的reason |
void com.hyphenate.EMGroupChangeListener.onUserRemoved | ( | String | groupId, |
String | groupName | ||
) |
当前登录用户被管理员移除出群组
groupId | |
groupName |