to Display String
Returns a formatted version of the enum to be used for UI selectors or other display purposes.
Return
A displayable string.
Parameters
precision
The enum
open fun toDisplayString(@NonNull precision: MeasurementPrecision, @NonNull unit: Scale.UnitTo): String
Returns a formatted version of the enum to be used for UI selectors or other display purposes, with the unit adapted based on the provided scale unit.
Return
A displayable string with the appropriate unit
Parameters
precision
The enum
unit
The measurement unit to display for fractional precisions