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

# Builder

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/view/inputmethod/EditorBoundsInfo.Builder "View this page in Java")

```
class Builder
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.view.inputmethod.EditorBoundsInfo.Builder](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#) |

Builder for `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo`.

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#Builder()()` <br /> |

| Public methods ||
|---|---|
| [EditorBoundsInfo](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo) | `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#build()()` Returns `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo` using parameters in this `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#`. |
| [EditorBoundsInfo.Builder](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#) | `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#setEditorBounds(android.graphics.RectF)(bounds: https://developer.android.com/reference/kotlin/android/graphics/RectF.html#?)` Sets the bounding box of the current editor. |
| [EditorBoundsInfo.Builder](https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#) | `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#setHandwritingBounds(android.graphics.RectF)(bounds: https://developer.android.com/reference/kotlin/android/graphics/RectF.html#?)` Sets the current editor's bounds with padding for handwriting. |

## Public constructors

### Builder

```
Builder()
```

## Public methods

### build

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

```
fun build(): EditorBoundsInfo
```

Returns `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo` using parameters in this `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#`.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo` | This value cannot be `null`. |

### setEditorBounds

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

```
fun setEditorBounds(bounds: RectF?): EditorBoundsInfo.Builder
```

Sets the bounding box of the current editor.

| Parameters ||
|---|---|
| `bounds` | [RectF](https://developer.android.com/reference/kotlin/android/graphics/RectF.html#)?: `https://developer.android.com/reference/kotlin/android/graphics/RectF.html#` in local coordinates. This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#` | This value cannot be `null`. |

### setHandwritingBounds

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

```
fun setHandwritingBounds(bounds: RectF?): EditorBoundsInfo.Builder
```

Sets the current editor's bounds with padding for handwriting.

| Parameters ||
|---|---|
| `bounds` | [RectF](https://developer.android.com/reference/kotlin/android/graphics/RectF.html#)?: `https://developer.android.com/reference/kotlin/android/graphics/RectF.html#` in local coordinates. This value may be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/view/inputmethod/EditorBoundsInfo.Builder#` | This value cannot be `null`. |