SDKsFlutter
Update the current user’s profile
Update the current user’s nickname, avatar, and extension data with the OpenIM Flutter SDK.
Pass only the nickname, faceURL, or ex values that actually changed:
await OpenIM.iMManager.userManager.setSelfInfo(
nickname: nickname?.trim(),
faceURL: faceURL,
ex: mergedExtra,
);ex is a complete string value. Read and parse the current value, then merge your application's namespace before writing it. Future completion, a reconciliation query, and onSelfInfoUpdated are three separate stages.
Although globalRecvMsgOpt is also written through setSelfInfo(), it is an account-level message policy. See Set the global message receive option for its enum values and usage boundaries.
This page is the sole owner of onSelfInfoUpdated. Combine the callback into the application's single OnUserListener; see Events overview for listener setup.
Was this page helpful?