Articles on: JavaScript Interface

JS: Screensaver

Screensaver JavaScript Functions

You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.

Delay Screensaver

Delays screensaver start by default idle timeout (if not already started), requires version 2.0.38 or higher.

<script>
//DELAY SCREENSAVER
function delayScreensaver() {
return Android.delayScreensaver();
}
</script>
<a href="javascript:delayScreensaver();">Delay screensaver start</a>


Start Screensaver

Starts screensaver if enabled, requires version 2.6.2 (build 200) or higher.

<script>
//STOP SCREENSAVER
function startScreensaver() {
return Android.startScreensaver();
}
</script>
<a href="javascript:startScreensaver();">Starts screensaver</a>


Stop Screensaver

Stops screensaver if it is running, requires version 2.0.38 or higher.

<script>
//STOP SCREENSAVER
function stopScreensaver() {
return Android.stopScreensaver();
}
</script>
<a href="javascript:stopScreensaver();">Stops screensaver if it is running</a>

Updated on: 11/05/2018

Was this article helpful?

Share your feedback

Cancel

Thank you!