FlutterSingBoxWindows class

Inheritance

Constructors

FlutterSingBoxWindows()

Properties

clashModeStream Stream<ClientClashMode>
TODO: async* 的理论竞态,可改为 Stream.multi。但竞态窗口极窄,与 proxyStateStream 一致。
no setteroverride
connectedStatusStream Stream<ClientStatus>
A stream of client connection status updates.
no setterinherited
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<ClientLog>>
A stream of log messages from the sing-box core.
no setterinherited
proxyStateStream Stream<ProxyState>
TODO: async* 的理论竞态,可改为 Stream.multi。但竞态窗口极窄,无需 Stream.multi。
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
emitClashMode(ClientClashMode mode) → void
供 HelperHttpClient 在连接成功后回调,取代直接访问 controller。
emitClientGroups(List<ClientGroup> groups) → void
供 HelperHttpClient 在连接成功后回调,取代直接访问 controller。
emitProxyState(ProxyState state) → void
供 HelperHttpClient 调用,取代直接访问 controller。
getSingBoxVersion() Future<String>
Gets the version of the underlying sing-box core.
override
init() Future<void>
Initializes the platform interface.
override
installService({required String serviceName, required String displayName, required String description}) Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryServiceStatus() Future<WindowsServiceStatus>
查询 Windows 端 clash_sing_service 的安装/运行状态。
override
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.
inherited
startService() Future<bool>
启动已安装的 Windows 系统服务。
override
startVpn() Future<void>
Starts the VPN service.
override
stopService() Future<bool>
停止 Windows 系统服务(helper 内部走 HTTP API 同步关闭)。
override
stopVpn() Future<void>
Stops the VPN service.
override
toString() String
A string representation of this object.
inherited
uninstallService() Future<bool>
卸载 Windows 系统服务。
override
urlTest({required String groupTag}) Future<void>
Performs a URL test for a specific group.
override

Operators

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

Static Methods

registerWith() → void
Registers this class as the default instance of FlutterSingBoxPlatform.