FlutterV2ray class
Methods
-
cancelAutoDisconnect()
→ Future<void>
-
Cancels auto-disconnect - VPN stays connected indefinitely.
-
clearAutoDisconnectFlag()
→ Future<void>
-
Clears the auto-disconnect expired flag.
-
getConnectedServerDelay({String url = 'https://google.com/generate_204'})
→ Future<int>
-
This method returns the connected server delay.
-
getCoreVersion()
→ Future<String>
-
-
getRemainingAutoDisconnectTime()
→ Future<int>
-
Gets the current remaining auto-disconnect time in seconds.
-
getServerDelay({required String config, String url = 'https://google.com/generate_204'})
→ Future<int>
-
This method returns the real server delay of the configuration.
-
initializeVless({String notificationIconResourceType = "mipmap", String notificationIconResourceName = "ic_launcher", String providerBundleIdentifier = "", String groupIdentifier = ""})
→ Future<void>
-
Initializes the VPN plugin with platform-specific configuration.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission()
→ Future<bool>
-
Requests VPN permission from the user (Android).
-
startVless({required String config, List<String>? blockedApps, List<String>? bypassSubnets, List<String>? dnsServers, bool proxyOnly = false, String notificationDisconnectButtonName = "DISCONNECT", bool showNotificationDisconnectButton = true, AutoDisconnect? autoDisconnect})
→ Future<void>
-
Start FlutterVless service.
-
stopVless()
→ Future<void>
-
Stop FlutterVless service.
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateAutoDisconnectTime(int additionalSeconds)
→ Future<int>
-
Adds or subtracts time from auto-disconnect (e.g., after watching an ad).
-
wasAutoDisconnected()
→ Future<bool>
-
Checks if VPN was auto-disconnected while app was killed.