setScale

open fun setScale(@NonNull scale: Scale, notifyListeners: Boolean, updateCalibration: Boolean)

Sets value to the scale picker.

Parameters

scale

The Scale to be set.

notifyListeners

If scale has changed, this sets whether or not to notify the external ScalePickerListener about the change.

updateCalibration

Whether or not to update the calibration on scale change. This should be set to false when the scale is being set by calibration, true in all other circumstances. Calibration is only relevant for distance (line) measurements.