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.
///
/// 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.
- (void)appearanceManager:(PSPDFAppearanceModeManager *)manager applyAppearanceSettingsForMode:(PSPDFAppearanceMode)mode PSPDF_DEPRECATED(10.5, "Appearance mode changes only affect page rendering and should no longer be used for UI customization.");
/// 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.
- (void)appearanceManager:(PSPDFAppearanceModeManager *)manager updateConfiguration:(PSPDFConfigurationBuilder *)builder forMode:(PSPDFAppearanceMode)mode PSPDF_DEPRECATED(10.5, "Appearance mode changes only affect page rendering and should no longer be used for UI customization.");
@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.
-
Deprecated
Deprecated in PSPDFKit 10.5 for iOS. Appearance mode changes only affect page rendering and should no longer be used for UI customization.
Update any UIAppearance changes for the selected mode.
On iOS 13 and later this can be done using
overrideUserInterfaceStyle
available onUIViewController
or aUIView
.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.
-
Deprecated
Deprecated in PSPDFKit 10.5 for iOS. Appearance mode changes only affect page rendering and should no longer be used for UI customization.
Update
builder
with any settings specific to the providedmode
.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.