Added in API level 33

Builder


class Builder
kotlin.Any
   ↳ android.view.inputmethod.EditorBoundsInfo.Builder

Builder for EditorBoundsInfo.

Summary

Public constructors

Public methods
EditorBoundsInfo

Returns EditorBoundsInfo using parameters in this EditorBoundsInfo.Builder.

EditorBoundsInfo.Builder

Sets the bounding box of the current editor.

EditorBoundsInfo.Builder

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.