Builder
class Builder
kotlin.Any | |
↳ | android.view.textclassifier.ConversationAction.Builder |
Builder class to construct ConversationAction
.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
ConversationAction |
build() Builds the |
ConversationAction.Builder |
setAction(action: RemoteAction?) Sets an action that may be performed on the given conversation. |
ConversationAction.Builder |
setConfidenceScore(score: Float) Sets the confident score. |
ConversationAction.Builder |
Sets the extended data for the conversation action object. |
ConversationAction.Builder |
setTextReply(textReply: CharSequence?) Sets a text reply that may be performed on the given conversation. |
Public constructors
Builder
Builder(actionType: String)
Public methods
build
fun build(): ConversationAction
Builds the ConversationAction
object.
Return | |
---|---|
ConversationAction |
This value cannot be null . |
setAction
fun setAction(action: RemoteAction?): ConversationAction.Builder
Sets an action that may be performed on the given conversation.
Parameters | |
---|---|
action |
RemoteAction?: This value may be null . |
Return | |
---|---|
ConversationAction.Builder |
This value cannot be null . |
setConfidenceScore
fun setConfidenceScore(score: Float): ConversationAction.Builder
Sets the confident score.
Parameters | |
---|---|
score |
Float: Value is between 0 and 1 inclusive |
Return | |
---|---|
ConversationAction.Builder |
This value cannot be null . |
setExtras
fun setExtras(extras: Bundle?): ConversationAction.Builder
Sets the extended data for the conversation action object.
Parameters | |
---|---|
extras |
Bundle?: This value may be null . |
Return | |
---|---|
ConversationAction.Builder |
This value cannot be null . |
setTextReply
fun setTextReply(textReply: CharSequence?): ConversationAction.Builder
Sets a text reply that may be performed on the given conversation.
Parameters | |
---|---|
textReply |
CharSequence?: This value may be null . |
Return | |
---|---|
ConversationAction.Builder |
This value cannot be null . |