ConversationEvent


abstract class ConversationEvent
kotlin.Any
   ↳ android.app.personalcontext.hint.ConversationEvent

Base class for conversation-related events.

A single ConversationEnterEvent will always be sent first when an on-device message recognizer begins capturing data about a conversation to be sent to personal context understanders.

Afterwards, any number of pairs of ConversationProcessingEvent followed by ConversationUpdateEvent may be sent, for the initial update and any subsequent messages sent or received.

When the conversation is exited, a single ConversationExitEvent will be sent, after which no other events will be sent for that conversation.

Summary

Nested classes

An event representing a new conversation being visible on the screen.

An event representing a conversation not being visible on the screen anymore.

An event representing a message from a conversation on screen being processed.

An event representing an update to the data of a conversation visible on the screen.

Public methods
open Long

Returns the timestamp of the event being created in the ACE client invoking the trigger in milliseconds since epoch.

open String

Returns the session ID of the conversation.

open Long

Returns a timestamp of when the relevant event occurred in milliseconds since epoch.

Public methods

getClientEventTimestampMillis

open fun getClientEventTimestampMillis(): Long

Returns the timestamp of the event being created in the ACE client invoking the trigger in milliseconds since epoch.
Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.

Return
Long Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.

getConversationSessionId

open fun getConversationSessionId(): String

Returns the session ID of the conversation.

This is an arbitrary string ID that can be used by the understander to recognize this particular conversation.

Return
String This value cannot be null.

getTimestampMillis

open fun getTimestampMillis(): Long

Returns a timestamp of when the relevant event occurred in milliseconds since epoch.
Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.

Return
Long Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.