FlutterV2ray class
Methods
-
checkPermission()
→ Future<bool>
-
Checks VPN permission status (Android); does not prompt.
inherited
-
getConnectedServerDelay({String url = 'http://connectivitycheck.gstatic.com/generate_204'})
→ Future<int>
-
This method returns the connected server delay.
inherited
-
getCoreVersion()
→ Future<String>
-
inherited
-
getDiagnostics()
→ Future<Map<String, dynamic>>
-
inherited
-
getLocalProxyPorts()
→ Future<Map<String, int?>>
-
Returns local proxy ports if available (PROXY_ONLY mode).
inherited
-
getMode()
→ Future<String>
-
Returns current connection mode (VPN_TUN or PROXY_ONLY).
inherited
-
getServerDelay({required String config, String url = 'http://connectivitycheck.gstatic.com/generate_204'})
→ Future<int>
-
This method returns the real server delay of the configuration.
inherited
-
getState()
→ Future<String>
-
Returns current connection state string from platform.
inherited
-
initializeV2Ray({String notificationIconResourceType = "mipmap", String notificationIconResourceName = "ic_launcher"})
→ Future<void>
-
You must initialize V2Ray before using it.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission()
→ Future<bool>
-
Request VPN service permission specifically for Android.
inherited
-
setMode(String mode)
→ Future<String>
-
Sets connection mode (accepts VPN_TUN or PROXY_ONLY).
inherited
-
startV2Ray({required String config, List<String>? failoverConfigs, int? failoverThresholdMs, int? healthCheckIntervalMs, List<String>? blockedApps, List<String>? allowedApps, List<String>? bypassSubnets, List<String>? routes, List<String>? excludeRoutes, List<String>? dnsServers, bool enableWatchdog = true, bool preferDoH = false, String? dohUrl, List<String>? dohBootstrap, bool enableFakeDNS = false, String? fakeIpPool, String? fakeIpPoolV6, bool enableIPv6 = true, bool proxyOnly = false, String notificationDisconnectButtonName = "DISCONNECT", bool showSpeedInNotification = true, bool allowInsecure = false})
→ Future<void>
-
Start V2Ray service.
inherited
-
stopV2Ray()
→ Future<void>
-
Stop V2Ray service.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited