PSPDFExternalURLHandler

@protocol PSPDFExternalURLHandler<NSObject>

/// Handles URL, shows alert dialog if this would open an external app.
/// Returns NO if this is an internal URL (http[s]://, file://)
- (BOOL)handleExternalURL:(nonnull NSURL *)URL completionBlock:(nullable void (^)(BOOL switchedApplication))completionBlock;

@end

Undocumented

  • Handles URL, shows alert dialog if this would open an external app. Returns NO if this is an internal URL (http[s]://, file://)

    Declaration

    Objective-C

    - (BOOL)handleExternalURL:(nonnull NSURL *)URL
              completionBlock:(nullable void (^)(BOOL))completionBlock;

    Swift

    func handleExternalURL(_ URL: URL, completionBlock: ((Bool) -> Void)? = nil) -> Bool