MethodChannelFlutterSingbox class

An implementation of FlutterSingboxPlatform that uses method channels.

Inheritance

Constructors

MethodChannelFlutterSingbox()
Constructor

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
onLogMessage → Stream<Map<String, dynamic>>
Stream of log messages from the VPN service
no setteroverride
onStatusChanged → Stream<Map<String, dynamic>>
Stream of VPN status updates
no setteroverride
onTrafficUpdate → Stream<Map<String, dynamic>>
Stream of traffic statistics updates
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearLogs() → Future<bool>
Clear the log buffer
override
getConfig() → Future<String>
Get current SingBox configuration
override
getInstalledApps() → Future<List<Map<String, dynamic>>>
Get list of installed apps Returns a list of maps with keys: "packageName", "appName", "isSystemApp"
override
getLogs() → Future<List<String>>
Get buffered log messages
override
getNotificationDescription() → Future<String>
Get notification description
override
getNotificationTitle() → Future<String>
Get notification title
override
getPerAppProxyList() → Future<List<String>>
Get current list of apps for per-app proxy
override
getPerAppProxyMode() → Future<String>
Get current per-app proxy mode
override
getPlatformVersion() → Future<String?>
override
getVPNStatus() → Future<String>
Get current VPN status
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveConfig(String config) → Future<bool>
Save SingBox configuration
override
setNotificationDescription(String description) → Future<bool>
Set notification description
override
setNotificationTitle(String title) → Future<bool>
Set notification title
override
setPerAppProxyList(List<String>? appList) → Future<bool>
Set list of apps for per-app proxy
override
setPerAppProxyMode(String mode) → Future<bool>
Set per-app proxy mode Valid values are: "off", "include", "exclude"
override
startVPN() → Future<bool>
Start VPN connection
override
stopVPN() → Future<bool>
Stop VPN connection
override
toString() → String
A string representation of this object.
inherited

Operators

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