onBlackDeleted
Description
info
This callback is triggered when a user is removed from the blacklist.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(BlacklistInfo info)? onBlacklistDeleted;
Return Results
| Name | Type | Description |
|---|---|---|
| info | BlacklistInfo | Blacklist info |
Return Prototype
- (void)onBlackDeleted:(OIMBlackInfo *)info;
Return Results
| Name | Type | Description |
|---|---|---|
| info | OIMBlackInfo | Blacklist info |
Function Prototype
- void onBlacklistDeleted(BlacklistInfo u);
Return Results
| Name | Type | Description |
|---|---|---|
| info | BlacklistInfo | Blacklist info |
Return Prototype
onBlackDeleted(data: WSEvent<BlackUserItem>): void;
Call Example
import { getSDK } from '@openim/wasm-client-sdk';
const IMSDK = getSDK();
// use in electron with ffi
// import { getWithRenderProcess } from '@openim/electron-client-sdk/lib/render';
// const { instance: IMSDK } = getWithRenderProcess();
// use in mini program
// import { getSDK } from '@openim/client-sdk';
// const IMSDK = getSDK();
IMSDK.on(CbEvents.OnBlackDeleted, ({ data }) => {
// data: blacklist info
});
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent<BlackUserItem> | Blacklist info |
Return Prototype
onBlackDeleted(data: WSEvent<BlackUserItem>): void;
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent<BlackUserItem> | Blacklist info |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnBlackDeleted, ({ data }) => {
// data: blacklist info
});