getGroupOnlineMemberCount method

  1. @override
Future<V2TimValueCallback<int>> getGroupOnlineMemberCount({
  1. required String groupID,
})
override

获取指定群属性,keys 传 null 则获取所有群属性。

Implementation

@override
Future<V2TimValueCallback<int>> getGroupOnlineMemberCount({
  required String groupID,
}) async {
  Map<String, dynamic> param = {
    "groupID": groupID,
  };
  var resp = V2TimValueCallback<int>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "getGroupOnlineMemberCount",
        buildGroupManagerParam(
          param,
        ),
      ),
    ),
  );
  log("getGroupOnlineMemberCount", param, resp.toLogString());
  return resp;
}