onFriendApplicationRejected
Feature Introduction
info
When a friend application is rejected, both the initiator and the receiver of the application will receive this callback.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(FriendApplicationInfo application)? onFriendApplicationRejected;
Return Results
Name | Type | Description |
---|---|---|
application | FriendApplicationInfo | Friend Application |
Return Prototype
- (void)onFriendApplicationRejected:(OIMFriendApplication *)application;
Return Results
Name | Type | Description |
---|---|---|
application | OIMFriendApplication | Friend Application |
Return Prototype
void onFriendApplicationRejected(FriendApplicationInfo application)
Return Results
Name | Type | Description |
---|---|---|
application | FriendApplicationInfo | Friend Application Rejected |
Return Prototype
onFriendApplicationRejected(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.OnFriendApplicationRejected, ({ data }) => {
// data - Friend Application
});
Return Prototype
onFriendApplicationRejected(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.OnFriendApplicationRejected, ({ data }) => {
// data - Friend Application
});
Prototype
void OnFriendApplicationRejected(FriendApplicationInfo application);
Parameter
Parameter Name | Type | Description |
---|---|---|
application | FriendApplicationInfo | Friend Application |