Skip to content

Commit

Permalink
Merge pull request #1 from IKStreamIvo/patch-1
Browse files Browse the repository at this point in the history
Added isKeptOn example
  • Loading branch information
clovisnicolas authored Mar 4, 2018
2 parents d0f62b3 + 47c3cb9 commit 87a95a6
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 87a95a6

Please sign in to comment.