MethodChannelFlutterSingBox class
An implementation of FlutterSingBoxPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterSingBoxPlatform
- MethodChannelFlutterSingBox
Constructors
Properties
-
clashModeStream
→ Stream<
ClientClashMode> -
A stream of client Clash mode updates.
no setteroverride
-
connectedStatusStream
→ Stream<
ClientStatus> -
A stream of client connection status updates.
no setteroverride
-
groupStream
→ Stream<
List< ClientGroup> > -
A stream of client group updates.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
logStream
→ Stream<
List< String> > -
A stream of log messages from the sing-box core.
no setteroverride
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
-
proxyStateStream
→ Stream<
ProxyState> -
A stream of proxy state updates.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getSingBoxVersion(
) → Future< String> -
Gets the version of the underlying sing-box core.
override
-
init(
) → Future< void> -
Initializes the platform interface.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
selectOutbound(
{required String groupTag, required String outboundTag}) → Future< void> -
Selects an outbound for a specific group.
override
-
serviceReload(
) → Future< void> -
Reloads the service configuration.
override
-
setClashMode(
String mode) → Future< void> -
Sets the Clash mode.
override
-
setGroupExpand(
{required String groupTag, required bool isExpand}) → Future< void> -
Sets the expansion state of a group.
override
-
startVpn(
) → Future< void> -
Starts the VPN service.
override
-
stopVpn(
) → Future< void> -
Stops the VPN service.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
urlTest(
{required String groupTag}) → Future< void> -
Performs a URL test for a specific group.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited