setConversationToTopInTag static method
设置标签中会话置顶状态
conversationType
会话类型
targetId
会话 id
tagId
标签 id
isTop
是否置顶
Implementation
static Future setConversationToTopInTag(int? conversationType, String? targetId, String? tagId, bool? isTop, Function(bool? result, int? code)? finished) async {
if (conversationType == null || targetId == null || tagId == null) {
developer.log("setConversationToTopInTag fail: conversationType or targetId or content is null", name: "RongIMClient");
return null;
}
Map paramMap = {
"conversationType": conversationType,
"targetId": targetId,
"tagId": tagId,
"isTop": isTop,
};
Map? resultMap = await _channel.invokeMethod(RCMethodKey.SetConversationToTopInTag, paramMap);
if (resultMap != null) {
bool? reuslt = resultMap["result"];
int? code = resultMap["code"];
if (finished != null) {
finished(reuslt, code);
}
}
}