hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.chat.EMUserInfoManager Class Reference

Public Member Functions

void updateOwnInfo (final EMUserInfo userInfo, final EMValueCallBack< String > callBack)
 
void updateOwnInfoByAttribute (final EMUserInfoType attribute, final String value, final EMValueCallBack< String > callBack)
 
void fetchUserInfoByUserId (final String[] userIds, final EMValueCallBack< Map< String, EMUserInfo > > callBack)
 
void fetchUserInfoByAttribute (final String[] userIds, final EMUserInfoType[] attributes, EMValueCallBack< Map< String, EMUserInfo > > callBack)
 

Detailed Description

The user information manager for updating and getting user properties.

Member Function Documentation

◆ fetchUserInfoByAttribute()

void com.hyphenate.chat.EMUserInfoManager.fetchUserInfoByAttribute ( final String[]  userIds,
final EMUserInfoType[]  attributes,
EMValueCallBack< Map< String, EMUserInfo > >  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 com.hyphenate.chat.EMUserInfoManager.fetchUserInfoByUserId ( final String[]  userIds,
final EMValueCallBack< Map< String, EMUserInfo > >  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 com.hyphenate.chat.EMUserInfoManager.updateOwnInfo ( final EMUserInfo  userInfo,
final EMValueCallBack< 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 com.hyphenate.chat.EMUserInfoManager.updateOwnInfoByAttribute ( final EMUserInfoType  attribute,
final String  value,
final EMValueCallBack< 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: