startVless method
Future<void>
startVless({
- required String remark,
- required String config,
- required String notificationDisconnectButtonName,
- List<
String> ? blockedApps, - List<
String> ? bypassSubnets, - bool proxyOnly = false,
override
Starts the VPN connection with the given configuration.
Implementation
@override
Future<void> startVless({
required String remark,
required String config,
required String notificationDisconnectButtonName,
List<String>? blockedApps,
List<String>? bypassSubnets,
bool proxyOnly = false,
}) async {
await methodChannel.invokeMethod('startVless', {
"remark": remark,
"config": config,
"blocked_apps": blockedApps,
"bypass_subnets": bypassSubnets,
"proxy_only": proxyOnly,
"notificationDisconnectButtonName": notificationDisconnectButtonName,
});
}