setDebug method

Future<void> setDebug(
  1. bool value
)

Enables or disables debug mode for the plugin.

When debug mode is enabled, additional logs are printed to the console, allowing developers to observe the internal behavior of the plugin, such as user activity changes or active window updates.

  • value: A bool that determines whether debug mode is enabled (true) or disabled (false).
await _windowFocus.setDebug(true);
print('Debug mode enabled');

Implementation

Future<void> setDebug(bool value) async {
  _debug = value;
  await _channel.invokeMethod('setDebugMode', {
    'debug': value,
  });
}