Package 

Interface RenderingEventListener

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onPageRendered(Integer pageNumber) Called when a specific page in the PDF document has been rendered.
      abstract Unit onPageFailedToRender(PageRenderingException pageRenderingException) Called when a specific page in the PDF document has failed to render.
      abstract Unit onDrawPage(Canvas canvas, Float pageWidth, Float pageHeight, Integer displayedPage) This method is called when the PDFView is drawing its view.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onPageRendered

        @MainThread() abstract Unit onPageRendered(Integer pageNumber)

        Called when a specific page in the PDF document has been rendered.

        Parameters:
        pageNumber - The page number that has been rendered.
      • onPageFailedToRender

        @MainThread() abstract Unit onPageFailedToRender(PageRenderingException pageRenderingException)

        Called when a specific page in the PDF document has failed to render.

        Parameters:
        pageRenderingException - The {@link PageRenderingException} that caused the page to fail to render.
      • onDrawPage

        @MainThread() abstract Unit onDrawPage(Canvas canvas, Float pageWidth, Float pageHeight, Integer displayedPage)

        This method is called when the PDFView is drawing its view.

        <p> The page is starting at (0,0).
        Parameters:
        canvas - The canvas on which to draw things.
        pageWidth - The width of the current page.
        pageHeight - The height of the current page.
        displayedPage - The current page index.