VlessMethodChannelAdapter class

Inheritance
Implementers

Constructors

VlessMethodChannelAdapter({MethodChannel methodChannel = const MethodChannel('flutter_vless'), EventChannel eventChannel = const EventChannel('flutter_vless/status')})

Properties

eventChannel → EventChannel
final
hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getConnectedServerDelay(String url) → Future<int>
Measures delay through the currently active runtime.
override
getCoreVersion() → Future<String>
Returns the Xray core version reported by the platform backend.
override
getProviderDebugSnapshot() → Future<String>
Returns a bounded native diagnostic snapshot for the current or most recent VPN or proxy-only Xray runtime session.
override
getServerDelay({required String config, required String url, String? geoAssetsDirectory}) → Future<int>
Measures delay for a provided Xray config.
override
initializeVless({required void onStatusChanged(VlessStatus status), required String notificationIconResourceType, required String notificationIconResourceName, required String providerBundleIdentifier, required String groupIdentifier, String? keychainAccessGroup}) → Future<void>
Initializes platform channels and native configuration.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() → Future<bool>
Requests the platform permission or profile state needed for tunnel mode.
override
startVless({required String remark, required String config, required String notificationDisconnectButtonName, List<String>? blockedApps, List<String>? bypassSubnets, bool proxyOnly = false, String? geoAssetsDirectory, AndroidDnsPolicy androidDnsPolicy = AndroidDnsPolicy.config, String? androidDnsProxyOutboundTag}) → Future<void>
Starts a proxy-only or VPN/tunnel session with a JSON Xray config.
override
stopVless() → Future<void>
Stops the active proxy or VPN/tunnel session.
override
toString() → String
A string representation of this object.
inherited

Operators

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