Class

LineBreak.WordBreak

Describes how line breaks should be inserted within words.

Android
value class WordBreak internal constructor(internal val value: Int)

Describes how line breaks should be inserted within words.

Companion Object

Properties

Android
val Default: WordBreak

Default word breaking rules for the locale. In latin scripts this means inserting line breaks between words, while in languages that don't use whitespace (e.g. Japanese) the line can break between characters.

+---------+ | This is | | an | | example | | text. | | 今日は自 | | 由が丘で | | 焼き鳥を | | 食べま | | す。 | +---------+

Android
val Phrase: WordBreak

Line breaking is based on phrases. In languages that don't use whitespace (e.g. Japanese), line breaks are not inserted between characters that are part of the same phrase unit. This is ideal for short text such as titles and UI labels.

+---------+ | This | | is an | | example | | text. | | 今日は | | 自由が丘 | | で焼き鳥 | | を食べ | | ます。 | +---------+

Android
val Unspecified: WordBreak

This represents an unset value, a usual replacement for "null" when a primitive value is desired.