human: 如何处理七牛云的即时通讯BMXGroupServiceListener

gpt: [即时通讯](https://developer.qiniu.com/IM) > API 文档 > [ANDROID
API](https://developer.qiniu.com/IM/api/8191/android-im-class-indexes) >
BMXGroupServiceListener

#  BMXGroupServiceListener

最近更新时间: 2022-07-22 22:42:52

class im.floo.floolib.BMXGroupServiceListener

群组变化监听者

Index

字段

  * swigCMemOwn

方法

  * getCPtr
  * finalize
  * delete
  * swigDirectorDisconnect
  * swigReleaseOwnership
  * swigTakeOwnership
  * onGroupCreate
  * onGroupListUpdate
  * onGroupJoined
  * onGroupLeft
  * onInvitated
  * onInvitationAccepted
  * onInvitationDeclined
  * onApplied
  * onApplicationAccepted
  * onApplicationDeclined
  * onMembersBanned
  * onMembersUnbanned
  * onMemberJoined
  * onMemberLeft
  * onAdminsAdded
  * onAdminsRemoved
  * onOwnerAssigned
  * onGroupInfoUpdate
  * onMemberChangeNickName
  * onAnnouncementUpdate
  * onSharedFileUploaded
  * onSharedFileDeleted
  * onSharedFileUpdated
  * onBlockListAdded
  * onBlockListRemoved
  * onGroupListUpdate
  * registerGroupService

字段

swigCMemOwn

  * protected transient boolean swigCMemOwn
  * 

方法

getCPtr

  * protected static long getCPtr(BMXGroupServiceListener obj);
  * Returns long

finalize

  * protected void finalize();
  * Returns void

delete

  * public synchronized void delete();
  * Returns void

swigDirectorDisconnect

  * protected void swigDirectorDisconnect();
  * Returns void

swigReleaseOwnership

  * public void swigReleaseOwnership();
  * Returns void

swigTakeOwnership

  * public void swigTakeOwnership();
  * Returns void

onGroupCreate

  * public void onGroupCreate(BMXGroup group);
  * 多设备同步创建群组

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

新创建的群组

Returns void

onGroupListUpdate

  * public void onGroupListUpdate(BMXGroupList list);
  * 群列表更新了

Parameters

    * list: BMXGroupList 

更新的群组列表

Returns void

onGroupJoined

  * public void onGroupJoined(BMXGroup group);
  * 加入了某群

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

加入的群组

Returns void

onGroupLeft

  * public void onGroupLeft(BMXGroup group, String reason);
  * 退出了某群

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

退出的群组

    * reason: String 

退出原因

Returns void

onInvitated

  * public void onInvitated(long groupId, long inviter, String message);
  * 收到入群邀请

Parameters

    * groupId: long 

邀请进入的群组id

    * inviter: long 

邀请者id

    * message: String 

邀请原因

Returns void

onInvitationAccepted

  * public void onInvitationAccepted(BMXGroup group, long inviteeId);
  * 入群邀请被接受

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

邀请被同意的群组

    * inviteeId: long 

被邀请者id

Returns void

onInvitationDeclined

  * public void onInvitationDeclined(BMXGroup group, long inviteeId, String reason);
  * 入群申请被拒绝

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

邀请被拒绝的群组

    * inviteeId: long 

被邀请者id

    * reason: String 

拒绝原因

Returns void

onApplied

  * public void onApplied(BMXGroup group, long applicantId, String message);
  * 收到入群申请

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

收到入群申请的群组

    * applicantId: long 

申请者id

    * message: String 

申请原因

Returns void

onApplicationAccepted

  * public void onApplicationAccepted(BMXGroup group, long approver);
  * 入群申请被接受

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

入群申请被接受的群组

    * approver: long 

申请的批准者

Returns void

onApplicationDeclined

  * public void onApplicationDeclined(BMXGroup group, long approver, String reason);
  * 入群申请被拒绝

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

入群申请被拒绝的群组

    * approver: long 

申请的批准者

    * reason: String 

拒绝的原因

Returns void

onMembersBanned

  * public void onMembersBanned(BMXGroup group, ListOfLongLong members, long duration);
  * 群成员被禁言

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

群成员被禁言的群组

    * members: ListOfLongLong 

被禁言的群成员id列表

    * duration: long 

禁言时长

Returns void

onMembersUnbanned

  * public void onMembersUnbanned(BMXGroup group, ListOfLongLong members);
  * 群成员被解除禁言

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

群成员被解除禁言的群组

    * members: ListOfLongLong 

被解除禁言的群成员id列表

Returns void

onMemberJoined

  * public void onMemberJoined(BMXGroup group, long memberId, long inviter);
  * 加入新成员

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

有成员加入的群组

    * memberId: long 

加入成员的id

    * inviter: long 

邀请者id

Returns void

onMemberLeft

  * public void onMemberLeft(BMXGroup group, long memberId, String reason);
  * 群成员退出

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

有成员退出的群组

    * memberId: long 

退出的群成员id

    * reason: String 

退出的原因

Returns void

onAdminsAdded

  * public void onAdminsAdded(BMXGroup group, ListOfLongLong members);
  * 添加了新管理员

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

发生添加新管理员的群组

    * members: ListOfLongLong 

被提升为管理员的成员列表

Returns void

onAdminsRemoved

  * public void onAdminsRemoved(BMXGroup group, ListOfLongLong members, String reason);
  * 移除了管理员

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

发生移除管理员的群组

    * members: ListOfLongLong 

被移除了管理员的成员列表

    * reason: String 

被移除的原因

Returns void

onOwnerAssigned

  * public void onOwnerAssigned(BMXGroup group);
  * 成为群主

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

被转让为群主的群组

Returns void

onGroupInfoUpdate

  * public void onGroupInfoUpdate(BMXGroup group, BMXGroup.UpdateInfoType type);
  * 群组信息变更

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

群信息发生变更的群组

    * type: UpdateInfoType 

发生变更的群信息类型

Returns void

onMemberChangeNickName

  * public void onMemberChangeNickName(BMXGroup group, long memberId, String nickName);
  * 群成员更改群内昵称

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

发生群成员变更群昵称的群组

    * memberId: long 

变更群昵称的群成员id

    * nickName: String 

变更后的群昵称

Returns void

onAnnouncementUpdate

  * public void onAnnouncementUpdate(BMXGroup group, BMXGroup.Announcement announcement);
  * 收到群公告

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

发生群公告更新的群组

    * announcement: Announcement 

变更后的最新的群更高

Returns void

onSharedFileUploaded

  * public void onSharedFileUploaded(BMXGroup group, BMXGroup.SharedFile sharedFile);
  * 收到共享文件

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

发生群共享文件上传的群组

    * sharedFile: SharedFile 

新上传的群共享文件

Returns void

onSharedFileDeleted

  * public void onSharedFileDeleted(BMXGroup group, BMXGroup.SharedFile sharedFile);
  * 删除了共享文件

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

发生群共享文件删除的群组

    * sharedFile: SharedFile 

被删除的群共享文件

Returns void

onSharedFileUpdated

  * public void onSharedFileUpdated(BMXGroup group, BMXGroup.SharedFile sharedFile);
  * 共享文件更新文件名

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

发生群共享文件更新的群组

    * sharedFile: SharedFile 

更新的群共享文件

Returns void

onBlockListAdded

  * public void onBlockListAdded(BMXGroup group, ListOfLongLong members);
  * 添加黑名单

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

添加黑名单的群组

    * members: ListOfLongLong 

添加的黑名单成员列表

Returns void

onBlockListRemoved

  * public void onBlockListRemoved(BMXGroup group, ListOfLongLong members);
  * 删除黑名单

Parameters

    * group: [BMXGroup](https://developer.qiniu.com/IM/api/8211/bmxgroup)

删除黑名单的群组

    * members: ListOfLongLong 

删除的黑名单成员列表

Returns void

onGroupListUpdate

  * public void onGroupListUpdate();
  * 客户端从服务器拉取到新群组时触发，用于用户群组列表更新，从SDK调用本地获取群组即可取得全部成员信息

Returns void

registerGroupService

  * public void registerGroupService(BMXGroupService service);
  * Returns void

以上内容是否对您有帮助？