1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-30 14:58:52 +00:00
comunicmobile/lib/plugins_interface/wake_lock.dart
2021-02-07 17:09:08 +01:00

10 lines
245 B
Dart

import 'package:wakelock/wakelock.dart';
/// Wake lock plugin interface
///
/// @author Pierre Hubert
/// Interface for requesting device wake locking
Future<void> setWakeLock(bool enabled) async =>
await Wakelock.toggle(enable: enabled);