SecondaryMeasurementUnit

This class holds the units to be used for the secondary unit(if enabled by the user) and just contains the MeasurementPrecision and the com.pspdfkit.annotations.measurements.Scale.UnitTo. With these two values, we use the com.pspdfkit.internal.utilities.measurements.Converters class to convert between the different units

Constructors

Link copied to clipboard
constructor(@NonNull precision: MeasurementPrecision, @NonNull unit: Scale.UnitTo)

Properties

Link copied to clipboard
The precision used for formatting measurement values in the secondary unit.
Link copied to clipboard
The target unit for secondary measurement display.

Functions

Link copied to clipboard
open fun equals(@Nullable other: Any): Boolean
Compares this secondary measurement unit with another object for equality.
Link copied to clipboard
Returns the default secondary measurement unit configuration.
Link copied to clipboard
open fun hashCode(): Int
Returns a hash code value for this secondary measurement unit based on its precision and unit.
Link copied to clipboard
open fun toString(): String
Returns a string representation of this secondary measurement unit including its precision and unit.