onFriendDeleted
Feature Introduction
info
When a user's friend list decreases, this callback will be received.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(FriendInfo info)? onFriendDeleted;
Return Results
Name | Type | Description |
---|---|---|
info | FriendInfo | Friend Information |
Return Prototype
- (void)onFriendDeleted:(OIMFriendInfo *)info;
Return Results
Name | Type | Description |
---|---|---|
info | OIMFriendInfo | Friend Information |
Return Prototype
void onFriendDeleted(FriendInfo info)
Return Results
Name | Type | Description |
---|---|---|
info | FriendInfo | Friend Information |
Return Prototype
onFriendDeleted(data: WSEvent<FriendUserItem>): void;
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<FriendUserItem> | Friend Information |
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.OnFriendDeleted, ({ data }) => {
// data - Friend Information
});
Return Prototype
onFriendDeleted(data: WSEvent<FriendUserItem>): void;
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<FriendUserItem> | Friend Information |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnFriendDeleted, ({ data }) => {
// data - Friend Information
});
Prototype
void OnFriendDeleted(FriendInfo info);
Parameter
Parameter Name | Type | Description |
---|---|---|
info | FriendInfo | Friend Information |