Builder


class Builder
kotlin.Any
   ↳ android.app.personalcontext.hint.UserInputText.Builder

Builder for UserInputText.

Summary

Public constructors

Public methods
UserInputText

Builds a new UserInputText instance.

UserInputText.Builder
setFieldType(fieldType: Int)

Sets the type of the input field in which the user entered the text.

UserInputText.Builder
setText(text: String)

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

Builder

Builder()

Public methods

build

fun build(): UserInputText

Builds a new UserInputText instance.

Return
UserInputText This value cannot be null.

setFieldType

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

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.

setViewNodeBoundingBox

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.