onJoinedGroupDeleted
Feature Introduction
info
This callback is triggered when the number of groups the user belongs to decreases (e.g., when leaving a group voluntarily or when a group is disbanded).
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(GroupInfo info)? onJoinedGroupDeleted;
Return Result
Name | Type | Description |
---|---|---|
info | GroupInfo | Group chat information |
Return Prototype
- (void)onJoinedGroupDeleted:(OIMGroupInfo *)groupInfo;
Return Result
Name | Type | Description |
---|---|---|
groupInfo | OIMGroupInfo | Group chat information |
Return Prototype
void onJoinedGroupDeleted(GroupInfo info);
Return Result
Name | Type | Description |
---|---|---|
info | GroupInfo | Friend information |
Return Prototype
onJoinedGroupDeleted(data: WSEvent<GroupItem>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<GroupItem> | Group chat information |
Example Call
import { getSDK, CbEvents } from '@openim/wasm-client-sdk';
// or
// import { OpenIMSDK, CbEvents } from 'open-im-sdk';
// const IMSDK = new OpenIMSDK();
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnJoinedGroupDeleted, ({ data }) => {
// data: Group information
});
Return Prototype
onJoinedGroupDeleted(data: WSEvent<GroupItem>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<GroupItem> | Group chat information |
Example Call
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnJoinedGroupDeleted, ({ data }) => {
// data: Group information
});