onJoinedGroupAdded
Feature Introduction
info
This callback is triggered when the number of groups the user belongs to increases (e.g., when being invited to a group, or when a request to join a group is approved).
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(GroupInfo info)? onJoinedGroupAdded;
Return Result
Name | Type | Description |
---|---|---|
info | GroupInfo | Group chat information |
Return Prototype
- (void)onJoinedGroupAdded:(OIMGroupInfo *)groupInfo;
Return Result
Name | Type | Description |
---|---|---|
groupInfo | OIMGroupInfo | Group chat information |
Return Prototype
void onJoinedGroupAdded(GroupInfo info);
Return Result
Name | Type | Description |
---|---|---|
info | GroupInfo | Friend information |
Return Prototype
onJoinedGroupAdded(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.OnJoinedGroupAdded, ({ data }) => {
// data: Group information
});