PSPDFMeasurementAnnotation

Objective-C

@protocol PSPDFMeasurementAnnotation

Swift

protocol MeasurementAnnotation

Annotations that have a measurement variant (ex. LineAnnotation) implement this protocol. Use isMeasurement to determine if the annotation really is a measurement.

  • Returns true if the annotation is a measurement annotation.

    Use of isMeasurement requires Features.measurementTools. If your license key does not include this feature, reading isMeasurement always returns false.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isMeasurement;

    Swift

    var isMeasurement: Bool { get }
  • Returns the measurement info object containing the measurement scale and measurement precision if the annotation is a measurement annotation.

    Use of measurementInfo requires Features.measurementTools. If your license key does not include this feature, reading measurementInfo always returns nil.

    Attempting to set a new value will do nothing except logging a warning.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) PSPDFMeasurementInfo *measurementInfo;

    Swift

    var measurementInfo: MeasurementInfo? { get }