PSPDFExternalURLHandler
Objective-C
@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
Swift
protocol ExternalURLHandler : NSObjectProtocol
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