pspdfkit / com.pspdfkit.jetpack.compose

Package com.pspdfkit.jetpack.compose

Types

DocumentState

A state object that can be hoisted to control and observe properties of the DocumentView. Create instances of this object using rememberDocumentState.

class DocumentState

Annotations

ExperimentalPSPDFKitApi

Annotation used to indicate a member is part of an experimental PSPDFKit API. Anything carrying this annotation may be changed in the future without notice.

annotation class ExperimentalPSPDFKitApi

Functions

DocumentView

Composable that displays the Document in the specified Uri.

fun DocumentView(documentUri: Uri, modifier: Modifier = Modifier): Unit
fun DocumentView(documentState: DocumentState, modifier: Modifier = Modifier): Unit

rememberDocumentState

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.

fun rememberDocumentState(documentUri: Uri, configuration: PdfActivityConfiguration = PdfActivityConfiguration.Builder(LocalContext.current).build(), startingPage: Int = 0): <ERROR CLASS>