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 Builder.

Public methods
UserInputHint

UserInputHint.Builder
setSourceAppActivityComponentName(sourceAppActivityComponentName: ComponentName)

Sets the component name of the source app activity associated with the hint.

Public constructors

Builder

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

fun build(): UserInputHint
Return
UserInputHint the built UserInputHint.
This value cannot be null.

setSourceAppActivityComponentName

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.