rememberInstantDocumentState

fun rememberInstantDocumentState(serverUrl: String, jwt: String, configuration: PdfActivityConfiguration = PdfActivityConfiguration.Builder(LocalContext.current).build()): DocumentState

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

Return

A rememberSaveable holding the relevant Instant document state information.

Parameters

serverUrl

The URL of the Instant server.

jwt

The JSON Web Token for authentication.

configuration

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