getJoinedCommunityList

Introduction

Load the list of community that is joined.

Only works since version of 4.0.1.

Community group only works with the SDK version of 4.0 and above, with Ultimate Edition, you can see the pricing plan here.

Parameter details

This API has no parameters

Returned template

V2TimValueCallback<List<V2TimGroupInfo>>

{
    code : int
    desc : String
    data : List<V2TimGroupInfo>
}

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 List< V2TimGroupInfo > The list of joined community.

Code example

    V2TimValueCallback<List<V2TimGroupInfo>> getJoinedCommunityListRes =
        await TencentImSDKPlugin.v2TIMManager
            .getGroupManager()
            .getJoinedCommunityList();
    if (getJoinedCommunityListRes.code == 0) {
      getJoinedCommunityListRes.data?.forEach((element) {
        element.createTime;
        element.customInfo;
        element.faceUrl;
        element.groupAddOpt;
        element.groupID;
        element.groupName;
        element.groupType;
        element.introduction;
        element.isAllMuted;
        element.isSupportTopic;
        element.joinTime;
        element.lastInfoTime;
        element.lastMessageTime;
        element.memberCount;
        element.notification;
        element.onlineCount;
        element.owner;
        element.recvOpt;
        element.role;
      });
    }

results matching ""

    No results matching ""