import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'wl_base_help_method_channel.dart'; abstract class WlBaseHelpPlatform extends PlatformInterface { /// Constructs a WlBaseHelpPlatform. WlBaseHelpPlatform() : super(token: _token); static final Object _token = Object(); static WlBaseHelpPlatform _instance = MethodChannelWlBaseHelp(); /// The default instance of [WlBaseHelpPlatform] to use. /// /// Defaults to [MethodChannelWlBaseHelp]. static WlBaseHelpPlatform get instance => _instance; /// Platform-specific implementations should set this with their own /// platform-specific class that extends [WlBaseHelpPlatform] when /// they register themselves. static set instance(WlBaseHelpPlatform instance) { PlatformInterface.verifyToken(instance, _token); _instance = instance; } Future getPlatformVersion() { throw UnimplementedError('platformVersion() has not been implemented.'); } Future runAsAdministrator() async { throw UnimplementedError('runAsAdministrator() has not been implemented.'); } Future isRunningAsAdmin() async { throw UnimplementedError('runAsAdministrator() has not been implemented.'); } Future showConsole() async { throw UnimplementedError('showConsole() has not been implemented.'); } Future hideConsole() async { throw UnimplementedError('hideConsole() has not been implemented.'); } Future isProcessRunning(String processName) async { throw UnimplementedError('isProcessRunning() has not been implemented.'); } Future killProcess(String processName) async { throw UnimplementedError('killProcess() has not been implemented.'); } Future macIsAdmin() async { throw UnimplementedError('macIsAdmin() has not been implemented.'); } Future macIsProcessRunning() async { throw UnimplementedError('isProcessRunning() has not been implemented.'); } // 新增:启用代理 Future startProxy(int port) async { throw UnimplementedError('startProxy() has not been implemented.'); } // 新增:禁用代理 Future stopProxy() async { throw UnimplementedError('stopProxy() has not been implemented.'); } // 新增:检测代理是否启用 Future isProxyEnabled() async { throw UnimplementedError('isProxyEnabled() has not been implemented.'); } Future isDialUpEnabled() async { throw UnimplementedError('isDialUpEnabled() has not been implemented.'); } }