ConversationAction.Builder

public static final class ConversationAction.Builder
extends Object

java.lang.Object
   ↳ androidx.textclassifier.ConversationAction.Builder


Builder class to construct ConversationAction.

Summary

Public constructors

Builder(String actionType)

Public methods

ConversationAction build()

Builds the ConversationAction object.

ConversationAction.Builder setAction(RemoteActionCompat action)

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

ConversationAction.Builder setConfidenceScore(float score)

Sets the confident score.

ConversationAction.Builder setExtras(Bundle extras)

Sets the extended data for the conversation action object.

ConversationAction.Builder setTextReply(CharSequence textReply)

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

Inherited methods

Public constructors

Builder

public Builder (String actionType)

Parameters
actionType