ConversationAction.Builder


class ConversationAction.Builder


Builder class to construct ConversationAction.

Summary

Public constructors

Builder(actionType: String)

Public functions

ConversationAction

Builds the ConversationAction object.

ConversationAction.Builder

Sets an action that may be performed on the given conversation.

ConversationAction.Builder
setConfidenceScore(score: @FloatRange(from = 0, to = 1) Float)

Sets the confident score.

ConversationAction.Builder
setExtras(extras: Bundle?)

Sets the extended data for the conversation action object.

ConversationAction.Builder

Sets a text reply that may be performed on the given conversation.

Public constructors

Builder

Builder(actionType: String)

Public functions

build

fun build(): ConversationAction

Builds the ConversationAction object.

setAction

fun setAction(action: RemoteActionCompat?): ConversationAction.Builder

Sets an action that may be performed on the given conversation.

setConfidenceScore

fun setConfidenceScore(score: @FloatRange(from = 0, to = 1) Float): ConversationAction.Builder

Sets the confident score.

setExtras

fun setExtras(extras: Bundle?): ConversationAction.Builder

Sets the extended data for the conversation action object.

setTextReply

fun setTextReply(textReply: CharSequence?): ConversationAction.Builder

Sets a text reply that may be performed on the given conversation.