PSPDFAppearanceModeManagerDelegate

Objective-C

@protocol PSPDFAppearanceModeManagerDelegate<NSObject>

@optional

/**
 Provides the document render options for the specified mode.

 @param manager A reference to the invoking appearance mode manager.
 @param mode The mode that is about to be applied.

 @note Overrides the default behavior, if implemented.
 */
- (PSPDFRenderOptions *)appearanceManager:(PSPDFAppearanceModeManager *)manager renderOptionsForMode:(PSPDFAppearanceMode)mode;

/**
 Update any UIAppearance changes for the selected mode.

 Can be used to customize the application interface for the selected mode.
 On iOS 13 and later this can be done using `overrideUserInterfaceStyle`
 available on `UIViewController` or a `UIView`.

 @param manager A reference to the invoking appearance mode manager.
 @param mode The mode that is about to be applied.

 @note Overrides the default behavior present on iOS versions prior to iOS 13, if implemented.
 */
- (void)appearanceManager:(PSPDFAppearanceModeManager *)manager applyAppearanceSettingsForMode:(PSPDFAppearanceMode)mode;

/**
 Update `builder` with any settings specific to the provided `mode`.

 @param manager A reference to the invoking appearance mode manager.
 @param builder The controller configuration that can be updated.
 @param mode The mode that is about to be applied.

 @note Overrides the default behavior present on iOS versions prior to iOS 13, if implemented.
 */
- (void)appearanceManager:(PSPDFAppearanceModeManager *)manager updateConfiguration:(PSPDFConfigurationBuilder *)builder forMode:(PSPDFAppearanceMode)mode;

@end

Swift

protocol AppearanceModeManagerDelegate : NSObjectProtocol

Undocumented

  • Provides the document render options for the specified mode.

    Note

    Overrides the default behavior, if implemented.

    Declaration

    Objective-C

    - (nonnull PSPDFRenderOptions *)
           appearanceManager:(nonnull PSPDFAppearanceModeManager *)manager
        renderOptionsForMode:(PSPDFAppearanceMode)mode;

    Swift

    optional func appearanceManager(_ manager: PDFAppearanceModeManager, renderOptionsFor mode: PDFAppearanceMode) -> PSPDFRenderOptions

    Parameters

    manager

    A reference to the invoking appearance mode manager.

    mode

    The mode that is about to be applied.

  • Update any UIAppearance changes for the selected mode.

    Can be used to customize the application interface for the selected mode. On iOS 13 and later this can be done using overrideUserInterfaceStyle available on UIViewController or a UIView.

    Note

    Overrides the default behavior present on iOS versions prior to iOS 13, if implemented.

    Declaration

    Objective-C

    - (void)appearanceManager:(nonnull PSPDFAppearanceModeManager *)manager
        applyAppearanceSettingsForMode:(PSPDFAppearanceMode)mode;

    Swift

    optional func appearanceManager(_ manager: PDFAppearanceModeManager, applyAppearanceSettingsFor mode: PDFAppearanceMode)

    Parameters

    manager

    A reference to the invoking appearance mode manager.

    mode

    The mode that is about to be applied.

  • Update builder with any settings specific to the provided mode.

    Note

    Overrides the default behavior present on iOS versions prior to iOS 13, if implemented.

    Declaration

    Objective-C

    - (void)appearanceManager:(nonnull PSPDFAppearanceModeManager *)manager
          updateConfiguration:(nonnull PSPDFConfigurationBuilder *)builder
                      forMode:(PSPDFAppearanceMode)mode;

    Swift

    optional func appearanceManager(_ manager: PDFAppearanceModeManager, updateConfiguration builder: PSPDFConfigurationBuilder, for mode: PDFAppearanceMode)

    Parameters

    manager

    A reference to the invoking appearance mode manager.

    builder

    The controller configuration that can be updated.

    mode

    The mode that is about to be applied.