Package 

Class DefaultLinkHandler

  • 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.

    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.