Added in API level 24

Field


open class Field : Format.Field
kotlin.Any
   ↳ java.text.AttributedCharacterIterator.Attribute
   ↳ java.text.Format.Field
   ↳ android.icu.text.MessageFormat.Field

Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from MessageFormat.formatToCharacterIterator.

Summary

Protected constructors
Field(name: String!)

Create a Field with the specified name.

Protected methods
open Any!

Resolves instances being deserialized to the predefined constants.

Properties
static MessageFormat.Field!

Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator.

Protected constructors

Field

Added in API level 24
protected Field(name: String!)

Create a Field with the specified name.

Parameters
name String!: The name of the attribute

Protected methods

readResolve

Added in API level 24
protected open fun readResolve(): Any!

Resolves instances being deserialized to the predefined constants.

Return
Any! resolved MessageFormat.Field constant
Exceptions
java.io.InvalidObjectException if the constant could not be resolved.

Properties

ARGUMENT

Added in API level 24
static val ARGUMENT: MessageFormat.Field!

Constant identifying a portion of a message that was generated from an argument passed into formatToCharacterIterator. The value associated with the key will be an Integer indicating the index in the arguments array of the argument from which the text was generated.