1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Lock device awake during calls

This commit is contained in:
2020-04-23 17:37:12 +02:00
parent 0ebccf1075
commit 7768e36c62
4 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import 'package:wakelock/wakelock.dart';
/// Device utilities
///
/// @author Pierre Hubert
/// Interface for requesting device wake locking
Future<void> setWakeLock(bool enabled) async =>
await Wakelock.toggle(on: enabled);