User bookmarks list

In this document
chevron_rightIn Xamarin.Android
chevron_rightIn Xamarin.iOS

In Xamarin.Android

Using user bookmarks list in Xamarin.Android is identical to using UserBookmarkDialogFragment in Android. See tutorial here.

For example, the equivalent of the example provided in the Android guide will be:

var bookmarkDialog = UserBookmarkDialogFragment.NewInstance().SetPdfViewCtrl(mPdfViewCtrl);
bookmarkDialog.UserBookmarkClicked += (sender, e) =>
    Console.WriteLine("UserBookmarkClicked on page: " + e.PageNum);
bookmarkDialog.SetStyle((int)DialogFragmentStyle.NoTitle, Resource.Style.CustomAppTheme);
bookmarkDialog.Show(this.SupportFragmentManager, "bookmark_list_dialog");

In Xamarin.iOS

Using user bookmarks list in Xamarin.iOS is identical to using BookmarkViewController in iOS. See tutorial here.

For example, the equivalent of the example provided in the iOS guide will be:

BookmarkViewController bookmarkViewController = new pdftron.PDF.Controls.BookmarkViewController (mPdfViewCtrl);
bookmarkViewController.BookmarkViewControllerBookmarkSelected += (sender, e) => {
    // perform custom action
    this.DismissViewController (true, null);
bookmarkViewController.BookmarkViewControllerSwitchToAnnotations += (object sender, EventArgs e) => {
    // switching to annotations list
bookmarkViewController.BookmarkViewControllerSwitchToOutline += (object sender, EventArgs e) => {
    // switching to outline list
bookmarkViewController.BookmarkViewControllerDidCancel += (object sender, EventArgs e) => {
    this.DismissViewController (true, null);
bookmarkViewController.AlsoAnnotations = true;
bookmarkViewController.AlsoOutline = true;

navBrowseBookmarks = new UINavigationController (bookmarkViewController);

if (holderViewController == null) {
    holderViewController = new UIViewController ();
holderViewController.View.AddSubview (navBrowseBookmarks.View);
if (this.PresentedViewController == null) {
    this.PresentViewController (holderViewController, true, null);