@Beta public class IntentEvent extends AbstractEvent<IntentEvent.Type,Intent>
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
IntentEvent.Type  | 
| Constructor and Description | 
|---|
IntentEvent(IntentEvent.Type type,
           Intent intent)
Creates an event of a given type and for the specified intent and the
 current time. 
 | 
IntentEvent(IntentEvent.Type type,
           Intent intent,
           long time)
Creates an event of a given type and for the specified intent and the
 current time. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Optional<IntentEvent> | 
getEvent(IntentData data)
Creates an IntentEvent based on the state contained in the given intent
 data. 
 | 
static Optional<IntentEvent> | 
getEvent(IntentState state,
        Intent intent)
Creates an IntentEvent based on the given state and intent. 
 | 
subject, time, toString, typepublic IntentEvent(IntentEvent.Type type, Intent intent, long time)
type - event typeintent - subject intenttime - time the event created in milliseconds since start of epochpublic IntentEvent(IntentEvent.Type type, Intent intent)
type - event typeintent - subject intentpublic static Optional<IntentEvent> getEvent(IntentData data)
data - the intent data to create an event forpublic static Optional<IntentEvent> getEvent(IntentState state, Intent intent)
state - new state of the intentintent - intent to put in event