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