Chat SDK for Android v1.2.1
agora java chat SDK
Public 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)
 

Detailed Description

The user information manager for updating and getting user properties.

Member Function Documentation

◆ fetchUserInfoByAttribute()

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

Gets user information with user ID and user properties.

Parameters
userIdsThe user ID array.
attributesThe user properties.
callBackThe completion callback, which contains the description of the cause to the failure.

◆ fetchUserInfoByUserId()

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

Gets user information with user ID.

Parameters
userIdsThe user ID array.
callBackThe completion callback, which contains the description of the cause to the failure..

◆ updateOwnInfo()

void io.agora.chat.UserInfoManager.updateOwnInfo ( final UserInfo  userInfo,
final ValueCallBack< String >  callBack 
)

Modifies the current user's information.

Parameters
userInfoThe user information to be modified.
callBackThe completion callback, which contains the description of the cause to the failure.

◆ updateOwnInfoByAttribute()

void io.agora.chat.UserInfoManager.updateOwnInfoByAttribute ( final UserInfoType  attribute,
final String  value,
final ValueCallBack< String >  callBack 
)

Modifies the current user's property.

Parameters
attributeThe user property.
valueThe modified user property (if this parameter is set as null, the attribute field will be removed on the server).
callBackThe completion callback, which contains the description of the cause to the failure.

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