rememberDocumentState

fun rememberDocumentState(documentUri: Uri, configuration: PdfActivityConfiguration = PdfActivityConfiguration.Builder(LocalContext.current).build()): DocumentState

A state object that can be hoisted to control and observe properties of the com.pspdfkit.jetpack.compose.views.DocumentView. Returns a Saver containing the DocumentState, used for remembering the state of a given document.

Return

A rememberSaveable holding the relevant document state information.

Parameters

documentUri

The Uri for the document this state belongs to.

configuration

The PdfActivityConfiguration used for this state. A default configuration is used if none is passed.