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
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).
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().