Class DocumentStateKt
-
- All Implemented Interfaces:
public final class DocumentStateKt
-
-
Method Summary
Modifier and Type Method Description final static DocumentState
rememberDocumentState(Uri documentUri, PdfActivityConfiguration configuration)
A state object that can be hoisted to control and observe properties of the com.pspdfkit.jetpack.compose.views.DocumentView. final static DocumentState
rememberDocumentState(DataProvider dataProvider, PdfActivityConfiguration configuration)
A state object that can be hoisted to control and observe properties of the com.pspdfkit.jetpack.compose.views.DocumentView. final static DocumentState
rememberImageDocumentState(Uri documentUri, PdfActivityConfiguration configuration)
A state object that can be hoisted to control and observe properties of the com.pspdfkit.jetpack.compose.views.ImageDocumentView. final static DocumentState
rememberImageDocumentState(DataProvider dataProvider, PdfActivityConfiguration configuration)
A state object that can be hoisted to control and observe properties of the com.pspdfkit.jetpack.compose.views.ImageDocumentView. -
-
Method Detail
-
rememberDocumentState
@Composable() final static DocumentState rememberDocumentState(Uri documentUri, PdfActivityConfiguration configuration)
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.
- Parameters:
documentUri
- The Uri for the document this state belongs to.configuration
- The PdfActivityConfiguration used for this state.- Returns:
A rememberSaveable holding the relevant document state information.
-
rememberDocumentState
@Composable() final static DocumentState rememberDocumentState(DataProvider dataProvider, PdfActivityConfiguration configuration)
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.
- Parameters:
dataProvider
- The DataProvider for the document this state belongs to.configuration
- The PdfActivityConfiguration used for this state.- Returns:
A rememberSaveable holding the relevant document state information.
-
rememberImageDocumentState
@Composable() final static DocumentState rememberImageDocumentState(Uri documentUri, PdfActivityConfiguration configuration)
A state object that can be hoisted to control and observe properties of the com.pspdfkit.jetpack.compose.views.ImageDocumentView. Returns a Saver containing the DocumentState, used for remembering the state of a given document.
- Parameters:
documentUri
- The Uri for the document this state belongs to.configuration
- The PdfActivityConfiguration used for this state.- Returns:
A rememberSaveable holding the relevant document state information.
-
rememberImageDocumentState
@Composable() final static DocumentState rememberImageDocumentState(DataProvider dataProvider, PdfActivityConfiguration configuration)
A state object that can be hoisted to control and observe properties of the com.pspdfkit.jetpack.compose.views.ImageDocumentView. Returns a Saver containing the DocumentState, used for remembering the state of a given document.
- Parameters:
dataProvider
- The DataProvider for the document this state belongs to.configuration
- The PdfActivityConfiguration used for this state.- Returns:
A rememberSaveable holding the relevant document state information.
-
-
-
-