PTSelectionRectViewDelegate

@protocol PTSelectionRectViewDelegate <NSObject>

The interface for the delegate of a PTSelectionRectView.

  • Asks the delegate whether the appearance of the specified annotation should be displayed.

    Note

    The default behavior if this method is not implemented is to display all annotation appearances.

    Declaration

    Objective-C

    - (BOOL)selectionRectView:(nonnull PTSelectionRectView *)selectionRectView
        shouldDisplayAppearanceForAnnotation:(nonnull PTAnnot *)annotation
                                onPageNumber:(int)pageNumber;

    Swift

    optional func selectionRectView(_ selectionRectView: PTSelectionRectView, shouldDisplayAppearanceForAnnotation annotation: PTAnnot, onPageNumber pageNumber: Int32) -> Bool

    Parameters

    selectionRectView

    The sender of this message.

    annotation

    The annotation to be displayed.

    pageNumber

    The PDF page number of the annotation.

    Return Value

    YES if the annotation’s appearance should be displayed, NO otherwise.

  • Tells the delegate that the specified appearance view will be displayed.

    Declaration

    Objective-C

    - (void)selectionRectView:(nonnull PTSelectionRectView *)selectionRectView
        willDisplayAppearanceView:(nonnull UIView *)appearanceView;

    Swift

    optional func selectionRectView(_ selectionRectView: PTSelectionRectView, willDisplayAppearanceView appearanceView: UIView)

    Parameters

    selectionRectView

    The sender of this message.

    appearanceView

    The appearance view that will be displayed.

  • Tells the delegate that the specified appearance view will no longer be displayed.

    Declaration

    Objective-C

    - (void)selectionRectView:(nonnull PTSelectionRectView *)selectionRectView
        didEndDisplayingAppearanceView:(nonnull UIView *)appearanceView;

    Swift

    optional func selectionRectView(_ selectionRectView: PTSelectionRectView, didEndDisplayingAppearanceView appearanceView: UIView)

    Parameters

    selectionRectView

    The sender of this message.

    appearanceView

    The appearance view that will no longer be displayed.