Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

好友相关回调(callback)

TIMSetFriendAddRequestCallback

  • brief

    设置好友添加请求的回调

    note

    当前登入用户设置添加好友需要确认时,如果有用户请求加当前登入用户为好友,会收到好友添加请求的回调,ImSDK通过此回调告知开发者。如果多终端登入同一帐号,每个终端都会收到这个回调。

    Parameters

    Returns void

TIMSetFriendApplicationListDeletedCallback

TIMSetFriendApplicationListReadCallback

TIMSetFriendBlackListAddedCallback

TIMSetFriendBlackListDeletedCallback

TIMSetOnAddFriendCallback

  • brief

    设置添加好友的回调

    note

    此回调为了多终端同步。例如A设备、B设备都登录了同一帐号的ImSDK,A设备添加了好友,B设备ImSDK会收到添加好友的推送,ImSDK通过此回调告知开发者。

    Parameters

    Returns void

TIMSetOnDeleteFriendCallback

  • brief

    设置好友的回调

    note

    此回调为了多终端同步。例如A设备、B设备都登录了同一帐号的ImSDK,A设备添加了好友,B设备ImSDK会收到添加好友的推送,ImSDK通过此回调告知开发者。

    Parameters

    Returns void

TIMSetUpdateFriendProfileCallback

  • brief

    设置更新好友资料的回调

    note

    此回调为了多终端同步。例如A设备、B设备都登录了同一帐号的ImSDK,A设备更新了好友资料,B设备ImSDK会收到更新好友资料的推送,ImSDK通过此回调告知开发者。

    Parameters

    Returns void

Other

getErrorResponse

  • getErrorResponse(params: ErrorResponse): { code: number; desc: string | String; json_params: string | String; user_data: string | String }
  • Parameters

    Returns { code: number; desc: string | String; json_params: string | String; user_data: string | String }

    • code: number
    • desc: string | String
    • json_params: string | String
    • user_data: string | String

getErrorResponseByCode

  • getErrorResponseByCode(code: number): { code: number; desc: string | String; json_params: string | String; user_data: string | String }
  • Parameters

    • code: number

    Returns { code: number; desc: string | String; json_params: string | String; user_data: string | String }

    • code: number
    • desc: string | String
    • json_params: string | String
    • user_data: string | String

删除好友

TIMFriendshipDeleteFriend

处理好友请求

TIMFriendshipHandleFriendAddRequest

  • brief

    处理好友请求

    note

      当自己的个人资料的加好友权限 kTIMUserProfileAddPermission 设置为 kTIMProfileAddPermission_NeedConfirm 时,别人添加自己为好友时会收到一个加好友的请求,可通过此接口处理加好友的请求。

    Parameters

    Returns Promise<commonResponse>

好友分组相关接口

TIMFriendshipCreateFriendGroup

TIMFriendshipGetFriendGroupList

TIMFriendshipModifyFriendGroup

好友分组相关接口*

TIMFriendshipDeleteFriendGroup

搜索好友

TIMFriendshipSearchFriends

更新好友资料(备注等)

TIMFriendshipModifyFriendProfile

  • brief

    更新好友资料(备注等)

    note

    修改好友资料,目前支持修改的字段请参考FriendProfileItem(在interface里),一次可修改多个字段。修改自定义字段时填入的key值可以添加 Tag_SNS_Custom_ 前缀,也可以不添加 Tag_SNS_Custom_ 前缀,当不添加时,SDK内部会自动添加该前缀。

    Parameters

    Returns Promise<commonResponse>

未决信息相关接口

TIMFriendshipDeletePendency

TIMFriendshipGetPendencyList

TIMFriendshipReportPendencyReaded

检测好友类型

TIMFriendshipCheckFriendType

添加好友

TIMFriendshipAddFriend

获取好友信息

TIMFriendshipGetFriendsInfo

获取好友列表

TIMFriendshipGetFriendProfileList

  • brief

    获取好友列表

    note

    好友资料 此接口通过回调返回所有好友资料FriendProfile.

    kTIMFriendProfileIdentifier          = "friend_profile_identifier";          // string,       只读, 好友UserID
    kTIMFriendProfileGroupNameArray      = "friend_profile_group_name_array";    // array string, 只读, 好友分组名称列表
    kTIMFriendProfileRemark              = "friend_profile_remark";              // string,       只读, 好友备注,最大96字节,获取自己资料时,该字段为空
    kTIMFriendProfileAddWording          = "friend_profile_add_wording";         // string,       只读, 好友申请时的添加理由
    kTIMFriendProfileAddSource           = "friend_profile_add_source";          // string,       只读, 好友申请时的添加来源
    kTIMFriendProfileAddTime             = "friend_profile_add_time";            // number,       只读, 好友添加时间
    kTIMFriendProfileUserProfile         = "friend_profile_user_profile";        // object [UserProfile](../../interfaces/interface_friendshipinterface.userprofile.html), 只读, 好友的个人资料
    kTIMFriendProfileCustomStringArray   = "friend_profile_custom_string_array"; // array [FriendProfileCustemStringInfo](), 只读, [自定义好友字段](https://cloud.tencent.com/document/product/269/1501#.E8.87.AA.E5.AE.9A.E4.B9.89.E5.A5.BD.E5.8F.8B.E5.AD.97.E6.AE.B5)
    

    Parameters

    Returns Promise<commonResponse>

    Promise

黑名单相关接口

TIMFriendshipAddToBlackList

TIMFriendshipDeleteFromBlackList

TIMFriendshipGetBlackList

Generated using TypeDoc