Back

PreventScreenLock

Hello World

The PreventScreenLock method prevents the device screen from dimming and locking while your app is in the foreground.

app.PreventScreenLock( mode )

Example - Example

function OnStart()
{
    app.PreventScreenLock( true );
}
    Copy     Copy All       Run      
boolean
string: Full, “ Screen and Keyboard on” or Partial, “ Screen and Keyboard off”