Added in API level 24

FormatWidth


class FormatWidth
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.MeasureFormat.FormatWidth>
   ↳ android.icu.text.MeasureFormat.FormatWidth

Formatting width enum.

Summary

Enum values

Brief.

Identical to NARROW except when formatMeasures is called with an hour and minute; minute and second; or hour, minute, and second Measures.

Abbreviate when possible.

Spell out everything.

Enum values

NARROW

Added in API level 24
enum val NARROW : MeasureFormat.FormatWidth

Brief. Use only a symbol for the unit when possible.

NUMERIC

Added in API level 24
enum val NUMERIC : MeasureFormat.FormatWidth

Identical to NARROW except when formatMeasures is called with an hour and minute; minute and second; or hour, minute, and second Measures. In these cases formatMeasures formats as 5:37:23 instead of 5h, 37m, 23s.

SHORT

Added in API level 24
enum val SHORT : MeasureFormat.FormatWidth

Abbreviate when possible.

WIDE

Added in API level 24
enum val WIDE : MeasureFormat.FormatWidth

Spell out everything.