onFriendApplicationAccepted
Feature Introduction
info
When a friend application is accepted, both the applicant and the recipient will receive this callback, and they successfully establish a friendship.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(FriendApplicationInfo application)? onFriendApplicationAccepted;
Return Results
Name | Type | Description |
---|---|---|
application | FriendApplicationInfo | Friend Application |
Return Prototype
- (void)onFriendApplicationAccepted:(OIMFriendApplication *)application;
Return Results
Name | Type | Description |
---|---|---|
application | OIMFriendApplication | Friend Application |
Return Prototype
void onFriendApplicationAccepted(FriendApplicationInfo application);
Return Results
Name | Type | Description |
---|---|---|
application | FriendApplicationInfo | Friend Rejection Details |
Return Prototype
onFriendApplicationAccepted(data: WSEvent<FriendApplicationItem>): void;
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<FriendApplicationItem> | Friend Application |
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.OnFriendApplicationAccepted, ({ data }) => {
// data - Friend Application
});
Return Prototype
onFriendApplicationAccepted(data: WSEvent<FriendApplicationItem>): void;
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<FriendApplicationItem> | Friend Application |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnFriendApplicationAccepted, ({ data }) => {
// data - Friend Application
});
Prototype
void OnFriendApplicationAccepted(FriendApplicationInfo application);
Parameter
Parameter Name | Type | Description |
---|---|---|
application | FriendApplicationInfo | Friend Application |