Back

SetKioskMode

Hello World

Blocks android functionality to keep the rest of your phone safe while others may use your app.

app.SetKioskMode( mode, enable, options, packages )

Note: This function is a premium feature. Please consider subscribing to Premium to use this feature and support DroidScript in its further development.

ATTENTION: This function is available in the DS X-Versions only as it doesn't meet the GooglePlay security requirements. APKs built with X-Versions are for private use only.

Example - Demo

function OnStart()
{
    app.SetKioskMode( "Status,Nav", true, "Black" );
}
Copy All       Run      
Boolean
String
String: comma “,” separated: “Power”, “Status”, “Nav”, “NavRight”, LockTask, Pin
String: comma “,” separated: “Black”, Tasks