MethodChannelV2rayMyanmar class

An implementation of V2rayMyanmarPlatform that uses method channels.

Inheritance

Constructors

MethodChannelV2rayMyanmar()

Properties

eventChannel EventChannel
final
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
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 setteroverride

Methods

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

Operators

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