PSPDFMeasurementValueConfiguration

Objective-C


@interface PSPDFMeasurementValueConfiguration : NSObject

Swift

class MeasurementValueConfiguration : NSObject

Measurement value configurations define how measurements are displayed and interpreted. Use MeasurementValueConfiguration to set a value configuration on a document level. Check MeasurementInfo if you want to set measurement settings on an annotation level.

  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Names are displayed in user interface and serve to help distinguish different scales.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *name;

    Swift

    var name: String? { get }
  • A ratio of a distance on a document page to a corresponding real world distance.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFMeasurementScale *_Nonnull scale;

    Swift

    var scale: MeasurementScale { get }
  • The smallest value to which measurements will be rounded.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFMeasurementPrecision precision;

    Swift

    var precision: MeasurementPrecision { get }
  • Creates a MeasurementValueConfiguration object.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nullable NSString *)name
                                   scale:(nonnull PSPDFMeasurementScale *)scale
                               precision:(PSPDFMeasurementPrecision)precision;

    Swift

    init(name: String?, scale: MeasurementScale, precision: MeasurementPrecision)

    Parameters

    name

    The name of the measurement value configuration, or nil if no name is specified.

    scale

    The measurement scale for the configuration.

    precision

    The measurement precision for the configuration.