Default Bookmark Adapter
Default implementation of BookmarkViewAdapter which handles bookmark behaviour for the default BookmarkListView.
Note: This adapter is bound to a single PdfFragment instance. If you are using this manually in your custom activity, replace the fragment (for example when reloading documents), create and set a new adapter for the new fragment.
Functions
Adds this view to bookmark change events via BookmarkListener interface. Should be passed through to a BookmarkProvider. Passing null is not allowed, and will result in an exception.
Called to retrieve the list of bookmarks to display.
Called to determine bookmark add button enabled state.
Called when add button has been clicked in this view.
Called when a new bookmark was added. Called on the UI thread.
Called when user taps on a bookmark outside editing mode.
Called when bookmark should be renamed.
Called when bookmark has been reordered in this view.
Called when user deleted the bookmark from list.
Called when bookmark list has been changed in some way. Called on the UI thread. It is also called if any property of any bookmark in the list changes.
Called when the fragment is destroyed. Removes this adapter as a lifecycle observer.
Called when document is successfully loaded and the document view has been laid out. This has to be called on the main thread.
Called when the fragment moves to the started state. Adds document and bookmark listeners.
Called when the fragment moves to the stopped state. Removes document and bookmark listeners.
Removes this view from bookmark change events via BookmarkListener interface. Should be passed through to a BookmarkProvider. Upon calling this method the
listener will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Adding null is not allowed,and will result in an exception.