VpnclientEngineFlutter class
Main plugin class for VPN client engine
Constructors
- VpnclientEngineFlutter.new({VpnStatusCallback? onStatusChanged})
- Constructor with optional status callback
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
-
connect(
EngineType engine, String config) → Future< bool> - Connect using specified engine
-
disconnect(
) → Future< void> - Disconnect current connection
-
dispose(
) → void - Dispose resources
-
getConnectionStatus(
) → Future< ConnectionStatus> - Get current connection status
-
getCurrentEngine(
) → VpnEngine? - Get current engine
-
getCurrentEngineType(
) → EngineType? - Get current engine type
-
getVersion(
EngineType engine) → Future< String> - Get version of specified engine
-
initialize(
) → Future< void> - Initialize the plugin
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ping(
EngineType engine, String config, String url, {int timeout = 10}) → Future< int> - Ping server with specified engine
-
requestPermissions(
EngineType engine) → Future< bool> - Request permissions for specified engine
-
setStatusCallback(
VpnStatusCallback callback) → void - Set status change callback
-
testConfig(
EngineType engine, String config) → Future< bool> - Test configuration with specified engine
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- client → VpnClient
-
Get VPN client instance
no setter
- instance → VpnclientEngineFlutter
-
Get singleton instance
no setter
Static Methods
-
connectStatic(
EngineType engine, String config) → Future< bool> - Connect using specified engine (static method)
-
disconnectStatic(
) → Future< void> - Disconnect current connection (static method)
-
getConnectionStatusStatic(
) → Future< ConnectionStatus> - Get current connection status (static method)
-
getCurrentEngineStatic(
) → VpnEngine? - Get current engine (static method)
-
getCurrentEngineTypeStatic(
) → EngineType? - Get current engine type (static method)
-
getPlatformVersion(
) → Future< String?> - Get platform version
-
getSupportedEngines(
) → List< String> - Get supported engines for current platform
-
getVersionStatic(
EngineType engine) → Future< String> - Get version of specified engine (static method)
-
initializeStatic(
{VpnStatusCallback? onStatusChanged}) → Future< void> - Initialize the plugin (static method)
-
isEngineSupported(
EngineType type) → bool - Check if engine is supported
-
pingStatic(
EngineType engine, String config, String url, {int timeout = 10}) → Future< int> - Ping server with specified engine (static method)
-
requestPermissionsStatic(
EngineType engine) → Future< bool> - Request permissions for specified engine (static method)
-
testConfigStatic(
EngineType engine, String config) → Future< bool> - Test configuration with specified engine (static method)