# LineBreak.Strictness

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.Strictness) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.3.0) Common/AllAndroid/JVM
- android

  ```
  value class LineBreak.Strictness
  ```

*** ** * ** ***

Describes the strictness of line breaking, determining before which characters line breaks can be inserted. It is useful when working with CJK scripts.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#Default()` Default breaking rules for the locale, which may correspond to `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#Normal()` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#Strict()`. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#Loose()` The least restrictive rules, suitable for short lines. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#Normal()` The most common rules for line breaking. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#Strict()` The most stringent rules for line breaking. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#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.Strictness#toString()()` | android |

## Public companion properties

### Default

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

```
val Default: LineBreak.Strictness
```

Default breaking rules for the locale, which may correspond to `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#Normal()` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/LineBreak.Strictness#Strict()`.

### Loose

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

```
val Loose: LineBreak.Strictness
```

The least restrictive rules, suitable for short lines.

For example, in Japanese it allows breaking before iteration marks, such as 々, 〻.

### Normal

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

```
val Normal: LineBreak.Strictness
```

The most common rules for line breaking.

For example, in Japanese it allows breaking before characters like small hiragana (ぁ), small katakana (ァ), halfwidth variants (ｧ).

### Strict

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

```
val Strict: LineBreak.Strictness
```

The most stringent rules for line breaking.

For example, in Japanese it does not allow breaking before characters like small hiragana (ぁ), small katakana (ァ), halfwidth variants (ｧ).

### Unspecified

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

```
val Unspecified: LineBreak.Strictness
```

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

## Public functions

### toString

android

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