PTAnnotationToolbarDelegate

@protocol PTAnnotationToolbarDelegate <UIToolbarDelegate>

The methods declared by the PTAnnotationToolbarDelegate protocol allow the adopting delegate to respond to messages from the PTAnnotationToolbar class.

  • Informs the delegate that the user wishes to close the annotationToolbar.

    Declaration

    Objective-C

    - (void)annotationToolbarDidCancel:
        (nonnull PTAnnotationToolbar *)annotationToolbar;

    Swift

    optional func annotationToolbarDidCancel(_ annotationToolbar: PTAnnotationToolbar)

    Parameters

    annotationToolbar

    The annotationToolbar that wishes to be closed.

  • Asks the delegate if the tool should stay in creation mode after the user has created an annotation.

    Declaration

    Objective-C

    - (BOOL)toolShouldGoBackToPan:(nonnull PTAnnotationToolbar *)annotationToolbar;

    Swift

    optional func toolShouldGoBack(toPan annotationToolbar: PTAnnotationToolbar) -> Bool

    Return Value

    if the tool should stay in creation mode.