V2rayMyanmarPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • V2rayMyanmarPlatform
Implementers

Constructors

V2rayMyanmarPlatform()
Constructs a V2rayMyanmarPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusStream Stream<V2RayStatus>
A broadcast stream of V2Ray runtime status updates.
no setter

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 remark, 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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance V2rayMyanmarPlatform
The default instance of V2rayMyanmarPlatform to use.
getter/setter pair