PSPDFBrightnessManager


@interface PSPDFBrightnessManager : NSObject

Allows to manage device brightness. Includes additional software dimming to make the screen extra dark.

  • Enables software dimming. Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL wantsSoftwareDimming;

    Swift

    var wantsSoftwareDimming: Bool { get set }
  • Enables additional software dimming to make the screen really dark. Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL wantsAdditionalSoftwareDimming;

    Swift

    var wantsAdditionalSoftwareDimming: Bool { get set }
  • Defaults to 0.3. Only relevant if wantsAdditionalSoftwareDimming is YES. Especially for special use cases like airplane software that requires additional dimming.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        CGFloat additionalBrightnessDimmingFactor;

    Swift

    var additionalBrightnessDimmingFactor: CGFloat { get set }
  • Defaults to 0.6. If you set this to 1 the screen will be completely dark. Only relevant if wantsAdditionalSoftwareDimming is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        CGFloat maximumAdditionalBrightnessDimmingFactor;

    Swift

    var maximumAdditionalBrightnessDimmingFactor: CGFloat { get set }
  • Brightness value 0..1. Takes additional software dimming into account. Supports KVO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat brightness;

    Swift

    var brightness: CGFloat { get set }