Document Coordinator
interface DocumentCoordinator
Coordinates loading and display of multiple documents in com.pspdfkit.ui.PdfActivity. Use it to modify the list of loaded documents and to switch between them.
See also
Types
Link copied to clipboard
interface OnDocumentCoordinatorEmptyListener
Listener for the last document being removed from the DocumentCoordinator.
Link copied to clipboard
interface OnDocumentsChangedListener
Listener for changes made to documents managed by DocumentCoordinator.
Link copied to clipboard
interface OnDocumentVisibleListener
Listener for document becoming visible in the DocumentCoordinator.
Functions
Link copied to clipboard
Inserts a new document at the end of the documents list.
Inserts a new document at the specified index.
Link copied to clipboard
abstract fun addDocumentAfterVisibleDocument(@NonNull documentDescriptor: DocumentDescriptor): Boolean
Inserts a document after the current visible document.
Link copied to clipboard
abstract fun addOnDocumentCoordinatorEmptyListener(@NonNull listener: DocumentCoordinator.OnDocumentCoordinatorEmptyListener)
Registers a OnDocumentCoordinatorEmptyListener to get notified when document gets visible in the manager.
Link copied to clipboard
abstract fun addOnDocumentsChangedListener(@NonNull listener: DocumentCoordinator.OnDocumentsChangedListener)
Registers a OnDocumentsChangedListener to get notified when items in document coordinator change.
Link copied to clipboard
abstract fun addOnDocumentVisibleListener(@NonNull listener: DocumentCoordinator.OnDocumentVisibleListener)
Registers a OnDocumentVisibleListener to get notified when document gets visible in the manager.
Link copied to clipboard
Returns all documents managed by this coordinator.
Link copied to clipboard
Returns currently visible document (if any).
Link copied to clipboard
Moves documents in the document list to specified position.
Link copied to clipboard
Removes all documents managed by this coordinator.
Link copied to clipboard
Removes all documents managed by this coordinator except for the currently visible one.
Link copied to clipboard
Removes the document if it's managed by this coordinator.
Link copied to clipboard
abstract fun removeOnDocumentCoordinatorEmptyListener(@NonNull listener: DocumentCoordinator.OnDocumentCoordinatorEmptyListener)
Removes a previously registered OnDocumentCoordinatorEmptyListener.
Link copied to clipboard
abstract fun removeOnDocumentsChangedListener(@NonNull listener: DocumentCoordinator.OnDocumentsChangedListener)
Removes a previously registered OnDocumentsChangedListener.
Link copied to clipboard
abstract fun removeOnDocumentVisibleListener(@NonNull listener: DocumentCoordinator.OnDocumentVisibleListener)
Removes a previously registered OnDocumentVisibleListener.
Link copied to clipboard
Replaces currently visible document with another document.
Link copied to clipboard
Changes currently visible document.