JMSGGroupDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | JMSGGroupDelegate.h |
– onGroupInfoChanged:
群组信息 (GroupInfo) 变更通知
- (void)onGroupInfoChanged:(JMSGGroup *)group
Parameters
group |
变更后的群组对象 |
---|
Discussion
如果想要获取通知, 需要先注册回调. 具体请参考 JMessageDelegate 里的说明.
Declared In
JMSGGroupDelegate.h
– onReceiveApplyJoinGroupApprovalEvent:
监听申请入群通知
- (void)onReceiveApplyJoinGroupApprovalEvent:(JMSGApplyJoinGroupEvent *)event
Parameters
event |
申请入群事件 |
---|
Availability
3.4.0
Discussion
只有群主和管理员能收到此事件;申请入群事件相关参数请查看 JMSGApplyJoinGroupEvent 类,在群主审批此事件时需要传递事件的相关参数
Declared In
JMSGGroupDelegate.h
– onReceiveGroupAdminRejectApplicationEvent:
监听管理员拒绝入群申请通知
- (void)onReceiveGroupAdminRejectApplicationEvent:(JMSGGroupAdminRejectApplicationEvent *)event
Parameters
event |
拒绝入群申请事件 |
---|
Availability
3.4.0
Discussion
只有申请方和被申请方会收到此事件;拒绝的相关描述和原因请查看 JMSGGroupAdminRejectApplicationEvent 类
Declared In
JMSGGroupDelegate.h
– onReceiveGroupAdminApprovalEvent:
监听管理员审批通知
- (void)onReceiveGroupAdminApprovalEvent:(JMSGGroupAdminApprovalEvent *)event
Parameters
event |
管理员审批事件 |
---|
Availability
3.5.0
Discussion
只有管理员才会收到该事件;当管理员同意或拒绝了某个入群申请事件时,其他管理员就会收到该事件,相关属性请查看 JMSGGroupAdminApprovalEvent 类
Declared In
JMSGGroupDelegate.h
– onReceiveGroupNicknameChangeEvents:
群成员群昵称变更通知
- (void)onReceiveGroupNicknameChangeEvents:(NSArray<__kindofJMSGGroupNicknameChangeEvent*> *)events
Parameters
events |
群成员昵称变更事件列表 |
---|
Availability
3.7.0
Discussion
如果是离线事件,SDK 会将所有的修改记录加入数组上抛。事件具体相关属性请查看 JMSGGroupNicknameChangeEvent 类
Declared In
JMSGGroupDelegate.h
– onReceiveGroupAnnouncementEvents:
群公告变更通知
- (void)onReceiveGroupAnnouncementEvents:(NSArray<__kindofJMSGGroupAnnouncementEvent*> *)events
Parameters
event |
群公告事件列表 |
---|
Availability
3.8.0
Discussion
事件具体相关属性请查看 JMSGGroupAnnouncementEvent 类
Declared In
JMSGGroupDelegate.h
– onReceiveGroupBlacklistChangeEvents:
群组黑名单变更通知
- (void)onReceiveGroupBlacklistChangeEvents:(NSArray<__kindofJMSGGroupBlacklistChangeEvent*> *)events
Parameters
event |
群组黑名单事件列表 |
---|
Availability
3.8.0
Discussion
事件具体相关属性请查看 JMSGGroupBlacklistChangeEvent 类
Declared In
JMSGGroupDelegate.h