Instance Property


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


@property(nonatomic, getter=isIdleTimerDisabled) BOOL idleTimerDisabled;


The default value of this property is NO. 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 YES, disable the “idle timer” to avert system sleep.