FlutterSingbox class
Main class for the Flutter SingBox VPN plugin.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onLogMessage
→ Stream<
Map< String, dynamic> > -
Stream of log messages from the VPN service
no setter
-
onStatusChanged
→ Stream<
Map< String, dynamic> > -
Stream of VPN status updates
no setter
-
onTrafficUpdate
→ Stream<
Map< String, dynamic> > -
Stream of traffic statistics updates
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearLogs(
) → Future< bool> - Clear the log buffer
-
getConfig(
) → Future< String> - Get current SingBox configuration
-
getInstalledApps(
) → Future< List< Map< >String, dynamic> > - Get list of installed apps
-
getLogs(
) → Future< List< String> > - Get buffered log messages
-
getNotificationDescription(
) → Future< String> - Get notification description
-
getNotificationTitle(
) → Future< String> - Get notification title
-
getPerAppProxyList(
) → Future< List< String> > - Get current list of apps for per-app tunneling
-
getPerAppProxyMode(
) → Future< String> - Get current per-app tunneling mode
-
getPlatformVersion(
) → Future< String?> - Get platform version
-
getVPNStatus(
) → Future< String> - Get current VPN status
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveConfig(
String config) → Future< bool> - Save SingBox configuration
-
setNotificationDescription(
String description) → Future< bool> - Set notification description
-
setNotificationTitle(
String title) → Future< bool> - Set notification title
-
setPerAppProxyList(
List< String> ? appList) → Future<bool> - Set list of apps for per-app tunneling
-
setPerAppProxyMode(
String mode) → Future< bool> - Set per-app tunneling mode
-
startVPN(
) → Future< bool> - Start VPN connection
-
stopVPN(
) → Future< bool> - Stop VPN connection
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited