startProcessMonitoring method
开始监听进程事件 需要管理员权限
Implementation
@override
Future<bool> startProcessMonitoring() async {
try {
final result = await methodChannel.invokeMethod<bool>(
'startProcessMonitoring',
);
return result ?? false;
} catch (e) {
debugPrint('Error starting process monitoring: $e');
return false;
}
}