Package io.rong.imlib.listener

## Interface FriendEventListener

- All Implemented Interfaces:

      public interface FriendEventListener

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `onFriendAdd(DirectionType directionType, String userId, String name, String portraitUri, long operationTime)` | 好友添加回调
    `abstract void` | `onFriendDelete(DirectionType directionType, List<String> userIds, long operationTime)` | 好友删除回调
    `abstract void` | `onFriendApplicationStatusChanged(String userId, FriendApplicationType applicationType, FriendApplicationStatus applicationStatus, DirectionType directionType, long operationTime, String extra)` | 好友申请状态回调事件
    `abstract void` | `onFriendCleared(long operationTime)` | 好友全部清理回调事件 注意：此操作只能由服务端发起
    `abstract void` | `onFriendInfoChangedSync(String userId, String remark, Map<String, String> extProfile, long operationTime)` | 好友信息变更多端回调事件

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

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

- - ### Constructor Detail

  - ### Method Detail

    - #### onFriendAdd

           abstract void onFriendAdd(DirectionType directionType, String userId, String name, String portraitUri, long operationTime)

      好友添加回调

      Parameters:
        `directionType` - 好友方向类型。参照io.rong.imlib.model.
        `userId` - 用户ID
        `name` - 名称
        `portraitUri` - 头像
        `operationTime` - 操作时间

    - #### onFriendDelete

           abstract void onFriendDelete(DirectionType directionType, List<String> userIds, long operationTime)

      好友删除回调

      Parameters:
        `directionType` - 好友方向类型。参照io.rong.imlib.model.
        `userIds` - 删除用户ID列表
        `operationTime` - 操作时间

    - #### onFriendApplicationStatusChanged

           abstract void onFriendApplicationStatusChanged(String userId, FriendApplicationType applicationType, FriendApplicationStatus applicationStatus, DirectionType directionType, long operationTime, String extra)

      好友申请状态回调事件

      Parameters:
        `userId` - 用户ID
        `applicationType` - 好友请求类型。参照io.rong.imlib.model.
        `applicationStatus` - 状态类型。参照io.rong.imlib.model.
        `directionType` - 好友方向类型。参照io.rong.imlib.model.
        `operationTime` - 更新时间
        `extra` - 备注内容：好友申请的描述内容

    - #### onFriendCleared

           abstract void onFriendCleared(long operationTime)

      好友全部清理回调事件

      注意：此操作只能由服务端发起

      Parameters:
        `operationTime` - 更新时间

    - #### onFriendInfoChangedSync

           abstract void onFriendInfoChangedSync(String userId, String remark, Map<String, String> extProfile, long operationTime)

      好友信息变更多端回调事件

      Parameters:
        `userId` - 用户ID
        `remark` - 好友备注名
        `extProfile` - 扩展信息
        `operationTime` - 更新时间