power_setting_windows 0.0.3 copy "power_setting_windows: ^0.0.3" to clipboard
power_setting_windows: ^0.0.3 copied to clipboard

PlatformWindows

A Flutter plugin for receiving Windows power setting notification.

power_setting_windows #

A Flutter plugin for receiving Windows power setting notification.

Getting Started #

Listen for power setting notifications:

class _MyAppState extends State<MyApp> with PowerSettingObserver {
  @override
  void initState() {
    super.initState();
    PowerSettingWindows.addObserver(this);
  }

  @override
  void dispose() {
    PowerSettingWindows.removeObserver(this);
    super.dispose();
  }

  @override
  void didChangeConsoleDisplayState(ConsoleDisplayState state) {
    ...
  }

  @override
  void didChangeSessionDisplayState(SessionDisplayState state) {
    ...
  }

  @override
  void didChangeSessionUserState(SessionUserState state) {
    ...
  }
}
1
likes
150
pub points
37%
popularity

Publisher

verified publisherdeephow.com

A Flutter plugin for receiving Windows power setting notification.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, plugin_platform_interface, win32

More

Packages that depend on power_setting_windows