BookmarkViewAdapter

Bookmarks adapter for the PdfOutlineView. This interface handles interaction with actual bookmark data for this view as well as events triggered on the view (for example, bookmark taps, edits, etc.).

Inheritors

Functions

Link copied to clipboard
Adds this view to bookmark change events via BookmarkListener interface.
Link copied to clipboard
abstract fun getBookmarks(): List<Bookmark>
Called to retrieve the list of bookmarks to display.
Link copied to clipboard
Called to determine bookmark add button enabled state.
Link copied to clipboard
abstract fun onBookmarkAdd()
Called when add button has been clicked in this view.
Link copied to clipboard
abstract fun onBookmarkClicked(@NonNull bookmark: Bookmark)
Called when user taps on a bookmark outside editing mode.
Link copied to clipboard
abstract fun onBookmarkNameSet(@NonNull bookmark: Bookmark, @Nullable name: String)
Called when bookmark should be renamed.
Link copied to clipboard
abstract fun onBookmarkPositionSet(@NonNull bookmark: Bookmark, position: Int)
Called when bookmark has been reordered in this view.
Link copied to clipboard
abstract fun onBookmarkRemove(@NonNull bookmark: Bookmark): Boolean
Called when user deleted the bookmark from list.
Link copied to clipboard
Removes this view from bookmark change events via BookmarkListener interface.