VPNclientEngine class

Legacy adapter to maintain compatibility with existing code

Constructors

VPNclientEngine.new()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

onConnectionStatusChanged Stream<ConnectionStatus>
Stream for connection status changes
no setter
onDataUsageUpdated Stream<SessionStatistics>
Stream for data usage updates
no setter
onPingResult Stream<PingResult>
Stream for ping results
no setter

Static Methods

connect({required int subscriptionIndex, required int serverIndex}) Future<void>
Connect to server (legacy method)
disconnect() Future<void>
Disconnect (legacy method)
getServerList() List<Server>
Get server list (legacy method)
initialize() Future<void>
Initialize the engine
loadSubscriptions({required List<String> subscriptionLinks}) Future<void>
Load subscriptions (legacy method)
pingServer({required int subscriptionIndex, required int index}) → void
Ping server (legacy method)
setAutoConnect({required bool enable}) → void
Set auto connect (legacy method)
setKillSwitch({required bool enable}) → void
Set kill switch (legacy method)