onGroupApplicationAdded
Feature Introduction
info
After a user initiates a request to join a group, if approval is required for joining the group, the request initiator, the group owner, and the administrators of the group will receive this callback.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(GroupApplicationInfo info)? onGroupApplicationAdded;
Return Results
Name | Type | Description |
---|---|---|
info | GroupApplicationInfo | Group Application Info |
Return Prototype
- (void)onGroupApplicationAdded:(OIMGroupApplicationInfo *)groupApplication;
Return Results
Name | Type | Description |
---|---|---|
application | OIMGroupApplicationInfo | Group Application Info |
Return Prototype
void onGroupApplicationAdded(GroupApplicationInfo info)
Return Results
Name | Type | Description |
---|---|---|
info | GroupApplicationInfo | Group Application Info |
Return Prototype
onGroupApplicationAdded(data: WSEvent<GroupApplicationItem>): void;
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<GroupApplicationItem> | Group Application Info |
Call Example
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.OnGroupApplicationAdded, ({ data }) => {
// data - Group Application
});
Return Prototype
onGroupApplicationAdded(data: WSEvent<GroupApplicationItem>): void;
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<GroupApplicationItem> | Group Application Info |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnGroupApplicationAdded, ({ data }) => {
// data - Group Application
});
Prototype
void OnGroupApplicationAdded(GroupApplicationInfo application);
Parameter
Parameter Name | Type | Description |
---|---|---|
application | GroupApplicationInfo | Group Application Info |