PSPDFLinkAction

Objective-C

enum PSPDFLinkAction : NSUInteger {}

Swift

@frozen enum LinkAction : UInt, @unchecked Sendable

Default action for PDF link annotations.

  • Link actions are ignored.

    Declaration

    Objective-C

    PSPDFLinkActionNone

    Swift

    case none = 0
  • Link actions open an UIAlertView.

    Declaration

    Objective-C

    PSPDFLinkActionAlertView

    Swift

    case alertView = 1
  • Link actions directly open Safari or whichever app is set as the default browser.

    Declaration

    Objective-C

    PSPDFLinkActionOpenSafari

    Swift

    case openSafari = 2
  • Link actions open in an SFSafariViewController, falling back on PDFWebViewController for local file URLs.

    Declaration

    Objective-C

    PSPDFLinkActionInlineBrowser

    Swift

    case inlineBrowser = 3
  • Always uses PDFWebViewController. Not generally recommended but might be required in certain settings for more control.

    Declaration

    Objective-C

    PSPDFLinkActionInlineWebViewController

    Swift

    case inlineWebViewController = 4