onBlackAdded
Feature Introduction
info
You will receive this callback when a user's blacklist is added.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(BlacklistInfo info)? onBlacklistAdded;
Return Results
Name | Type | Description |
---|---|---|
info | BlacklistInfo | Blacklist information |
Return Prototype
- (void)onBlackAdded:(OIMBlackInfo *)info;
Return Results
Name | Type | Description |
---|---|---|
info | OIMBlackInfo | Blacklist information |
Function Prototype
- void onBlacklistAdded(BlacklistInfo u)
Return Results
Name | Type | Description |
---|---|---|
info | BlacklistInfo | Friend information |
Return Prototype
onBlackAdded(data: WSEvent<BlackUserItem>): void;
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<BlackUserItem> | Blacklist information |
Call Example
import { getSDK, CbEvents } from '@openim/wasm-client-sdk';
// or
// import { getSDK, CbEvents } from '@openim/client-sdk';
// const IMSDK = getSDK();
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnBlackAdded, ({ data }) => {
// data is the blacklist information
});
Return Prototype
onBlackAdded(data: WSEvent<BlackUserItem>): void;
Return Results
Name | Type | Description |
---|---|---|
data | WSEvent<BlackUserItem> | Blacklist information |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnBlackAdded, ({ data }) => {
// data is the blacklist information
});