MeasurementInfo

constructor(@NonNull scale: Scale, @NonNull precision: MeasurementPrecision, @NonNull mode: MeasurementMode, value: Float, @Nullable label: String)

Creates an instance of a `MeasurementInfo` object.

Parameters

scale

: Measurement Scale.

precision

: Floating point MeasurementPrecision for this measurement.

mode

: Measurement type.

value

: Measurement value un-rounded.

label

: String represented the rounded measurement `value` and unit. Can be null if measurement annotation `Contents` (getContents) have not been set correctly.