Skip to content

Commit

Permalink
Added isKeptOn example
Browse files Browse the repository at this point in the history
Seems to be forgotten :D
  • Loading branch information
Pixel authored Mar 4, 2018
1 parent d0f62b3 commit 47c3cb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

0 comments on commit 47c3cb9

Please sign in to comment.