PdfDocument.OnPdfContentInvalidatedListener


interface PdfDocument.OnPdfContentInvalidatedListener


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

Summary

Public functions

Unit
onPdfContentInvalidated(pageNumber: Int, dirtyAreas: List<Rect>)

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

Public functions

onPdfContentInvalidated

Added in 1.0.0-alpha13
fun onPdfContentInvalidated(pageNumber: Int, dirtyAreas: List<Rect>): Unit

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
pageNumber: Int

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

dirtyAreas: List<Rect>

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.