PSPDFAnnotationUpdate

Objective-C

@protocol PSPDFAnnotationUpdate <NSObject>

Swift

protocol AnnotationUpdate : NSObjectProtocol

Protcol allowing annotation updates.

  • Annotations that are being worked with.

    Declaration

    Objective-C

    @property (nonatomic, readonly) 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;