Back

PreventScreenLock

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

app.PreventScreenLock( mode )

Example - Example



function OnStart()
{
    app.PreventScreenLock( true );
}
    Copy     Copy All       Run      

boolean