ArgType

class ArgType
kotlin.Any
   ↳ kotlin.Enum<android.icu.text.MessagePattern.ArgType>
   ↳ android.icu.text.MessagePattern.ArgType

Argument type constants. Returned by Part.getArgType() for ARG_START and ARG_LIMIT parts. Messages nested inside an argument are each delimited by MSG_START and MSG_LIMIT, with a nesting level one greater than the surrounding message.
Requires API level 24 (Android 7.0, Nougat)

Summary

Public methods
Boolean


Requires API level 24 (Android 7.0, Nougat)

Enum values

NONE

NONE

SIMPLE

SIMPLE

CHOICE

CHOICE

PLURAL

PLURAL

SELECT

SELECT

SELECTORDINAL

SELECTORDINAL

Public methods

hasPluralStyle

added in API level 24
fun hasPluralStyle(): Boolean


Requires API level 24 (Android 7.0, Nougat)

Return
Boolean: true if the argument type has a plural style part sequence and semantics, for example ArgType#PLURAL and ArgType#SELECTORDINAL.