ThumbnailGrid

fun ThumbnailGrid(documentData: DocumentData, onClick: suspend (Int) -> Unit, getBitmap: @Composable (Int, IntSize) -> Bitmap?)

Composable that displays a grid layout of the document pages. Customise n columns with LANDSCAPE_COLUMN_COUNT and PORTRAIT_COLUMN_COUNT.

Parameters

documentData

: The data provider for the document.

onClick

: The action to be performed when a grid item is clicked.

getBitmap

: The function to get the bitmap of the page.