startWithJson method

  1. @override
Future<bool> startWithJson(
  1. String configJson,
  2. String name
)
override

Start VPN with raw Xray JSON config (bypassing link parsing)

Implementation

@override
Future<bool> startWithJson(String configJson, String name) async {
  final result = await methodChannel.invokeMethod<bool>('start_with_json', {
    'config': configJson,
    'name': name,
  });
  return result ?? false;
}