onSelfInfoUpdated
Description
info
This callback is received when the logged-in user's personal information changes.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(UserInfo info)? onSelfInfoUpdated;
Return Results
| Name | Type | Description |
|---|---|---|
| info | UserInfo | Personal profile |
Return Prototype
- (void)onSelfInfoUpdated:(OIMUserInfo *)info;
Return Results
| Name | Type | Description |
|---|---|---|
| userInfo | OIMUserInfo | Personal profile |
Return Prototype
void onSelfInfoUpdated(UserInfo info)
Return Results
| Name | Type | Description |
|---|---|---|
| info | UserInfo | User profile information |
Return Prototype
onSelfInfoUpdated(data: WSEvent<SelfUserInfo>): void;
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent<SelfUserInfo> | Personal profile |
Call Example
import { getSDK } from '@openim/wasm-client-sdk';
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnSelfInfoUpdated, ({ data }) => {
// data: personal profile
});
Return Prototype
onSelfInfoUpdated(data: WSEvent<SelfUserInfo>): void;
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent<SelfUserInfo> | Personal profile |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnSelfInfoUpdated, ({ data }) => {
// data: personal profile
});