Added in API level 33
Builder
class Builder
| kotlin.Any | |
| ↳ | android.view.inputmethod.EditorBoundsInfo.Builder |
Builder for EditorBoundsInfo.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| EditorBoundsInfo |
build()Returns |
| EditorBoundsInfo.Builder |
setEditorBounds(bounds: RectF?)Sets the bounding box of the current editor. |
| EditorBoundsInfo.Builder |
setHandwritingBounds(bounds: RectF?)Sets the current editor's bounds with padding for handwriting. |
Public constructors
Builder
Builder()
Public methods
build
Added in API level 33
fun build(): EditorBoundsInfo
Returns EditorBoundsInfo using parameters in this EditorBoundsInfo.Builder.
| Return | |
|---|---|
EditorBoundsInfo |
This value cannot be null. |
setEditorBounds
Added in API level 33
fun setEditorBounds(bounds: RectF?): EditorBoundsInfo.Builder
Sets the bounding box of the current editor.
| Parameters | |
|---|---|
bounds |
RectF?: RectF in local coordinates. This value may be null. |
| Return | |
|---|---|
EditorBoundsInfo.Builder |
This value cannot be null. |
setHandwritingBounds
Added in API level 33
fun setHandwritingBounds(bounds: RectF?): EditorBoundsInfo.Builder
Sets the current editor's bounds with padding for handwriting.
| Parameters | |
|---|---|
bounds |
RectF?: RectF in local coordinates. This value may be null. |
| Return | |
|---|---|
EditorBoundsInfo.Builder |
This value cannot be null. |