onFriendInfoChanged
Feature Introduction
info
When the personal information of a friend changes (including remarks), this callback is received.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(FriendInfo info)? onFriendInfoChanged;
Return Results
Name | Type | Description |
---|---|---|
info | FriendInfo | Friend Information |
Return Prototype
- (void)onFriendInfoChanged:(OIMFriendInfo *)info;
Return Results
Name | Type | Description |
---|---|---|
info | OIMFriendInfo | Friend Information |
Return Prototype
void onFriendInfoChanged(FriendInfo info)
Return Results
Name | Type | Description |
---|---|---|
info | FriendInfo | Friend Information |
Return Prototype
onFriendInfoChanged(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 { getSDK, CbEvents } from '@openim/client-sdk';
// const IMSDK = getSDK();
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnFriendInfoChanged, ({ data }) => {
// data - Friend Information
});
Return Prototype
onFriendInfoChanged(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.OnFriendInfoChanged, ({ data }) => {
// data - Friend Information
});
Prototype
void OnFriendInfoChanged(FriendInfo info);
Parameter
Parameter Name | Type | Description |
---|---|---|
info | FriendInfo | Friend Information |