Added in API level 37.2
Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.personalcontext.hint.UserInputText.Builder |
Builder for UserInputText.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| UserInputText |
build()Builds a new |
| UserInputText.Builder |
setFieldType(fieldType: Int)Sets the type of the input field in which the user entered the text. |
| UserInputText.Builder |
Sets the text content entered by the user. |
| UserInputText.Builder |
setUserInputTextSource(userInputTextSource: Int)Sets the source of the user input text. |
| UserInputText.Builder |
setViewNodeBoundingBox(viewNodeBoundingBox: Rect)Sets the screen relative bounding box of the input field. |
Public constructors
Public methods
build
Added in API level 37.2
fun build(): UserInputText
Builds a new UserInputText instance.
| Return | |
|---|---|
UserInputText |
This value cannot be null. |
setFieldType
Added in API level 37.2
fun setFieldType(fieldType: Int): UserInputText.Builder
Sets the type of the input field in which the user entered the text.
| Parameters | |
|---|---|
fieldType |
Int: Value is one of the following: |
| Return | |
|---|---|
UserInputText.Builder |
This value cannot be null. |
setText
Added in API level 37.2
fun setText(text: String): UserInputText.Builder
Sets the text content entered by the user.
| Parameters | |
|---|---|
text |
String: This value cannot be null. |
| Return | |
|---|---|
UserInputText.Builder |
This value cannot be null. |
setUserInputTextSource
Added in API level 37.2
fun setUserInputTextSource(userInputTextSource: Int): UserInputText.Builder
Sets the source of the user input text.
| Return | |
|---|---|
UserInputText.Builder |
This value cannot be null. |
setViewNodeBoundingBox
Added in API level 37.2
fun setViewNodeBoundingBox(viewNodeBoundingBox: Rect): UserInputText.Builder
Sets the screen relative bounding box of the input field.
| Parameters | |
|---|---|
viewNodeBoundingBox |
Rect: This value cannot be null. |
| Return | |
|---|---|
UserInputText.Builder |
This value cannot be null. |