Added in API level 37.2
Builder
class Builder
| kotlin.Any | |
| ↳ | 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(sourceAppActivityComponentName: ComponentName)Sets the component name of the source app activity associated with the hint. |
Public constructors
Builder
Added in API level 37.2
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 API level 37.2
fun build(): UserInputHint
| Return | |
|---|---|
UserInputHint |
the built UserInputHint. This value cannot be null. |
setSourceAppActivityComponentName
Added in API level 37.2
fun setSourceAppActivityComponentName(sourceAppActivityComponentName: ComponentName): UserInputHint.Builder
Sets the component name of the source app activity associated with the hint.
| Parameters | |
|---|---|
sourceAppActivityComponentName |
ComponentName: This value cannot be null. |
| Return | |
|---|---|
UserInputHint.Builder |
This value cannot be null. |