Links
Comment on page

Screen Control

You'll need to import the javascript file in your website before starting from this link.
To Keep device screen on all the time.
Plain JS
ES 6+
const { screen } = window.WTN
//to keep device screen on all the time
screen.keepScreenOn()
//to revert back to normal screen behaviour
screen.keepScreenNormal()
import screen from "webtonative/Screen"
//to keep device screen on all the time
screen.keepScreenOn()
//to revert back to normal screen behaviour
screen.keepScreenNormal()