Instance Property

isIdleTimerDisabled

A Boolean value that controls whether the idle timer is disabled for the app.

Declaration

var isIdleTimerDisabled: Bool { get set }

Discussion

The default value of this property is false. When most apps have no touches as user input for a short period, the system puts the device into a "sleep” state where the screen dims. This is done for the purposes of conserving power. However, apps that don't have user input except for the accelerometer—games, for instance—can, by setting this property to true, disable the “idle timer” to avert system sleep.