Added in API level 35

Builder


class Builder
kotlin.Any
   ↳ android.icu.text.DisplayOptions.Builder

Responsible for building DisplayOptions.

Summary

Public methods
open DisplayOptions!

Builds the display options.

open DisplayOptions.Builder!

Sets the capitalization.

open DisplayOptions.Builder!

Sets the display length.

open DisplayOptions.Builder!

Sets the grammatical case.

open DisplayOptions.Builder!

Sets the name style.

open DisplayOptions.Builder!

Sets the noun class.

open DisplayOptions.Builder!

Sets the plural category.

open DisplayOptions.Builder!

Sets the substitute handling.

Public methods

build

Added in API level 35
open fun build(): DisplayOptions!

Builds the display options.

Return
DisplayOptions! DisplayOptions

setCapitalization

Added in API level 35
open fun setCapitalization(capitalization: DisplayOptions.Capitalization!): DisplayOptions.Builder!

Sets the capitalization.

Parameters
capitalization DisplayOptions.Capitalization!: The capitalization.
Return
DisplayOptions.Builder! Builder

setDisplayLength

Added in API level 35
open fun setDisplayLength(displayLength: DisplayOptions.DisplayLength!): DisplayOptions.Builder!

Sets the display length.

Parameters
displayLength DisplayOptions.DisplayLength!: The display length.
Return
DisplayOptions.Builder! Builder

setGrammaticalCase

Added in API level 35
open fun setGrammaticalCase(grammaticalCase: DisplayOptions.GrammaticalCase!): DisplayOptions.Builder!

Sets the grammatical case.

Parameters
grammaticalCase DisplayOptions.GrammaticalCase!: The grammatical case.
Return
DisplayOptions.Builder! Builder

setNameStyle

Added in API level 35
open fun setNameStyle(nameStyle: DisplayOptions.NameStyle!): DisplayOptions.Builder!

Sets the name style.

Parameters
nameStyle DisplayOptions.NameStyle!: The name style.
Return
DisplayOptions.Builder! Builder

setNounClass

Added in API level 35
open fun setNounClass(nounClass: DisplayOptions.NounClass!): DisplayOptions.Builder!

Sets the noun class.

Parameters
nounClass DisplayOptions.NounClass!: The noun class.
Return
DisplayOptions.Builder! Builder

setPluralCategory

Added in API level 35
open fun setPluralCategory(pluralCategory: DisplayOptions.PluralCategory!): DisplayOptions.Builder!

Sets the plural category.

Parameters
pluralCategory DisplayOptions.PluralCategory!: The plural category.
Return
DisplayOptions.Builder! Builder

setSubstituteHandling

Added in API level 35
open fun setSubstituteHandling(substituteHandling: DisplayOptions.SubstituteHandling!): DisplayOptions.Builder!

Sets the substitute handling.

Parameters
substituteHandling DisplayOptions.SubstituteHandling!: The substitute handling.
Return
DisplayOptions.Builder! Builder