Added in version 37.2
UserInputHint.Builder
public
static
final
class
UserInputHint.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.personalcontext.hint.UserInputHint.Builder |
Builder used to create a UserInputHint.
Summary
Public constructors | |
|---|---|
Builder(UserInputText userInputText)
Creates an instance of |
|
Public methods | |
|---|---|
UserInputHint
|
build()
|
UserInputHint.Builder
|
setSourceAppActivityComponentName(ComponentName sourceAppActivityComponentName)
Sets the component name of the source app activity associated with the hint. |
Inherited methods | |
|---|---|
Public constructors
Builder
Added in version 37.2
public Builder (UserInputText userInputText)
Creates an instance of Builder.
| Parameters | |
|---|---|
userInputText |
UserInputText: the UserInputText containing the details of the user's
input.
This value cannot be null. |
Public methods
build
Added in version 37.2
public UserInputHint build ()
| Returns | |
|---|---|
UserInputHint |
the built UserInputHint.
This value cannot be null. |
setSourceAppActivityComponentName
Added in version 37.2
public UserInputHint.Builder setSourceAppActivityComponentName (ComponentName sourceAppActivityComponentName)
Sets the component name of the source app activity associated with the hint.
| Parameters | |
|---|---|
sourceAppActivityComponentName |
ComponentName: This value cannot be null. |
| Returns | |
|---|---|
UserInputHint.Builder |
This value cannot be null. |