PTBookmarkViewControllerDelegate
@protocol PTBookmarkViewControllerDelegate <NSObject>
The methods declared by the PTBookmarkViewControllerDelegate protocol allow the adopting delegate to respond to messages from
the PTBookmarkViewController class.
-
This method is called when a view cell will be displayed in the
PTBookmarkViewController.Declaration
Objective-C
- (void)bookmarkViewController: (nonnull PTBookmarkViewController *)bookmarkViewController willDisplayCell:(nonnull PTBookmarkViewCell *)cell forBookmark:(nonnull PTUserBookmark *)bookmark;Swift
optional func bookmarkViewController(_ bookmarkViewController: PTBookmarkViewController, willDisplay cell: PTBookmarkViewCell, for bookmark: PTUserBookmark)Parameters
bookmarkViewControllerThe bookmark view controller that sent the message.
cellThe view cell that will be displayed.
bookmarkThe bookmark being displayed.
-
Tells the delegate that a bookmark was added to the list.
Declaration
Objective-C
- (void)bookmarkViewController: (nonnull PTBookmarkViewController *)bookmarkViewController didAddBookmark:(nonnull PTUserBookmark *)bookmark;Swift
optional func bookmarkViewController(_ bookmarkViewController: PTBookmarkViewController, didAdd bookmark: PTUserBookmark)Parameters
bookmarkViewControllerThe
PTBookmarkViewControllerobject informing the delegate about the bookmark’s addition.bookmarkA bookmark object.
-
Tells the delegate that a bookmark was modified.
Declaration
Objective-C
- (void)bookmarkViewController: (nonnull PTBookmarkViewController *)bookmarkViewController didModifyBookmark:(nonnull PTUserBookmark *)bookmark;Swift
optional func bookmarkViewController(_ bookmarkViewController: PTBookmarkViewController, didModifyBookmark bookmark: PTUserBookmark)Parameters
bookmarkViewControllerThe
PTBookmarkViewControllerobject informing the delegate about the bookmark’s modification.bookmarkA bookmark object.
-
Tells the delegate that a bookmark was removed from the list.
Declaration
Objective-C
- (void)bookmarkViewController: (nonnull PTBookmarkViewController *)bookmarkViewController didRemoveBookmark:(nonnull PTUserBookmark *)bookmark;Swift
optional func bookmarkViewController(_ bookmarkViewController: PTBookmarkViewController, didRemove bookmark: PTUserBookmark)Parameters
bookmarkViewControllerThe
PTBookmarkViewControllerobject informing the delegate about the bookmark’s removal.bookmarkA bookmark object.
-
Tells the delegate that a bookmark in the list was selected.
Declaration
Objective-C
- (void)bookmarkViewController: (nonnull PTBookmarkViewController *)bookmarkViewController selectedBookmark:(nonnull PTUserBookmark *)bookmark;Swift
optional func bookmarkViewController(_ bookmarkViewController: PTBookmarkViewController, selectedBookmark bookmark: PTUserBookmark)Parameters
bookmarkViewControllerThe
PTBookmarkViewControllerobject informing the delegate about the bookmark’s selection.bookmarkA bookmark object.
-
Tells the delegate that the bookmark control wants to be closed.
Declaration
Objective-C
- (void)bookmarkViewControllerDidCancel: (nonnull PTBookmarkViewController *)bookmarkViewController;Swift
optional func bookmarkViewControllerDidCancel(_ bookmarkViewController: PTBookmarkViewController)
PTBookmarkViewControllerDelegate Protocol Reference