Event

Represents an occurrence of an event that was detected for a user.

Event API

getDurationInSeconds()

@Nullable Long getDurationInSeconds()

Returns the duration of the event, in seconds, if it has ended. Otherwise returns null.

getEndTime()

@Nullable DateTime getEndTime()

Returns the end time of the event, if the event has ended. Otherwise, returns null.

getEventType()

EventType getEventType()

Returns the event type. Based on this type, you can cast an event to the corresponding event class (e.g. TransportEvent, StationaryEvent) to access type specific properties.

hasEnded()

boolean hasEnded()

Returns true if the event has ended.

getLastUpdateTime()

DateTime getLastUpdateTime()

Returns the last time the event was updated.

getId()

String getId()

Returns the unique identifiers of the event.

getStartTime()

DateTime getStartTime()

Returns the start time of the event.

Last updated