ConversationEvent
public
abstract
class
ConversationEvent
extends Object
| java.lang.Object | |
| ↳ | 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 | |
|---|---|
class |
ConversationEvent.ConversationEnterEvent
An event representing a new conversation being visible on the screen. |
class |
ConversationEvent.ConversationExitEvent
An event representing a conversation not being visible on the screen anymore. |
class |
ConversationEvent.ConversationProcessingEvent
An event representing a message from a conversation on screen being processed. |
class |
ConversationEvent.ConversationUpdateEvent
An event representing an update to the data of a conversation visible on the screen. |
Public methods | |
|---|---|
long
|
getClientEventTimestampMillis()
Returns the timestamp of the event being created in the ACE client invoking the trigger in milliseconds since epoch. |
String
|
getConversationSessionId()
Returns the session ID of the conversation. |
long
|
getTimestampMillis()
Returns a timestamp of when the relevant event occurred in milliseconds since epoch. |
Inherited methods | |
|---|---|
Public methods
getClientEventTimestampMillis
public long getClientEventTimestampMillis ()
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.
| Returns | |
|---|---|
long |
Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z. |
getConversationSessionId
public String getConversationSessionId ()
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.
| Returns | |
|---|---|
String |
This value cannot be null. |
getTimestampMillis
public long getTimestampMillis ()
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.
| Returns | |
|---|---|
long |
Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-28 UTC.