getViewsForPage

abstract fun getViewsForPage(@NonNull context: Context, @NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int): List<View>

Returns all views for the given document and pageIndex. The framework will only call this from the main thread.

Return

A list of all views for the given document and page. These views will automatically be attached using the layout parameters set on them. or null if no views should be added.

Parameters

context

The current activity hosting the document the view will be overlaid on.

document

The currently loaded PdfDocument.

pageIndex

Number of the page for which the views should be returned.

Throws

If the views to be attached have no layout parameters or layout parameters that aren't of type OverlayLayoutParams.