public class

BookmarksViewModel

extends AndroidViewModel
java.lang.Object
   ↳ AndroidViewModel
     ↳ com.pdftron.pdf.viewmodel.BookmarksViewModel

Class Overview

View model containing up-to-date bookmark information in the document.

Summary

Public Constructors
BookmarksViewModel(Application application)
Public Methods
getBookmarks()
void loadBookmarks(PDFViewCtrl pdfViewCtrl, boolean isReadOnly)
final void observe(LifecycleOwner owner, observer)
void setBookmarks(List<UserBookmarkItem> bookmarkItems)
void toggleBookmark(Context context, boolean isReadOnly, PDFViewCtrl pdfViewCtrl, int page)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BookmarksViewModel (Application application)

Public Methods

public getBookmarks ()

public void loadBookmarks (PDFViewCtrl pdfViewCtrl, boolean isReadOnly)

public final void observe (LifecycleOwner owner, observer)

public void setBookmarks (List<UserBookmarkItem> bookmarkItems)

public void toggleBookmark (Context context, boolean isReadOnly, PDFViewCtrl pdfViewCtrl, int page)