getGroupApplicationList

Introduction

Load the group application list.

Do not works on Web.

Parameter details

This API has no parameters

Returned template

V2TimValueCallback<V2TimGroupApplicationResult>

{
    code : int
    desc : String
    data : {
        groupApplicationList : List<V2TimGroupApplication?>// The list of group applications.
        unreadCount : int // The unread count of the applications.
    }
}

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 V2TimGroupApplicationResult The list of results returned.

Code example

    V2TimValueCallback<V2TimGroupApplicationResult> getGroupApplicationListRes =
        await TencentImSDKPlugin.v2TIMManager
            .getGroupManager()
            .getGroupApplicationList();
    if (getGroupApplicationListRes.code == 0) {
      getGroupApplicationListRes.data?.groupApplicationList?.forEach((element) {
        element?.addTime;
        element?.fromUser;
        element?.fromUserFaceUrl;
        element?.fromUserNickName;
        element?.groupID;
        element?.handledMsg;
        element?.handleResult;
        element?.handleStatus;
        element?.requestMsg;
        element?.toUser;
        element?.type;
      });
    }

results matching ""

    No results matching ""