PSPDFBrightnessManager
Objective-C
@interface PSPDFBrightnessManager : NSObject
Swift
class BrightnessManager : NSObject
PSPDFBrightnessManager
can be used to manage the screen idle timer.
-
Controls how the idle timer (
idleTimerDisabled
) should be managed, or if you handle this manually. Defaults toPSPDFIdleTimerManagementManual
.Declaration
Objective-C
@property (nonatomic) PSPDFIdleTimerManagement idleTimerManagement;
Swift
var idleTimerManagement: BrightnessManager.IdleTimerManagement { get set }
-
Time in seconds in which the default idle time should be extended. Defaults to 10 * 60 = 10 minutes.
Note
Setting this will re-set the idle timer to the new time.Declaration
Objective-C
@property (nonatomic) NSTimeInterval extendedIdleTime;
Swift
var extendedIdleTime: TimeInterval { get set }