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 to PSPDFIdleTimerManagementManual.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        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, assign, unsafe_unretained, readwrite)
        NSTimeInterval extendedIdleTime;

    Swift

    var extendedIdleTime: TimeInterval { get set }