1
0
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:
2020-04-24 12:19:13 +02:00
parent de84fb6113
commit ae391ab691
2 changed files with 2 additions and 2 deletions

View 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);