Added in API level 35

PluralCategory


class PluralCategory
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.DisplayOptions.PluralCategory>
   ↳ android.icu.text.DisplayOptions.PluralCategory

Standard CLDR plural category constants. See http://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules

Summary

Enum values

A possible setting for PluralCategory.

Public methods
static DisplayOptions.PluralCategory!
fromIdentifier(identifier: String!)

String!

Properties
static MutableList<DisplayOptions.PluralCategory!>!

Unmodifiable List of all plural categories constants.

Enum values

FEW

Added in API level 35
enum val FEW : DisplayOptions.PluralCategory

MANY

Added in API level 35
enum val MANY : DisplayOptions.PluralCategory

ONE

Added in API level 35
enum val ONE : DisplayOptions.PluralCategory

OTHER

Added in API level 35
enum val OTHER : DisplayOptions.PluralCategory

TWO

Added in API level 35
enum val TWO : DisplayOptions.PluralCategory

UNDEFINED

Added in API level 35
enum val UNDEFINED : DisplayOptions.PluralCategory

A possible setting for PluralCategory. The plural category context to be used is unknown (this is the default value).

ZERO

Added in API level 35
enum val ZERO : DisplayOptions.PluralCategory

Public methods

fromIdentifier

Added in API level 35
static fun fromIdentifier(identifier: String!): DisplayOptions.PluralCategory!
Parameters
identifier String!: in lower case such as "few" or "other"
Return
DisplayOptions.PluralCategory! the plural category corresponding to the identifier, or UNDEFINED

getIdentifier

Added in API level 35
fun getIdentifier(): String!
Return
String! the lowercase CLDR keyword string for the plural category

Properties

VALUES

Added in API level 35
static val VALUES: MutableList<DisplayOptions.PluralCategory!>!

Unmodifiable List of all plural categories constants. List version of values().