Interface OnDrawListener


  • public interface OnDrawListener
    This interface allows an extern class to draw something on the PDFView canvas, above all images.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onLayerDrawn​(android.graphics.Canvas canvas, float pageWidth, float pageHeight, int displayedPage)
      This method is called when the PDFView is drawing its view.
    • Method Detail

      • onLayerDrawn

        void onLayerDrawn​(android.graphics.Canvas canvas,
                          float pageWidth,
                          float pageHeight,
                          int displayedPage)
        This method is called when the PDFView is drawing its view.

        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