onSelfInfoUpdated
Feature Introduction
info
This callback is triggered when the personal information of the currently logged-in user changes.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function(UserInfo info)? onSelfInfoUpdated;
Return Result
Name | Type | Description |
---|---|---|
info | UserInfo | Personal Information |
Return Prototype
- (void)onSelfInfoUpdated:(OIMUserInfo *)info;
Return Result
Name | Type | Description |
---|---|---|
userInfo | OIMUserInfo | Personal Information |
Return Prototype
void onSelfInfoUpdated(UserInfo info)
Return Result
Name | Type | Description |
---|---|---|
info | UserInfo | User Information |
Return Prototype
onSelfInfoUpdated(data: WSEvent<SelfUserInfo>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<SelfUserInfo> | Personal Information |
Example Call
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.OnSelfInfoUpdated, ({ data }) => {
// data Personal Information
});
Return Prototype
onSelfInfoUpdated(data: WSEvent<SelfUserInfo>): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent<SelfUserInfo> | Personal Information |
Example Call
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnSelfInfoUpdated, ({ data }) => {
// data Personal Information
});