startV2Ray method

  1. @override
Future<void> startV2Ray({
  1. required String remark,
  2. required String config,
  3. required String notificationDisconnectButtonName,
  4. List<String>? blockedApps,
  5. List<String>? bypassSubnets,
  6. bool proxyOnly = false,
})
override

Implementation

@override
Future<void> startV2Ray({
  required String remark,
  required String config,
  required String notificationDisconnectButtonName,
  List<String>? blockedApps,
  List<String>? bypassSubnets,
  bool proxyOnly = false,
}) async {
  await methodChannel.invokeMethod('startV2Ray', {
    "remark": remark,
    "config": config,
    "blocked_apps": blockedApps,
    "bypass_subnets": bypassSubnets,
    "proxy_only": proxyOnly,
    "notificationDisconnectButtonName": notificationDisconnectButtonName,
  });
}