PSPDFBookmarkViewController
Objective-C
@interface PSPDFBookmarkViewController
: PSPDFStatefulTableViewController <
PSPDFBookmarkTableViewCellDelegate, PSPDFDocumentInfoController,
PSPDFSegmentImageProviding, PSPDFStyleable, PSPDFOverridable>
Swift
class BookmarkViewController : StatefulTableViewController, BookmarkTableViewCellDelegate, DocumentInfoController, SegmentImageProviding, Styleable, Overridable
Show list of bookmarks for the current document and allows editing/reordering of the bookmarks.
-
Whether the user can long press to copy the title. Defaults to
true
.Declaration
Objective-C
@property (nonatomic) BOOL allowCopy;
Swift
var allowCopy: Bool { get set }
-
Whether the user can edit the list. Defaults to
true
.Declaration
Objective-C
@property (nonatomic) BOOL allowEditing;
Swift
var allowEditing: Bool { get set }
-
Whether the bookmark name should automatically become editable after adding a new bookmark. Defaults to
true
.Declaration
Objective-C
@property (nonatomic) BOOL shouldStartEditingBookmarkNameWhenAdding;
Swift
var shouldStartEditingBookmarkNameWhenAdding: Bool { get set }
-
Defines whether it is possible to add multiple bookmarks on the same page. Defaults to NO.
This property will automatically be set to the value of
PSPDFConfiguration.allowMultipleBookmarksPerPage
if the bookmark controller is created and presented byPDFViewController
.Declaration
Objective-C
@property (nonatomic) BOOL allowMultipleBookmarksPerPage;
Swift
var allowMultipleBookmarksPerPage: Bool { get set }
-
Control the sort order. Reordering is only allowed for
PSPDFBookmarkManagerSortOrderCustom
.Declaration
Objective-C
@property (nonatomic) PSPDFBookmarkManagerSortOrder sortOrder;
Swift
var sortOrder: BookmarkManager.SortOrder { get set }
-
An array of custom bar button items to display on the right (or trailing) side.
Declaration
Objective-C
@property (nonatomic, copy) NSArray<UIBarButtonItem *> *_Nonnull rightActionButtonItems;
Swift
var rightActionButtonItems: [UIBarButtonItem] { get set }
-
An array of custom bar button items to display on the left (or leading) side.
Declaration
Objective-C
@property (nonatomic, copy) NSArray<UIBarButtonItem *> *_Nonnull leftActionButtonItems;
Swift
var leftActionButtonItems: [UIBarButtonItem] { get set }
-
The bookmark view controller delegate to detect when a bookmark entry is tapped.
Declaration
Objective-C
@property (nonatomic, weak) id<PSPDFBookmarkViewControllerDelegate> _Nullable delegate;
Swift
@IBOutlet weak var delegate: BookmarkViewControllerDelegate? { get set }
-
Undocumented
Declaration
Objective-C
- (void)configureCell:(PSPDFBookmarkCell *)bookmarkCell withBookmark:(PSPDFBookmark *)bookmark forRowAtIndexPath:(NSIndexPath *)indexPath inTableView:(UITableView *)tableView;
Swift
func configureCell(_ bookmarkCell: BookmarkCell, with bookmark: Bookmark, forRowAt indexPath: IndexPath, in tableView: UITableView)
-
Undocumented
Declaration
Objective-C
- (void)updateBookmarkViewAnimated:(BOOL)animated;
Swift
func updateBookmarkView(animated: Bool)
-
Undocumented
-
Undocumented
Declaration
Objective-C
- (void)addBookmarkAction:(nullable id)sender;
Swift
func addBookmarkAction(_ sender: Any?)
-
Undocumented
Declaration
Objective-C
- (void)doneAction:(nullable id)sender;
Swift
func doneAction(_ sender: Any?)