rememberDocumentState
fun rememberDocumentState(documentUri: Uri, configuration: PdfActivityConfiguration = PdfActivityConfiguration.Builder(LocalContext.current).build(), @IntRange(from = 0) startingPage: Int = 0): DocumentState
A state object that can be hoisted to control and observe properties of the DocumentView. Returns a Saveable 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.
startingPage
The page to start the document in, starting from 0.