# FriendInfoHandler

public class FriendInfoHandler

好友信息处理类

注意：使用完毕后需要调用 stop 方法释放资源

#### Author

rongcloud

#### Since

5.12.0

## Constructors

FriendInfoHandler
Link copied to clipboard
public void FriendInfoHandler()

## Properties

KEY_APPLY_FRIEND
Link copied to clipboard
public final static DataKey<CoreErrorCode> KEY_APPLY_FRIEND
KEY_CHECK_FRIEND
Link copied to clipboard
public final static DataKey<FriendRelationInfo> KEY_CHECK_FRIEND
KEY_DELETE_FRIEND
Link copied to clipboard
public final static DataKey<Boolean> KEY_DELETE_FRIEND
KEY_GET_FRIEND
Link copied to clipboard
public final static DataKey<FriendInfo> KEY_GET_FRIEND
KEY_GET_FRIENDS
Link copied to clipboard
public final static DataKey<List<FriendInfo>> KEY_GET_FRIENDS
KEY_GET_FRIENDS_ONLINE_STATUS
Link copied to clipboard
public final static DataKey<Map<String, SubscribeUserOnlineStatus>> KEY_GET_FRIENDS_ONLINE_STATUS
KEY_SEARCH_FRIENDS
Link copied to clipboard
public final static DataKey<List<FriendInfo>> KEY_SEARCH_FRIENDS
KEY_SEARCH_USER
Link copied to clipboard
public final static DataKey<UserProfile> KEY_SEARCH_USER

## Functions

applyFriend
Link copied to clipboard
public void applyFriend(String userId, String remark, OnDataChangeListener<CoreErrorCode> listener)
checkFriend
Link copied to clipboard
public void checkFriend(String userId)
deleteFriend
Link copied to clipboard
public void deleteFriend(String userId, OnDataChangeListener<Boolean> listener)
findUser
Link copied to clipboard
public void findUser(String uniqueId)
getFriendInfo
Link copied to clipboard
public void getFriendInfo(String userId)
getFriends
Link copied to clipboard
public void getFriends(QueryFriendsDirectionType directionType)
getUserOnlineStatus
Link copied to clipboard
public void getUserOnlineStatus(String uid)
public void getUserOnlineStatus(List<FriendInfo> friendInfos)
searchFriendsInfo
Link copied to clipboard
public void searchFriendsInfo(String query)
stop
Link copied to clipboard
public void stop()