wl_base_help_platform_interface.dart 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import 'package:plugin_platform_interface/plugin_platform_interface.dart';
  2. import 'wl_base_help_method_channel.dart';
  3. abstract class WlBaseHelpPlatform extends PlatformInterface {
  4. /// Constructs a WlBaseHelpPlatform.
  5. WlBaseHelpPlatform() : super(token: _token);
  6. static final Object _token = Object();
  7. static WlBaseHelpPlatform _instance = MethodChannelWlBaseHelp();
  8. /// The default instance of [WlBaseHelpPlatform] to use.
  9. ///
  10. /// Defaults to [MethodChannelWlBaseHelp].
  11. static WlBaseHelpPlatform get instance => _instance;
  12. /// Platform-specific implementations should set this with their own
  13. /// platform-specific class that extends [WlBaseHelpPlatform] when
  14. /// they register themselves.
  15. static set instance(WlBaseHelpPlatform instance) {
  16. PlatformInterface.verifyToken(instance, _token);
  17. _instance = instance;
  18. }
  19. Future<String?> getPlatformVersion() {
  20. throw UnimplementedError('platformVersion() has not been implemented.');
  21. }
  22. Future<String?> runAsAdministrator() async {
  23. throw UnimplementedError('runAsAdministrator() has not been implemented.');
  24. }
  25. Future<bool?> isRunningAsAdmin() async {
  26. throw UnimplementedError('runAsAdministrator() has not been implemented.');
  27. }
  28. Future<void> showConsole() async {
  29. throw UnimplementedError('showConsole() has not been implemented.');
  30. }
  31. Future<void> hideConsole() async {
  32. throw UnimplementedError('hideConsole() has not been implemented.');
  33. }
  34. Future<bool?> isProcessRunning(String processName) async {
  35. throw UnimplementedError('isProcessRunning() has not been implemented.');
  36. }
  37. Future<void> killProcess(String processName) async {
  38. throw UnimplementedError('killProcess() has not been implemented.');
  39. }
  40. Future<bool?> macIsAdmin() async {
  41. throw UnimplementedError('macIsAdmin() has not been implemented.');
  42. }
  43. Future<bool?> macIsProcessRunning() async {
  44. throw UnimplementedError('isProcessRunning() has not been implemented.');
  45. }
  46. }