Package 

Interface ZoomEventListener


  • 
    public interface ZoomEventListener
    
                        

    Interface for listening to zoom events in a PDF previewer.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onZoomChanged(Float newZoom, Float oldZoom) Called when the zoom level changes.
      • Methods inherited from class java.lang.Object

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

      • onZoomChanged

        @MainThread() abstract Unit onZoomChanged(Float newZoom, Float oldZoom)

        Called when the zoom level changes. This is triggered when a zoom gesture completes (e.g., pinch-to-zoom ends, double-tap zoom animation finishes, or programmatic zoom completes).

        Parameters:
        newZoom - The new zoom level after the change.
        oldZoom - The previous zoom level before the change.