Class BookmarksViewModel
Inheritance
System.Object
BookmarksViewModel
Assembly: PDFViewCtrlTools.dll
Syntax
public class BookmarksViewModel : AndroidViewModel
Constructors
BookmarksViewModel(Application)
Declaration
public BookmarksViewModel(Application application)
Parameters
Type |
Name |
Description |
Android.App.Application |
application |
|
BookmarksViewModel(IntPtr, JniHandleOwnership)
Declaration
protected BookmarksViewModel(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type |
Name |
Description |
System.IntPtr |
javaReference |
|
Android.Runtime.JniHandleOwnership |
transfer |
|
Properties
Bookmarks
Declaration
public virtual LiveData Bookmarks { get; }
Property Value
Type |
Description |
AndroidX.Lifecycle.LiveData |
|
JniPeerMembers
Declaration
public override JniPeerMembers JniPeerMembers { get; }
Property Value
Type |
Description |
Java.Interop.JniPeerMembers |
|
ThresholdClass
Declaration
protected override IntPtr ThresholdClass { get; }
Property Value
Type |
Description |
System.IntPtr |
|
ThresholdType
Declaration
protected override Type ThresholdType { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
LoadBookmarks(PDFViewCtrl, Boolean)
Declaration
public virtual void LoadBookmarks(PDFViewCtrl pdfViewCtrl, bool isReadOnly)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.Boolean |
isReadOnly |
|
Observe(ILifecycleOwner, IObserver)
Declaration
public void Observe(ILifecycleOwner owner, IObserver observer)
Parameters
Type |
Name |
Description |
AndroidX.Lifecycle.ILifecycleOwner |
owner |
|
AndroidX.Lifecycle.IObserver |
observer |
|
SetBookmarks(IList<UserBookmarkItem>)
Declaration
public virtual void SetBookmarks(IList<UserBookmarkItem> bookmarkItems)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<UserBookmarkItem> |
bookmarkItems |
|
ToggleBookmark(Context, Boolean, PDFViewCtrl, Int32)
Declaration
public virtual void ToggleBookmark(Context context, bool isReadOnly, PDFViewCtrl pdfViewCtrl, int page)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.Boolean |
isReadOnly |
|
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.Int32 |
page |
|