Class

RemoteLineBreak

Configuration for breaking lines in Remote Compose text layout.

Source set: JvmAndAndroid
public class RemoteLineBreak internal constructor(internal val value: Int)

Configuration for breaking lines in Remote Compose text layout.

Functions

toString

Source set: JvmAndAndroid
override fun toString(): String

Members

Companion

Source set: JvmAndAndroid
public companion object

Properties

Unspecified

Source set: JvmAndAndroid
@Stable public val Unspecified: RemoteLineBreak = RemoteLineBreak(Int.MIN_VALUE)

Constant for when no line breaking strategy is specified.

Simple

Source set: JvmAndAndroid
@Stable public val Simple: RemoteLineBreak = RemoteLineBreak(CoreText.BREAK_STRATEGY_SIMPLE)

Basic, fast line breaking suitable for input fields.

Paragraph

Source set: JvmAndAndroid
public val Paragraph: RemoteLineBreak =
            RemoteLineBreak(CoreText.BREAK_STRATEGY_HIGH_QUALITY)

Slower, higher-quality line breaking suitable for body paragraphs.

Heading

Source set: JvmAndAndroid
public val Heading: RemoteLineBreak = RemoteLineBreak(CoreText.BREAK_STRATEGY_BALANCED)

Balanced line lengths suitable for short headings.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: