agora_chat_SDK  3.8.2
agorajavachatSDK
Public Member Functions | Protected Member Functions | List of all members
io.agora.chat.UserInfoManager Class Reference

Public Member Functions

void updateOwnInfo (final UserInfo userInfo, final ValueCallBack< String > callBack)
 
void updateOwnInfoByAttribute (final UserInfoType attribute, final String value, final ValueCallBack< String > callBack)
 
void fetchUserInfoByUserId (final String[] userIds, final ValueCallBack< Map< String, UserInfo >> callBack)
 
void fetchUserInfoByAttribute (final String[] userIds, final UserInfoType[] attributes, ValueCallBack< Map< String, UserInfo >> callBack)
 

Protected Member Functions

 UserInfoManager (EMAUserInfoManager manager)
 

Detailed Description

User information manager, responsible for updating and getting user attributes

Member Function Documentation

void io.agora.chat.UserInfoManager.fetchUserInfoByAttribute ( final String[]  userIds,
final UserInfoType[]  attributes,
ValueCallBack< Map< String, UserInfo >>  callBack 
)

Get user information by user id and user attributes

Parameters
userIdsUSer id array
attributesUser attributes
callBackResult callback
void io.agora.chat.UserInfoManager.fetchUserInfoByUserId ( final String[]  userIds,
final ValueCallBack< Map< String, UserInfo >>  callBack 
)

Get user information by user id

Parameters
userIdsUser id array
callBackResult callback
void io.agora.chat.UserInfoManager.updateOwnInfo ( final UserInfo  userInfo,
final ValueCallBack< String >  callBack 
)

Update current user's own user information

Parameters
userInfoUser information to be modified
callBackResult callback
void io.agora.chat.UserInfoManager.updateOwnInfoByAttribute ( final UserInfoType  attribute,
final String  value,
final ValueCallBack< String >  callBack 
)

Update current user's own user information

Parameters
attributeAttribute of user
valueInformation modified(if value is null will delete the attribute on the server)
callBackResult callback

The documentation for this class was generated from the following file: