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.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 |
String |
Public methods
build
public ConversationAction build ()
Builds the ConversationAction
object.
Returns | |
---|---|
ConversationAction |
setAction
public ConversationAction.Builder setAction (RemoteActionCompat action)
Sets an action that may be performed on the given conversation.
Parameters | |
---|---|
action |
RemoteActionCompat |
Returns | |
---|---|
ConversationAction.Builder |
setConfidenceScore
public ConversationAction.Builder setConfidenceScore (float score)
Sets the confident score.
Parameters | |
---|---|
score |
float Value is between 0.0 and 1.0 inclusive. |
Returns | |
---|---|
ConversationAction.Builder |
setExtras
public ConversationAction.Builder setExtras (Bundle extras)
Sets the extended data for the conversation action object.
Parameters | |
---|---|
extras |
Bundle |
Returns | |
---|---|
ConversationAction.Builder |
setTextReply
public ConversationAction.Builder setTextReply (CharSequence textReply)
Sets a text reply that may be performed on the given conversation.
Parameters | |
---|---|
textReply |
CharSequence |
Returns | |
---|---|
ConversationAction.Builder |