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
requiresFeatures.measurementTools
. If your license key does not include this feature, readingisMeasurement
always returnsfalse
.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
requiresFeatures.measurementTools
. If your license key does not include this feature, readingmeasurementInfo
always returnsnil
.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 }