PTNoteEditControllerDelegate
@protocol PTNoteEditControllerDelegate <NSObject>
Describes the methods that are called when the user wishes to save or cancel their changes to the annotation’s note.
-
Called when the user cancels any changes to the annotation’s note.
Declaration
Objective-C
- (void)noteEditController:(nonnull PTNoteEditController *)noteEditController cancelButtonPressed:(BOOL)showSelectionMenu;
Swift
optional func noteEditController(_ noteEditController: PTNoteEditController, cancelButtonPressed showSelectionMenu: Bool)
-
Called when the user wishes to delete the annotation.
Declaration
Objective-C
- (void)noteEditControllerDeleteSelectedAnnotation: (nonnull PTNoteEditController *)noteEditController;
Swift
optional func noteEditControllerDeleteSelectedAnnotation(_ noteEditController: PTNoteEditController)
-
Called when the user wishes to save the changes to the annotation’s note.
Declaration
Objective-C
- (void)noteEditController:(nonnull PTNoteEditController *)noteEditController saveNewNoteForMovingAnnotationWithString:(nonnull NSString *)string;
Swift
optional func noteEditController(_ noteEditController: PTNoteEditController, saveNewNoteForMovingAnnotationWith string: String)
-
Called when the user wishes to open the style picker.
Declaration
Objective-C
- (void)noteEditControllerStyleButtonPressed: (nonnull PTNoteEditController *)noteEditController;
Swift
optional func noteEditControllerStyleButtonPressed(_ noteEditController: PTNoteEditController)