Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#inhmethods)

# LineBreaker.Result

*** ** * ** ***

` public static class LineBreaker.Result `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.graphics.text.LineBreaker.Result |

<br />

*** ** * ** ***

Holds the result of the `https://developer.android.com/reference/android/graphics/text/LineBreaker#computeLineBreaks(android.graphics.text.MeasuredText,%20android.graphics.text.LineBreaker.ParagraphConstraints,%20int)`.
**See also:**

- `https://developer.android.com/reference/android/graphics/text/LineBreaker#computeLineBreaks(android.graphics.text.MeasuredText,%20android.graphics.text.LineBreaker.ParagraphConstraints,%20int)`

## Summary

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#getEndLineHyphenEdit(int)(int lineIndex) ` Returns an end hyphen edit for the line. |
| ` float` | ` https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#getLineAscent(int)(int lineIndex) ` Returns font ascent of the line in pixels. |
| ` int` | ` https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#getLineBreakOffset(int)(int lineIndex) ` Returns character offset of the break for a given line. |
| ` int` | ` https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#getLineCount()() ` Returns the number of lines in the paragraph. |
| ` float` | ` https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#getLineDescent(int)(int lineIndex) ` Returns font descent of the line in pixels. |
| ` float` | ` https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#getLineWidth(int)(int lineIndex) ` Returns width of a given line in pixels. |
| ` int` | ` https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#getStartLineHyphenEdit(int)(int lineIndex) ` Returns a start hyphen edit for the line. |
| ` boolean` | ` https://developer.android.com/reference/android/graphics/text/LineBreaker.Result#hasLineTab(int)(int lineIndex) ` Returns true if the line has a TAB character. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public methods

### getEndLineHyphenEdit

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getEndLineHyphenEdit (int lineIndex)
```

Returns an end hyphen edit for the line.

<br />

| Parameters ||
|---|---|
| `lineIndex` | `int`: an index of the line. <br /> |

| Returns ||
|---|---|
| `int` | an end hyphen edit for the line. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#setEndHyphenEdit(int)`
- `https://developer.android.com/reference/android/graphics/Paint#getEndHyphenEdit()`

### getLineAscent

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getLineAscent (int lineIndex)
```

Returns font ascent of the line in pixels.   

The units of this value are pixels.

<br />

| Parameters ||
|---|---|
| `lineIndex` | `int`: an index of the line. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `float` | an entier font ascent of the line in pixels. The units of this value are pixels. <br /> |

### getLineBreakOffset

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getLineBreakOffset (int lineIndex)
```

Returns character offset of the break for a given line.

<br />

| Parameters ||
|---|---|
| `lineIndex` | `int`: an index of the line. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `int` | the break offset. Value is 0 or greater <br /> |

### getLineCount

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getLineCount ()
```

Returns the number of lines in the paragraph.

<br />

| Returns ||
|---|---|
| `int` | number of lines. Value is 0 or greater <br /> |

### getLineDescent

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getLineDescent (int lineIndex)
```

Returns font descent of the line in pixels.   

The units of this value are pixels.

<br />

| Parameters ||
|---|---|
| `lineIndex` | `int`: an index of the line. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `float` | an entier font descent of the line in pixels. The units of this value are pixels. <br /> |

### getLineWidth

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getLineWidth (int lineIndex)
```

Returns width of a given line in pixels.   

The units of this value are pixels.

<br />

| Parameters ||
|---|---|
| `lineIndex` | `int`: an index of the line. Value is 0 or greater <br /> |

| Returns ||
|---|---|
| `float` | width of the line in pixels. The units of this value are pixels. <br /> |

### getStartLineHyphenEdit

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getStartLineHyphenEdit (int lineIndex)
```

Returns a start hyphen edit for the line.

<br />

| Parameters ||
|---|---|
| `lineIndex` | `int`: an index of the line. <br /> |

| Returns ||
|---|---|
| `int` | a start hyphen edit for the line. <br /> |

**See also:**

- `https://developer.android.com/reference/android/graphics/Paint#setStartHyphenEdit(int)`
- `https://developer.android.com/reference/android/graphics/Paint#getStartHyphenEdit()`

### hasLineTab

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasLineTab (int lineIndex)
```

Returns true if the line has a TAB character.

<br />

| Parameters ||
|---|---|
| `lineIndex` | `int`: an index of the line. <br /> |

| Returns ||
|---|---|
| `boolean` | true if the line has a TAB character <br /> |