From 47c3cb98777dc520d325ae37f50cb20b35db9295 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 4 Mar 2018 19:01:56 +0100 Subject: [PATCH] Added isKeptOn example Seems to be forgotten :D --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8a9350c..295e5bb 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ double brightness = await Screen.brightness; // Set the brightness: Screen.setBrightness(0.5); +// Check if the screen is kept on: +bool isKeptOn = await Screen.isKeptOn; + // Prevent screen from going into sleep mode: Screen.keepOn(true); ```