User Events
Info
This document is a work in progress.
Currently, User events contain below events, still working in progress:
- User Events
- Set Home Event - Should be sent by HMI when user sets/removes home address
- Set Work Event - Should be sent by HMI when user sets/removes work address
Set Home Event
Set home event should be sent by HMI when user sets/removes home address.
TNSetHomeEventBuilder Methods |
Details |
entityId(_ entityId: String) |
The EntityId address/POI, mandatory data field. |
lat(_ lat: CLLocationDegrees) |
Set to raw latitude, mandatory data field. |
lon(_ lon: CLLocationDegrees) |
Set to raw longitude, mandatory data field. |
action(_ action: TNUserEventActionType) |
ActionType as SET/REMOVE when user set/remove home address, mandatory data field. |
label(_ label: String) |
For the name alias for this home, optional data field. |
enum TNUserEventActionType |
Details |
set |
when user sets home address |
remove |
when user removes home address |
Use Data Collector method send(event: TNEvent)
, which will collects and sends the created event asynchronously:
Set Work Event
Set work event should be sent by HMI when user sets/removes work address
TNSetWorkEventBuilder methods |
Details |
entityId(_ entityId: String) |
The EntityId address/POI, mandatory data field. |
lat(_ lat: CLLocationDegrees) |
Set to raw latitude, mandatory data field. |
lon(_ lon: CLLocationDegrees) |
Set to raw longitude, mandatory data field. |
action(_ action: TNUserEventActionType) |
ActionType as SET/REMOVE when user set/remove work address, mandatory data field. |
label(_ label: String) |
For the name alias for this work, optional data field. |
enum TNUserEventActionType |
Details |
set |
when user sets work address |
remove |
when user removes work address |
Use Data Collector method send(event: TNEvent)
, which will collects and sends the created event asynchronously: