# LineBreak.Strategy

Artifact: [androidx.compose.ui:ui-text](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/text/style/LineBreak.android.kt+class:androidx.compose.ui.text.style.LineBreak.Strategy) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0) Common/AllAndroid/JVM
- android

  ```
  value class LineBreak.Strategy
  ```

*** ** * ** ***

The strategy used for line breaking.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy#Balanced()` Attempts to balance the line lengths of the text, also applying automatic hyphenation if enabled. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy#HighQuality()` Does whole paragraph optimization for more readable text, including hyphenation if enabled. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy#Simple()` Basic, fast break strategy. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy#Unspecified()` This represents an unset value, a usual replacement for "null" when a primitive value is desired. | android |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strategy#toString()()` | android |

## Public companion properties

### Balanced

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val Balanced: LineBreak.Strategy
```

Attempts to balance the line lengths of the text, also applying automatic hyphenation if enabled. Suitable for small screens.

```
+---+
| This is an            |
| example text.         |
+---+
```

### HighQuality

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val HighQuality: LineBreak.Strategy
```

Does whole paragraph optimization for more readable text, including hyphenation if enabled.

```
+---+
| This    |
| is an   |
| example |
| text.   |
+---+
```

### Simple

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0)

```
val Simple: LineBreak.Strategy
```

Basic, fast break strategy. Hyphenation, if enabled, is done only for words that don't fit on an entire line by themselves.

```
+---+
| This is |
| an      |
| example |
| text.   |
+---+
```

### Unspecified

android Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0)

```
val Unspecified: LineBreak.Strategy
```

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

## Public functions

### toString

android

```
open fun toString(): String
```