ConversationActions


class ConversationActions


Represents a list of actions suggested by a TextClassifier on a given conversation.

This is an object to store the result of suggestConversationActions.

Summary

Nested types

Represents a message in the conversation.

This class is deprecated.

Use android.view.textclassifier.ConversationAction.Builder instead.

This class is deprecated.

Use android.view.textclassifier.ConversationActions.Request instead.

This class is deprecated.

Use android.view.textclassifier.ConversationActions.Request.Builder instead.

Public constructors

ConversationActions(
    conversationActions: (Mutable)List<ConversationAction!>,
    id: String?
)

Constructs a ConversationActions object.

Public functions

java-static ConversationActions

Converts a bundle that was created using toBundle to a ConversationActions.

(Mutable)List<ConversationAction!>

Returns an immutable list of ConversationAction objects, which are ordered from high confidence to low confidence.

String?

Returns the id, if one exists, for this object.

Bundle

Adds this object to a Bundle that can be read back with the same parameters to createFromBundle.

Public constructors

ConversationActions

ConversationActions(
    conversationActions: (Mutable)List<ConversationAction!>,
    id: String?
)

Constructs a ConversationActions object.

Public functions

createFromBundle

java-static fun createFromBundle(bundle: Bundle): ConversationActions

Converts a bundle that was created using toBundle to a ConversationActions.

getConversationActions

fun getConversationActions(): (Mutable)List<ConversationAction!>

Returns an immutable list of ConversationAction objects, which are ordered from high confidence to low confidence.

getId

fun getId(): String?

Returns the id, if one exists, for this object.

toBundle

fun toBundle(): Bundle

Adds this object to a Bundle that can be read back with the same parameters to createFromBundle.