deleteTopicFromCommunity

Introduction

Delete topics from community.

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

Parameter name Parameter type Required Platform Description
groupID String yes All The group ID that will be deleted with some topics.
topicIDList List< String > yes All The list of IDs of the topic to delete.

Returned template

V2TimValueCallback<List<V2TimTopicOperationResult>>

{
    code : int
    desc : String
    data : List<V2TimTopicOperationResult>// The list of deleting results.
}

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< V2TimTopicOperationResult > The list of deleting results.

Code example

    V2TimValueCallback<List<V2TimTopicOperationResult>>
        deleteTopicFromCommunityRes = await TencentImSDKPlugin.v2TIMManager
            .getGroupManager()
            .deleteTopicFromCommunity(
      groupID: "groupID",
      topicIDList: [],
    );
    if (deleteTopicFromCommunityRes.code == 0) {
      deleteTopicFromCommunityRes.data?.forEach((element) {
        element.errorCode;
        element.errorMessage;
        element.topicID;
      });
    }

results matching ""

    No results matching ""