Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for EditorBoundsInfo
.
Summary
Public constructors
Public methods
setEditorBounds
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 . |
setHandwritingBounds
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 . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# EditorBoundsInfo.Builder\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/inputmethod/EditorBoundsInfo.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|--------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.view.inputmethod.EditorBoundsInfo.Builder](#) |\n\nBuilder for [EditorBoundsInfo](/reference/kotlin/android/view/inputmethod/EditorBoundsInfo).\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|---------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [EditorBoundsInfo](/reference/kotlin/android/view/inputmethod/EditorBoundsInfo) | [build](#build())`()` Returns [EditorBoundsInfo](/reference/kotlin/android/view/inputmethod/EditorBoundsInfo) using parameters in this [EditorBoundsInfo.Builder](#). |\n| [EditorBoundsInfo.Builder](#) | [setEditorBounds](#setEditorBounds(android.graphics.RectF))`(`bounds:` `[RectF](../../graphics/RectF.html#)?`)` Sets the bounding box of the current editor. |\n| [EditorBoundsInfo.Builder](#) | [setHandwritingBounds](#setHandwritingBounds(android.graphics.RectF))`(`bounds:` `[RectF](../../graphics/RectF.html#)?`)` Sets the current editor's bounds with padding for handwriting. |\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): EditorBoundsInfo\n```\n\nReturns [EditorBoundsInfo](/reference/kotlin/android/view/inputmethod/EditorBoundsInfo) using parameters in this [EditorBoundsInfo.Builder](#).\n\n| Return ||\n|---------------------------------------------------------------------------------|------------------------------|\n| [EditorBoundsInfo](/reference/kotlin/android/view/inputmethod/EditorBoundsInfo) | This value cannot be `null`. |\n\n### setEditorBounds\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setEditorBounds(bounds: RectF?): EditorBoundsInfo.Builder\n```\n\nSets the bounding box of the current editor.\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------|\n| `bounds` | [RectF](../../graphics/RectF.html#)?: [RectF](../../graphics/RectF.html#) in local coordinates. This value may be `null`. |\n\n| Return ||\n|-------------------------------|------------------------------|\n| [EditorBoundsInfo.Builder](#) | This value cannot be `null`. |\n\n### setHandwritingBounds\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setHandwritingBounds(bounds: RectF?): EditorBoundsInfo.Builder\n```\n\nSets the current editor's bounds with padding for handwriting.\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------|\n| `bounds` | [RectF](../../graphics/RectF.html#)?: [RectF](../../graphics/RectF.html#) in local coordinates. This value may be `null`. |\n\n| Return ||\n|-------------------------------|------------------------------|\n| [EditorBoundsInfo.Builder](#) | This value cannot be `null`. |"]]