mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-09-18 21:38:48 +00:00
Rename plugins interfaces module
This commit is contained in:
9
lib/plugins_interface/wake_lock.dart
Normal file
9
lib/plugins_interface/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