Class DocumentState
-
- All Implemented Interfaces:
public abstract class DocumentState
A state object that can be hoisted to control and observe properties of the com.pspdfkit.jetpack.compose.views.DocumentView. Create instances of this object using rememberDocumentState.
-
-
Field Summary
Fields Modifier and Type Field Description private DocumentConnection
documentConnection
-
Method Summary
Modifier and Type Method Description final DocumentConnection
getDocumentConnection()
Provides ability to perform specific tasks in Document. final Unit
setDocumentConnection(DocumentConnection documentConnection)
Provides ability to perform specific tasks in Document. final Unit
toggleView(Integer option)
Toggles the view based on the provided MENU_OPTIONS in com.pspdfkit.ui.PdfActivity. abstract String
getTitle()
Provides the title of the document. -
-
Method Detail
-
getDocumentConnection
final DocumentConnection getDocumentConnection()
Provides ability to perform specific tasks in Document.
-
setDocumentConnection
final Unit setDocumentConnection(DocumentConnection documentConnection)
Provides ability to perform specific tasks in Document.
-
toggleView
final Unit toggleView(Integer option)
Toggles the view based on the provided MENU_OPTIONS in com.pspdfkit.ui.PdfActivity.
- Parameters:
option
- The menu id of view to toggle.
-
-
-
-