setUnit

open fun setUnit(@NonNull unit: Scale.UnitTo, notifyListeners: Boolean)

Sets value to the unit picker.

Parameters

unit

The unit to be set.

notifyListeners

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