getFriendApplicationList

Introduction

Load the list of friend applications.

Parameter details

This API has no parameters

Returned template

V2TimValueCallback<V2TimFriendApplicationResult>

{
    code : int
    desc : String
    data : {
        friendApplicationList : List<V2TimFriendApplication>
        unreadCount : int
    }
}

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the error. It will be empty if success.
data V2TimFriendApplicationResult The list of applications.

Code example

    V2TimValueCallback<V2TimFriendApplicationResult>
        getFriendApplicationListRes = await TencentImSDKPlugin.v2TIMManager
            .getFriendshipManager()
            .getFriendApplicationList();
    if (getFriendApplicationListRes.code == 0) {
      getFriendApplicationListRes.data?.unreadCount;
      getFriendApplicationListRes.data?.friendApplicationList
          ?.forEach((element) {
        element?.addSource;
        element?.addTime;
        element?.addWording;
        element?.faceUrl;
        element?.nickname;
        element?.type;
        element?.userID;
      });
    }

results matching ""

    No results matching ""