123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- 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<String?> getPlatformVersion() {
- throw UnimplementedError('platformVersion() has not been implemented.');
- }
- Future<String?> runAsAdministrator() async {
- throw UnimplementedError('runAsAdministrator() has not been implemented.');
- }
- Future<bool?> isRunningAsAdmin() async {
- throw UnimplementedError('runAsAdministrator() has not been implemented.');
- }
- Future<void> showConsole() async {
- throw UnimplementedError('showConsole() has not been implemented.');
- }
- Future<void> hideConsole() async {
- throw UnimplementedError('hideConsole() has not been implemented.');
- }
- Future<bool?> isProcessRunning(String processName) async {
- throw UnimplementedError('isProcessRunning() has not been implemented.');
- }
- Future<void> killProcess(String processName) async {
- throw UnimplementedError('killProcess() has not been implemented.');
- }
- Future<bool?> macIsAdmin() async {
- throw UnimplementedError('macIsAdmin() has not been implemented.');
- }
- Future<bool?> macIsProcessRunning() async {
- throw UnimplementedError('isProcessRunning() has not been implemented.');
- }
- }
|