VlessPlatform class abstract
Contract implemented by every federated flutter_vless platform package.
Application code normally talks to FlutterVless from the main package.
Platform packages implement this interface to bridge Dart calls to Android,
iOS, macOS, or Windows native Xray/proxy/tunnel backends.
- Inheritance
-
- Object
- PlatformInterface
- VlessPlatform
- Implementers
Constructors
- VlessPlatform()
- Creates a platform interface instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
-
getCoreVersion(
) → Future< String> - Returns the Xray core version reported by the platform backend.
-
getServerDelay(
{required String config, required String url}) → Future< int> - Measures delay for a provided Xray config.
-
initializeVless(
{required void onStatusChanged(VlessStatus status), required String notificationIconResourceType, required String notificationIconResourceName, required String providerBundleIdentifier, required String groupIdentifier}) → Future< void> - Initializes platform channels and native configuration.
-
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.
-
startVless(
{required String remark, required String config, required String notificationDisconnectButtonName, List< String> ? blockedApps, List<String> ? bypassSubnets, bool proxyOnly = false}) → Future<void> - Starts a proxy-only or VPN/tunnel session with a JSON Xray config.
-
stopVless(
) → Future< void> - Stops the active proxy or VPN/tunnel session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ VlessPlatform
-
The default instance of VlessPlatform to use.
getter/setter pair