PdfDocument.OnPdfContentInvalidatedListener


public interface PdfDocument.OnPdfContentInvalidatedListener


Listener interface for receiving notifications when some regions of the PDF content are invalidated.

Summary

Public methods

abstract void
onPdfContentInvalidated(
    int pageNumber,
    @NonNull List<@NonNull Rect> dirtyAreas
)

Invoked when some regions of the PDF content are invalidated, and need to be re-rendered.

Public methods

onPdfContentInvalidated

Added in 1.0.0-alpha13
abstract void onPdfContentInvalidated(
    int pageNumber,
    @NonNull List<@NonNull Rect> dirtyAreas
)

Invoked when some regions of the PDF content are invalidated, and need to be re-rendered. (example scenario - when a form field is edited in the PDF.)

Parameters
int pageNumber

The page number (0-index based) on which the content was invalidated.

@NonNull List<@NonNull Rect> dirtyAreas

A list of Rect indicating regions of the PDF content that were invalidated and need to be re-rendered in order to sync UI to the latest state of the document.