public final class

ConversationAction.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.textclassifier.ConversationAction.Builder

Overview

Builder class to construct ConversationAction.

Summary

Constructors
publicBuilder(java.lang.String actionType)

Methods
public ConversationActionbuild()

Builds the ConversationAction object.

public ConversationAction.BuildersetAction(RemoteActionCompat action)

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

public ConversationAction.BuildersetConfidenceScore(float score)

Sets the confident score.

public ConversationAction.BuildersetExtras(Bundle extras)

Sets the extended data for the conversation action object.

public ConversationAction.BuildersetTextReply(java.lang.CharSequence textReply)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.String actionType)

Methods

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

public ConversationAction.Builder setTextReply(java.lang.CharSequence textReply)

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

public ConversationAction.Builder setConfidenceScore(float score)

Sets the confident score.

public ConversationAction.Builder setExtras(Bundle extras)

Sets the extended data for the conversation action object.

public ConversationAction build()

Builds the ConversationAction object.