getChatRoomEntry static method
获取聊天室单个属性
chatroomId
聊天室 Id
key
聊天室属性名称
finished
回调结果,code 为 0 代表操作成功,其他值代表失败,entry 为返回的 map
此接口只支持聊天室,必须先开通聊天室属性自定义功能
Implementation
static Future<void> getChatRoomEntry(String chatRoomId, String key, Function(Map? entry, int? code)? finished) async {
Map map = {"chatRoomId": chatRoomId, "key": key};
Map result = await _channel.invokeMethod(RCMethodKey.GetChatRoomEntry, map);
int? code = result["code"];
Map? entry = result["entry"];
if (finished != null) {
finished(entry, code);
}
}