-
- All Implemented Interfaces:
-
com.harissk.pdfpreview.link.LinkHandler
public final class DefaultLinkHandler implements LinkHandler
A default implementation of the {@link LinkHandler} interface that handles link taps by opening URIs or jumping to internal page destinations.
-
-
Constructor Summary
Constructors Constructor Description DefaultLinkHandler(PDFView pdfView)
-
Method Summary
Modifier and Type Method Description UnithandleLinkEvent(LinkTapEvent event)Handles the link tap event by either opening the URI of the link or jumping to the destination page, if applicable. -
-
Constructor Detail
-
DefaultLinkHandler
DefaultLinkHandler(PDFView pdfView)
- Parameters:
pdfView- The {@link PDFView} that the handler is associated with.
-
-
Method Detail
-
handleLinkEvent
Unit handleLinkEvent(LinkTapEvent event)
Handles the link tap event by either opening the URI of the link or jumping to the destination page, if applicable.
- Parameters:
event- The current link tap event.
-
-
-
-