Event
Represents an occurrence of an event that was detected for a user.
Event API
getDurationInSeconds()
getDurationInSeconds()
Returns the duration of the event, in seconds, if it has ended. Otherwise returns null.
getEndTime()
getEndTime()
Returns the end time of the event, if the event has ended. Otherwise, returns null.
getEventType()
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()
hasEnded()
Returns true if the event has ended.
getLastUpdateTime()
getLastUpdateTime()
Returns the last time the event was updated.
getId()
getId()
Returns the unique identifiers of the event.
getStartTime()
getStartTime()
Returns the start time of the event.
Last updated