Chat SDK for Unity and Windows v1.2.1
Public Member Functions | List of all members
AgoraChat.UserInfoManager Class Reference
Inheritance diagram for AgoraChat.UserInfoManager:

Public Member Functions

void UpdateOwnInfo (UserInfo userInfo, CallBack callback=null)
 
void FetchUserInfoByUserId (List< string > userIds, ValueCallBack< Dictionary< string, UserInfo > > callback=null)
 

Detailed Description

The user information manager for updating and getting user attributes.

Member Function Documentation

◆ UpdateOwnInfo()

void AgoraChat.UserInfoManager.UpdateOwnInfo ( UserInfo  userInfo,
CallBack  callback = null 
)

Modifies the information of the current user.

Parameters
userInfoThe user information to be modified.
callbackThe operation callback. See CallBack.

◆ FetchUserInfoByUserId()

void AgoraChat.UserInfoManager.FetchUserInfoByUserId ( List< string >  userIds,
ValueCallBack< Dictionary< string, UserInfo > >  callback = null 
)

Gets user information by user ID.

Parameters
userIdsThe list of user IDs.
callbackThe operation callback. If success, the user information dictionary is returned; otherwise, an error is returned. See ValueCallBack.