setTopicInfo
Introduction
Set the topic info and attributes.
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 |
---|---|---|---|---|
topicInfo | V2TimTopicInfo | yes | All | The information needs to be modified and set. |
groupID | String | yes | All | The ID of the group that this topic is associated with. |
Returned template
V2TimCallback
{
code : int
desc : 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. |
Code example
V2TimTopicInfo topicInfo = V2TimTopicInfo(
customString: "",
draftText: "",
groupAtInfoList: [],
introduction: "",
isAllMute: false,
lastMessage: null,
notification: "",
selfMuteTime: 0,
topicFaceUrl: "",
topicID: "",
topicName: "",
unreadCount: 0,
);
V2TimCallback setTopicInfoRes =
await TencentImSDKPlugin.v2TIMManager.getGroupManager().setTopicInfo(
topicInfo: topicInfo,
groupID: "",
);
if (setTopicInfoRes.code == 0) {
}