inviteInGroup method

  1. @override
Future<V2TimValueCallback<String>> inviteInGroup({
  1. required String groupID,
  2. required List<String> inviteeList,
  3. required String data,
  4. int timeout = 30,
  5. bool onlineUserOnly = false,
})
override

Implementation

@override
Future<V2TimValueCallback<String>> inviteInGroup({
  required String groupID,
  required List<String> inviteeList,
  required String data,
  int timeout = 30,
  bool onlineUserOnly = false,
}) async {
  Map<String, dynamic> param = {"groupID": groupID, "inviteeList": inviteeList, "data": data, "timeout": timeout, "onlineUserOnly": onlineUserOnly};
  var resp = V2TimValueCallback<String>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "inviteInGroup",
        buildSignalingManagerParam(
          param,
        ),
      ),
    ),
  );
  log("inviteInGroup", param, resp.toLogString());
  return resp;
}