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
bookmarkViewController
The bookmark view controller that sent the message.
cell
The view cell that will be displayed.
bookmark
The 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
bookmarkViewController
The
PTBookmarkViewController
object informing the delegate about the bookmark’s addition.bookmark
A 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
bookmarkViewController
The
PTBookmarkViewController
object informing the delegate about the bookmark’s modification.bookmark
A 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
bookmarkViewController
The
PTBookmarkViewController
object informing the delegate about the bookmark’s removal.bookmark
A 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
bookmarkViewController
The
PTBookmarkViewController
object informing the delegate about the bookmark’s selection.bookmark
A 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)