UserInputText.Builder


public static final class UserInputText.Builder
extends Object

java.lang.Object
   ↳ android.app.personalcontext.hint.UserInputText.Builder


Builder for UserInputText.

Summary

Public constructors

Builder()

Public methods

UserInputText build()

Builds a new UserInputText instance.

UserInputText.Builder setFieldType(int fieldType)

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

UserInputText.Builder setText(String text)

Sets the text content entered by the user.

UserInputText.Builder setUserInputTextSource(int userInputTextSource)

Sets the source of the user input text.

UserInputText.Builder setViewNodeBoundingBox(Rect viewNodeBoundingBox)

Sets the screen relative bounding box of the input field.

Inherited methods

Public constructors

Builder

Added in version 37.2
public Builder ()

Public methods

build

Added in version 37.2
public UserInputText build ()

Builds a new UserInputText instance.

Returns
UserInputText This value cannot be null.

setFieldType

Added in version 37.2
public UserInputText.Builder setFieldType (int fieldType)

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

Parameters
fieldType int: Value is one of the following:
Returns
UserInputText.Builder This value cannot be null.

setText

Added in version 37.2
public UserInputText.Builder setText (String text)

Sets the text content entered by the user.

Parameters
text String: This value cannot be null.

Returns
UserInputText.Builder This value cannot be null.

setUserInputTextSource

Added in version 37.2
public UserInputText.Builder setUserInputTextSource (int userInputTextSource)

Sets the source of the user input text.

Parameters
userInputTextSource int: Value is one of the following:
Returns
UserInputText.Builder This value cannot be null.

setViewNodeBoundingBox

Added in version 37.2
public UserInputText.Builder setViewNodeBoundingBox (Rect viewNodeBoundingBox)

Sets the screen relative bounding box of the input field.

Parameters
viewNodeBoundingBox Rect: This value cannot be null.

Returns
UserInputText.Builder This value cannot be null.