Package apple.pdfkit.protocol
Interface PDFViewDelegate
-
public interface PDFViewDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidPDFViewOpenPDFForRemoteGoToAction(@NotNull PDFView sender, @NotNull PDFActionRemoteGoTo action)Delegates implementing the following method will be called to handle clicks on annotations containing a PDFActionRemoteGoTo action.default @NotNull UIViewControllerPDFViewParentViewController()A delegate that should return the main view controller the PDFView resides in.default voidPDFViewPerformFind(@NotNull PDFView sender)Certain PDFAction's may request that the PDF viewer application perform a Find.default voidPDFViewPerformGoToPage(@NotNull PDFView sender)Certain PDFAction's may request that the PDF viewer application bring up a panel allowing the user to enter a specific page number.default voidPDFViewWillClickOnLinkWithURL(@NotNull PDFView sender, @NotNull NSURL url)Delegates implementing the following method will be called to handle clicks on URL links within the PDFView.
-
-
-
Method Detail
-
PDFViewOpenPDFForRemoteGoToAction
default void PDFViewOpenPDFForRemoteGoToAction(@NotNull @NotNull PDFView sender, @NotNull @NotNull PDFActionRemoteGoTo action)Delegates implementing the following method will be called to handle clicks on annotations containing a PDFActionRemoteGoTo action. The action contains a URL and a page index and point. The delegate should open the PDF indicated by the URL and go to the page and point indicated. The easiest way to do the latter is to create a PDFDestination with the page index and point once a PDFDocument from the URL is created - then you can call: -[PDFView goToDestination:]. The default implementation simply beeps. API-Since: 11.0
-
PDFViewParentViewController
@NotNull default @NotNull UIViewController PDFViewParentViewController()
A delegate that should return the main view controller the PDFView resides in. This is to add additional support to one's view such as 'Lookup' from the text selection menu, along with support of entering text for notes. API-Since: 13.0
-
PDFViewPerformFind
default void PDFViewPerformFind(@NotNull @NotNull PDFView sender)Certain PDFAction's may request that the PDF viewer application perform a Find. Delegates responding to the below method will be called when the user clicks on an annotation with such an action. API-Since: 11.0
-
PDFViewPerformGoToPage
default void PDFViewPerformGoToPage(@NotNull @NotNull PDFView sender)Certain PDFAction's may request that the PDF viewer application bring up a panel allowing the user to enter a specific page number. Delegates responding to the below method will be called when the user clicks on an annotation with such an action. API-Since: 11.0
-
PDFViewWillClickOnLinkWithURL
default void PDFViewWillClickOnLinkWithURL(@NotNull @NotNull PDFView sender, @NotNull @NotNull NSURL url)Delegates implementing the following method will be called to handle clicks on URL links within the PDFView. The default implementation calls [[NSWorkspace sharedWorkspace] openURL: url]. API-Since: 11.0
-
-