FlutterSingboxPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- FlutterSingboxPlatform
- Implementers
Constructors
- FlutterSingboxPlatform()
- Constructs a FlutterSingboxPlatform.
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 Returns a list of maps with keys: "packageName", "appName", "isSystemApp"
-
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 proxy
-
getPerAppProxyMode(
) → Future< String> - Get current per-app proxy mode
-
getPlatformVersion(
) → Future< String?> -
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 proxy
-
setPerAppProxyMode(
String mode) → Future< bool> - Set per-app proxy mode Valid values are: "off", "include", "exclude"
-
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
Static Properties
- instance ↔ FlutterSingboxPlatform
-
The default instance of FlutterSingboxPlatform to use.
getter/setter pair