public static interface

PdfThumbnailBar.OnPageChangedListener

com.pspdfkit.ui.PdfThumbnailBar.OnPageChangedListener

Class Overview

Listener for receiving page changes caused by the user touching or dragging the PdfThumbnailBar.

Summary

Public Methods
abstract void onPageChanged(PdfThumbnailBarController controller, int pageIndex)
Called whenever the user touched or dragged across the thumbnail bar, selecting a different page.

Public Methods

public abstract void onPageChanged (PdfThumbnailBarController controller, int pageIndex)

Called whenever the user touched or dragged across the thumbnail bar, selecting a different page. The thumbnail bar won't update its internal state (i.e. the currently shown emphasized/highlighted page) after calling this method, but will wait for a subsequent call to onPageChanged(PdfDocument, int) or onPageChanged(PdfDocument, int) before updating.

Parameters
controller PdfThumbnailBarController that triggered this event.
pageIndex Number of the selected page.