Package io.rong.imkit.usermanage.handler

## Class FriendInfoHandler

- All Implemented Interfaces:

      public class FriendInfoHandler

  好友信息处理类

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

  Since:

    5.12.0

  Author:

    rongcloud

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static DataKey<FriendRelationInfo>` | `KEY_CHECK_FRIEND` |
    `public final static DataKey<List<FriendInfo>>` | `KEY_GET_FRIENDS` |
    `public final static DataKey<UserProfile>` | `KEY_SEARCH_USER` |
    `public final static DataKey<FriendInfo>` | `KEY_GET_FRIEND` |
    `public final static DataKey<Boolean>` | `KEY_DELETE_FRIEND` |
    `public final static DataKey<CoreErrorCode>` | `KEY_APPLY_FRIEND` |
    `public final static DataKey<List<FriendInfo>>` | `KEY_SEARCH_FRIENDS` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `FriendInfoHandler()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `getFriends(QueryFriendsDirectionType directionType)` |
    `void` | `checkFriend(String userId)` |
    `void` | `getFriendInfo(String userId)` |
    `void` | `)>deleteFriend(String userId, OnDataChangeListener<Boolean> listener)` |
    `void` | `)>applyFriend(String userId, String remark, OnDataChangeListener<CoreErrorCode> listener)` |
    `void` | `findUser(String uniqueId)` |
    `void` | `searchFriendsInfo(String query)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FriendInfoHandler

          FriendInfoHandler()

  - ### Method Detail

    - #### getFriends

           void getFriends(QueryFriendsDirectionType directionType)

    - #### checkFriend

           void checkFriend(String userId)

    - #### getFriendInfo

           void getFriendInfo(String userId)

    - #### deleteFriend

           void )>deleteFriend(String userId, OnDataChangeListener<Boolean> listener)

    - #### applyFriend

           void )>applyFriend(String userId, String remark, OnDataChangeListener<CoreErrorCode> listener)

    - #### findUser

           void findUser(String uniqueId)

    - #### searchFriendsInfo

           void searchFriendsInfo(String query)