Interface V2TIMFriendshipListener

(七)关系链事件的监听类

onFriendApplicationListAdded?: ((applicationList) => void)

Type declaration

    • (applicationList): void
    • 好友申请新增通知,两种情况会收到这个回调:

      1. 自己申请加别人好友
      2. 别人申请加自己好友

      Parameters

      Returns void

onFriendApplicationListDeleted?: ((userIDList) => void)

Type declaration

    • (userIDList): void
    • 好友申请删除通知,四种情况会收到这个回调

      1. 调用 DeleteFriendApplication 主动删除好友申请
      2. 调用 RefuseFriendApplication 拒绝好友申请
      3. 调用 AcceptFriendApplication 同意好友申请且同意类型为 V2TIM_FRIEND_ACCEPT_AGREE 时
      4. 申请加别人好友被拒绝

      Parameters

      • userIDList: string[]

      Returns void

onFriendApplicationListRead?: (() => void)

Type declaration

    • (): void
    • 好友申请已读通知,如果调用 setFriendApplicationRead 设置好友申请列表已读,会收到这个回调(主要用于多端同步)

      Returns void

onFriendListAdded?: ((userIDList) => void)

Type declaration

    • (userIDList): void
    • 好友新增通知

      Parameters

      Returns void

onFriendListDeleted?: ((userIDList) => void)

Type declaration

    • (userIDList): void
    • 好友删除通知,,两种情况会收到这个回调:

      1. 自己删除好友(单向和双向删除都会收到回调)
      2. 好友把自己删除(双向删除会收到)

      Parameters

      • userIDList: string[]

      Returns void

onBlackListAdded?: ((infoList) => void)

Type declaration

    • (infoList): void
    • 黑名单新增通知

      Parameters

      Returns void

onBlackListDeleted?: ((userIDList) => void)

Type declaration

    • (userIDList): void
    • 黑名单删除通知

      Parameters

      • userIDList: string[]

      Returns void

onFriendInfoChanged?: ((infoList) => void)

Type declaration

    • (infoList): void
    • 好友资料更新通知

      Parameters

      Returns void

onOfficialAccountSubscribed?: ((officialAccountInfo) => void)

Type declaration

    • (officialAccountInfo): void
    • 订阅公众号通知

      Parameters

      Returns void

onOfficialAccountUnsubscribed?: ((officialAccountID) => void)

Type declaration

    • (officialAccountID): void
    • 取消订阅公众号通知

      Parameters

      • officialAccountID: string

        取消订阅的公众号 ID

      Returns void

onOfficialAccountDeleted?: ((officialAccountID) => void)

Type declaration

    • (officialAccountID): void
    • 订阅的公众号被删除通知

      Parameters

      • officialAccountID: string

        删除的公众号 ID

      Returns void

onOfficialAccountInfoChanged?: ((officialAccountInfo) => void)

Type declaration

    • (officialAccountInfo): void
    • 订阅的公众号资料更新通知

      Parameters

      Returns void

onMyFollowingListChanged?: ((userInfoList, isAdd) => void)

Type declaration

    • (userInfoList, isAdd): void
    • 关注列表变更通知

      Parameters

      Returns void

onMyFollowersListChanged?: ((userInfoList, isAdd) => void)

Type declaration

    • (userInfoList, isAdd): void
    • 粉丝列表变更通知

      Parameters

      Returns void

OnMutualFollowersListChanged?: ((userInfoList, isAdd) => void)

Type declaration

    • (userInfoList, isAdd): void
    • 互关列表变更通知

      Parameters

      Returns void

Generated using TypeDoc