- Inheritance
-
- Object
- PlatformInterface
- V2rayMyanmarPlatform
- Implementers
Methods
-
checkPermission()
→ Future<bool>
-
Checks if VPN permission is already granted (Android). Does not prompt.
-
getConnectedServerDelay(String url)
→ Future<int>
-
-
getCoreVersion()
→ Future<String>
-
-
getDiagnostics()
→ Future<Map<String, dynamic>>
-
-
getLocalProxyPorts()
→ Future<Map<String, int?>>
-
Returns local proxy ports if available (for PROXY_ONLY), keys: localSocksPort, localHttpPort.
-
getMode()
→ Future<String>
-
Returns current connection mode (e.g., VPN_TUN or PROXY_ONLY).
-
getServerDelay({required String config, required String url})
→ Future<int>
-
-
getState()
→ Future<String>
-
Returns current connection state string (e.g., CONNECTED/CONNECTING/DISCONNECTED).
-
initializeV2Ray({required void onStatusChanged(V2RayStatus status), required String notificationIconResourceType, required String notificationIconResourceName})
→ Future<void>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission()
→ Future<bool>
-
-
setMode(String mode)
→ Future<String>
-
Sets connection mode. Accepts "VPN_TUN" or "PROXY_ONLY" (case-insensitive).
Returns the effective mode after applying.
-
startV2Ray({required String config, required String notificationDisconnectButtonName, 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, bool showSpeedInNotification = true, bool allowInsecure = false})
→ Future<void>
-
-
stopV2Ray()
→ Future<void>
-
-
toString()
→ String
-
A string representation of this object.
inherited