mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-07-03 15:13:29 +00:00
Create new plugins interface
This commit is contained in:
9
lib/modules/wake_lock.dart
Normal file
9
lib/modules/wake_lock.dart
Normal file
@ -0,0 +1,9 @@
|
||||
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(on: enabled);
|
Reference in New Issue
Block a user