Helpers

  • Coordinates appearance mode changes.

    On iOS versions prior to iOS 13, this class will update the PDF page rendering style, as well as the UI appearance of certain UI widgets when transitioning in and out of the dark interface style.

    On iOS 13 and later the this class will only change the PDF page rendering style. Any UI appearance changes should be instead handled by the host application via the delegate methods this class offers.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFAppearanceModeManager : NSObject

    Swift

    class PSPDFAppearanceModeManager : NSObject
  • PSPDFBrightnessManager can be used to manage the screen idle timer.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFBrightnessManager : NSObject

    Swift

    class PSPDFBrightnessManager : NSObject
  • This subclass adds support for a block-based action on UIMenuItem. If you are as annoyed about the missing target/action pattern, you will love this.

    If you use PSPDFMenuItem with the classic initWithTitle:selector: initializer, this will work and be handled just like a regular UIMenuItem.

    Warning

    By design, PSPDFMenuItem will only work with different title names. If no identifier is set, then title is required to be unique when converted to lowercase and non-ASCII characters are stripped, even when images are used.
    See more

    Declaration

    Objective-C

    
    @interface PSPDFMenuItem : UIMenuItem

    Swift

    class PSPDFMenuItem : UIMenuItem
  • PSPDFNavigationItem handles the left and right bar button items for different view modes.

    This type of navigation item enables you to assign left and right bar button items based on the view mode, so that every view mode can have different bar button items displayed in the navigation bar.

    The navigation item and the corresponding view controller ensure that displayed bar button items are are updated correctly when the view mode changes.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFNavigationItem : UINavigationItem

    Swift

    class PSPDFNavigationItem : UINavigationItem
  • The network indicator manager will track the number of currently open network request.

    See more

    Declaration

    Objective-C

    @protocol PSPDFNetworkActivityIndicatorManager <NSObject>

    Swift

    protocol PSPDFNetworkActivityIndicatorManager : NSObjectProtocol
  • Controls text-to-speech features.

    Note

    This class can only be used from the main thread.

    Voice availability depends on user settings. High-quality voices might need to be manually downloaded https://support.apple.com/en-us/HT203077

    Voice selection uses [AVSpeechSynthesisVoice voiceWithLanguage:]. This will return enhanced quality voice if available, default quality otherwise.

    As of iOS 12b4, Siri isn’t part of the voice selection list. rdar://42656565. (Has been closed as no plan to change)

    See more

    Declaration

    Objective-C

    
    @interface PSPDFSpeechController : NSObject

    Swift

    class PSPDFSpeechController : NSObject
  • A progress view/status HUD.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFStatusHUD : NSObject

    Swift

    class PSPDFStatusHUD : NSObject
  • Implement in your UIViewController subclass to be able to match the style of PSPDFViewController.

    See more

    Declaration

    Objective-C

    @protocol PSPDFStyleable <NSObject>

    Swift

    protocol PSPDFStyleable : NSObjectProtocol
  • A layout similar to UICollectionViewFlowLayout with support for sticky headers and double-page spreads, as you’d use it for the thumbnails of a magazine.

    Note

    This layout only supports a single section. Using multiple sections is unsupported and may result in undefined behavior.

    Note

    This layout only supports a very limited horizontal scrolling mode which you can enable by setting the singleLineMode property to YES.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFThumbnailFlowLayout : UICollectionViewLayout

    Swift

    class PSPDFThumbnailFlowLayout : UICollectionViewLayout
  • A helper that can be used to present a dialog, allowing the user to specify the annotation author name.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFUsernameHelper : NSObject

    Swift

    class PSPDFUsernameHelper : NSObject
  • Defines what page(s) are currently visible.

    See more

    Declaration

    Objective-C

    @protocol PSPDFVisiblePagesDataSource <NSObject>

    Swift

    protocol PSPDFVisiblePagesDataSource : NSObjectProtocol
  • Handles conflict resolution UI presentation in response to a PSPDFDocumentUnderlyingFileChangedNotification. Invokes the delegate to perform the selected conflict resolution option when done.

    Warning

    This class manages UI and it’s methods should only be used on the main thread.
    See more

    Declaration

    Objective-C

    
    @interface PSPDFConflictResolutionManager : NSObject

    Swift

    class PSPDFConflictResolutionManager : NSObject