FlutterV2ray class

Constructors

FlutterV2ray()

Properties

hashCode int
The hash code for this object.
no setterinherited
onStatusChanged Stream<VlessStatus>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getConnectedServerDelay({String url = 'https://google.com/generate_204'}) Future<int>
This method returns the connected server delay.
getCoreVersion() Future<String>
getServerDelay({required String config, String url = 'https://google.com/generate_204'}) Future<int>
This method returns the real server delay of the configuration.
initializeVless({String notificationIconResourceType = "mipmap", String notificationIconResourceName = "ic_launcher", String providerBundleIdentifier = "", String groupIdentifier = ""}) Future<void>
Initializes the VPN plugin with platform-specific configuration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() Future<bool>
Requests VPN permission from the user (Android).
startVless({required String remark, required String config, List<String>? blockedApps, List<String>? bypassSubnets, List<String>? dnsServers, bool proxyOnly = false, String notificationDisconnectButtonName = "DISCONNECT"}) Future<void>
Start FlutterVless service.
stopVless() Future<void>
Stop FlutterVless service.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

parseFromURL(String url) FlutterV2RayURL
parse FlutterVlessURL object from Vless share link