PSPDFAnnotationUpdate

@protocol PSPDFAnnotationUpdate <NSObject>

Protcol allowing annotation updates.

  • Annotations that are being worked with.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSArray<PSPDFAnnotation *> *_Nonnull annotations;

    Swift

    var annotations: [PSPDFAnnotation] { get }
  • Moves an annotation from its current z-index to a new z-index. A z-index of 0 means that the annotation is located at the bottom of the stack. The higher the z-index, the higher up to the top the annotation will be on the stack.

    Declaration

    Objective-C

    - (BOOL)moveAnnotationAtZIndex:(NSUInteger)sourceIndex
                          toZIndex:(NSUInteger)destinationIndex
                             error:(NSError *_Nullable *_Nullable)error;

    Swift

    func moveAnnotation(atZIndex sourceIndex: UInt, toZIndex destinationIndex: UInt) throws

    Parameters

    sourceIndex

    The index of the PSPDFAnnotation object to be moved.

    destinationIndex

    z-index the annotation should be moved to.

  • Move the annotation by a specified z-index move.

    Declaration

    Objective-C

    - (BOOL)executeZIndexMove:(PSPDFAnnotationZIndexMove)zIndexMove
        forAnnotationAtZIndex:(NSUInteger)soureIndex
                        error:(NSError *_Nullable *_Nullable)error;

    Swift

    func execute(_ zIndexMove: PSPDFAnnotationZIndexMove, forAnnotationAtZIndex soureIndex: UInt) throws