Interface DocumentConnection
-
- All Implemented Interfaces:
public interface DocumentConnection
This acts as a bridge between PdfFragment and DocumentView to access respective functionalities.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
addAnnotationToPage(Annotation annotation, Boolean selectImmediately)
Defers to PdfFragment. abstract Unit
setPageIndex(@IntRange(from = 0) Integer pageIndex)
Sets the page index in PdfFragment. abstract Unit
addDrawableProvider(SearchResultHighlighter highlighter)
Defers to PdfFragment. abstract Unit
save(String path, DocumentSaveOptions options)
Saves the document to an external file even if it hasn't been changed. abstract Function1<Boolean, Unit>
getShowToolbarMenu()
This function is used to show/hide overflow menu dropdown in toolbar AnnotationConfigurationRegistry
getAnnotationConfigurationRegistry()
PdfUi
getPdfUI()
PdfUi
getPdfUi()
PSPDFKitViews
getPdfActivityViews()
-
-
Method Detail
-
addAnnotationToPage
abstract Unit addAnnotationToPage(Annotation annotation, Boolean selectImmediately)
Defers to PdfFragment.addAnnotationToPage(Annotation, Boolean)
-
setPageIndex
abstract Unit setPageIndex(@IntRange(from = 0) Integer pageIndex)
Sets the page index in PdfFragment.pageIndex
-
addDrawableProvider
abstract Unit addDrawableProvider(SearchResultHighlighter highlighter)
Defers to PdfFragment.addDrawableProvider()
-
save
abstract Unit save(String path, DocumentSaveOptions options)
Saves the document to an external file even if it hasn't been changed. Note that this may take a while and should not be called on the main thread. This will not clear the {@link #wasModified()} flag on this document instance, and will not replace the source of this document either (i.e. subsequent calls to {@link #saveIfModified()} will still save the document back to the original file).
- Parameters:
path
- Absolute filepath to the output document file.options
- Save options for the document, may be {@code null} to use default set.
-
getShowToolbarMenu
abstract Function1<Boolean, Unit> getShowToolbarMenu()
This function is used to show/hide overflow menu dropdown in toolbar
-
getAnnotationConfigurationRegistry
AnnotationConfigurationRegistry getAnnotationConfigurationRegistry()
-
getPdfActivityViews
PSPDFKitViews getPdfActivityViews()
-
-
-
-