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

Added in version 37.2
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

Added in version 37.2
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

Added in version 37.2
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.