PSPDFNoteAnnotationViewControllerDelegate
Objective-C
@protocol PSPDFNoteAnnotationViewControllerDelegate<NSObject>
@optional
/// Called when the `noteController` has deleted the parent annotation.
/// Not called when any of the comments has been deleted.
- (void)noteAnnotationController:(PSPDFNoteAnnotationViewController *)noteController didDeleteAnnotation:(PSPDFAnnotation *)annotation;
/// Called when the `noteController` has cleared the contents of the annotation.
- (void)noteAnnotationController:(PSPDFNoteAnnotationViewController *)noteController didClearContentsForAnnotation:(PSPDFAnnotation *)annotation;
/// Called when the `noteController` changes the annotation’s contents, color, or iconName.
- (void)noteAnnotationController:(PSPDFNoteAnnotationViewController *)noteController didChangeAnnotation:(PSPDFAnnotation *)annotation;
/// Called before the `noteController` is closed.
- (void)noteAnnotationController:(PSPDFNoteAnnotationViewController *)noteController willDismissWithAnnotation:(nullable PSPDFAnnotation *)annotation;
@end
Swift
protocol NoteAnnotationViewControllerDelegate : NSObjectProtocol
Undocumented
-
Called when the
noteController
has deleted the parent annotation. Not called when any of the comments has been deleted.Declaration
Objective-C
- (void)noteAnnotationController: (nonnull PSPDFNoteAnnotationViewController *)noteController didDeleteAnnotation:(nonnull PSPDFAnnotation *)annotation;
Swift
optional func noteAnnotationController(_ noteController: NoteAnnotationViewController, didDelete annotation: PSPDFAnnotation)
-
Called when the
noteController
has cleared the contents of the annotation.Declaration
Objective-C
- (void)noteAnnotationController: (nonnull PSPDFNoteAnnotationViewController *)noteController didClearContentsForAnnotation:(nonnull PSPDFAnnotation *)annotation;
Swift
optional func noteAnnotationController(_ noteController: NoteAnnotationViewController, didClearContentsFor annotation: PSPDFAnnotation)
-
Called when the
noteController
changes the annotation’s contents, color, or iconName.Declaration
Objective-C
- (void)noteAnnotationController: (nonnull PSPDFNoteAnnotationViewController *)noteController didChangeAnnotation:(nonnull PSPDFAnnotation *)annotation;
Swift
optional func noteAnnotationController(_ noteController: NoteAnnotationViewController, didChange annotation: PSPDFAnnotation)
-
Called before the
noteController
is closed.Declaration
Objective-C
- (void)noteAnnotationController: (nonnull PSPDFNoteAnnotationViewController *)noteController willDismissWithAnnotation:(nullable PSPDFAnnotation *)annotation;
Swift
optional func noteAnnotationController(_ noteController: NoteAnnotationViewController, willDismissWith annotation: PSPDFAnnotation?)