|
hyphenate_SDK3.0
3.8.1
hyphenatejavaIMSDK
|
Public 成员函数 | |
| void | onInvitationReceived (String groupId, String groupName, String inviter, String reason) |
| void | onRequestToJoinReceived (String groupId, String groupName, String applicant, String reason) |
| void | onRequestToJoinAccepted (String groupId, String groupName, String accepter) |
| void | onRequestToJoinDeclined (String groupId, String groupName, String decliner, String reason) |
| void | onInvitationAccepted (String groupId, String invitee, String reason) |
| void | onInvitationDeclined (String groupId, String invitee, String reason) |
| void | onUserRemoved (String groupId, String groupName) |
| void | onGroupDestroyed (String groupId, String groupName) |
| void | onAutoAcceptInvitationFromGroup (String groupId, String inviter, String inviteMessage) |
| void | onMuteListAdded (String groupId, final List< String > mutes, final long muteExpire) |
| void | onMuteListRemoved (String groupId, final List< String > mutes) |
| void | onWhiteListAdded (final String groupId, final List< String > whitelist) |
| void | onWhiteListRemoved (final String groupId, final List< String > whitelist) |
| void | onAllMemberMuteStateChanged (final String groupId, final boolean isMuted) |
| void | onAdminAdded (String groupId, String administrator) |
| void | onAdminRemoved (String groupId, String administrator) |
| void | onOwnerChanged (String groupId, String newOwner, String oldOwner) |
| void | onMemberJoined (final String groupId, final String member) |
| void | onMemberExited (final String groupId, final String member) |
| void | onAnnouncementChanged (String groupId, String announcement) |
| void | onSharedFileAdded (String groupId, EMMucSharedFile sharedFile) |
| void | onSharedFileDeleted (String groupId, String fileId) |
群组相关的监听器,侦听群组相关的事件,例如加群申请,希望加入某个群,这个群的群主同意或者拒绝,被踢群等事件。
| void com.hyphenate.EMGroupChangeListener.onAdminAdded | ( | String | groupId, |
| String | administrator | ||
| ) |
添加成员管理员权限
| groupId | 添加管理员权限对应的群组 |
| administrator | 被添加为管理员的成员 |
| void com.hyphenate.EMGroupChangeListener.onAdminRemoved | ( | String | groupId, |
| String | administrator | ||
| ) |
取消某管理员权限
| groupId | 取消管理员权限事件发生的群id |
| administrator | 被取消管理员权限的成员 |
| void com.hyphenate.EMGroupChangeListener.onAllMemberMuteStateChanged | ( | final String | groupId, |
| final boolean | isMuted | ||
| ) |
全员禁言状态的改变
| groupId | 群组id |
| isMuted | 是否开启了全员禁言 |
| void com.hyphenate.EMGroupChangeListener.onAnnouncementChanged | ( | String | groupId, |
| String | announcement | ||
| ) |
群公告更改事件
| groupId | 群组id |
| announcement | 更新的公告内容 |
| 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.onGroupDestroyed | ( | String | groupId, |
| String | groupName | ||
| ) |
群组被解散。 sdk 会先删除本地的这个群组,之后通过此回调通知应用,此群组被删除了
| groupId | 群组的ID |
| groupName | 群组的名称 |
| void com.hyphenate.EMGroupChangeListener.onInvitationAccepted | ( | 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.onMemberExited | ( | final String | groupId, |
| final String | member | ||
| ) |
群组成员主动退出事件
| groupId | 群组id |
| member | 退出的成员的id |
| void com.hyphenate.EMGroupChangeListener.onMemberJoined | ( | final String | groupId, |
| final String | member | ||
| ) |
群组加入新成员事件
| groupId | 群组id |
| member | 新成员id |
| void com.hyphenate.EMGroupChangeListener.onMuteListAdded | ( | String | groupId, |
| final List< String > | mutes, | ||
| final long | muteExpire | ||
| ) |
有成员被禁言,此处不同于blacklist
| groupId | 产生禁言的群组id |
| mutes | 被禁言的成员列表 Map.entry.key 是禁言的成员id,Map.entry.value是禁言动作存在的时间。 |
| void com.hyphenate.EMGroupChangeListener.onMuteListRemoved | ( | String | groupId, |
| final List< String > | mutes | ||
| ) |
有成员从禁言列表中移除,恢复发言权限,此处不同于blacklist
| groupId | 产生禁言的群组id |
| mutes | 有成员从群组禁言列表中移除 |
| void com.hyphenate.EMGroupChangeListener.onOwnerChanged | ( | String | groupId, |
| String | newOwner, | ||
| String | oldOwner | ||
| ) |
转移群组所有者权限
| groupId | 转移群组所有者权限的群id |
| newOwner | 新的群组所有者 |
| oldOwner | 原群组所有者 |
| void com.hyphenate.EMGroupChangeListener.onRequestToJoinAccepted | ( | String | groupId, |
| String | groupName, | ||
| String | accepter | ||
| ) |
加群申请被对方接受
| groupId | 群组的id |
| groupName | 群组的名字 |
| accepter | 同意人得username |
| void com.hyphenate.EMGroupChangeListener.onRequestToJoinDeclined | ( | String | groupId, |
| String | groupName, | ||
| String | decliner, | ||
| String | reason | ||
| ) |
加群申请被拒绝
| groupId | 群组id |
| groupName | 群组名字 |
| decliner | 拒绝人得username |
| reason | 拒绝理由 |
| void com.hyphenate.EMGroupChangeListener.onRequestToJoinReceived | ( | String | groupId, |
| String | groupName, | ||
| String | applicant, | ||
| String | reason | ||
| ) |
用户申请加入群
| groupId | 要加入的群的id |
| groupName | 要加入的群的名称 |
| applicant | 申请人的username |
| reason | 申请加入的reason |
| void com.hyphenate.EMGroupChangeListener.onSharedFileAdded | ( | String | groupId, |
| EMMucSharedFile | sharedFile | ||
| ) |
群组增加共享文件事件
| groupId | 群组id |
| sharedFile | 增加的文件 |
| void com.hyphenate.EMGroupChangeListener.onSharedFileDeleted | ( | String | groupId, |
| String | fileId | ||
| ) |
群组删除共享文件事件
| groupId | 群组id |
| fileId | 删除文件的id |
| void com.hyphenate.EMGroupChangeListener.onUserRemoved | ( | String | groupId, |
| String | groupName | ||
| ) |
当前登录用户被管理员移除出群组
| groupId | |
| groupName |
| void com.hyphenate.EMGroupChangeListener.onWhiteListAdded | ( | final String | groupId, |
| final List< String > | whitelist | ||
| ) |
白名单成员增加
| groupId | 群组id |
| whitelist | 白名单中增加的成员名单 |
| void com.hyphenate.EMGroupChangeListener.onWhiteListRemoved | ( | final String | groupId, |
| final List< String > | whitelist | ||
| ) |
白名单成员减少
| groupId | 群组id |
| whitelist | 白名单中移除的成员名单 |
1.8.10