Set wake lock
  • 18 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Set wake lock

  • Dark
    Light
  • PDF

Set wake lock to enabled/disabled, allowing you to keep the device awake by preventing the screen from automatically going to sleep/locking.

Input arguments

Label Key Type Required? Default Description
Wake lock on? locked Boolean Yes true Should the wake lock be switched on or off?

Output arguments

Number of outputs: 1

No output arguments.

Events

No events.

Errors

Label Code Description
Unknown error unknown Thrown if an unknown error occurred while trying to vibrate the phone

Was this article helpful?

What's Next