getConversationGroupList

Introduction

Load the list of conversation groups.

Only works since version of 4.0.8.

Do not works on Web.

Parameter details

This API has no parameters

Returned template

V2TimValueCallback<List<String>>

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

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< String > The list of name of conversation groups.

Code example

    V2TimValueCallback<List<String>> getConversationGroupListDataRes =
        await TencentImSDKPlugin.v2TIMManager
            .getConversationManager()
            .getConversationGroupList();
    if (getConversationGroupListDataRes.code == 0) {
      getConversationGroupListDataRes.data?.forEach((element) {
        element;
      });
    }

results matching ""

    No results matching ""