Send Event Overview
The data collector send event method provides various event models to send application & vehicle sensor events to the cloud. Telenav currently supports the below listed events for different scenarios, the corresponding data models provided facilitate building events by filling mandatory and optional data fields using the builder.
Send Event
Use Client method to send any supported event:
1 |
|
1 |
|
This method returns an error (TNDataCollectorResponse
) in case of event is not supported (.unsupportedEvent
) or Client was not properly configured (.badCofiguration
). It returns .success
in case of successful adding event to send queue.
Event Categories
Currently, all supported events can be categorized as below, still working in progress:
Use appropriate builder()
of event class in order to construct a valid event before sending.
Note
SDK uses Cache folder of application to collect events while app is in offline.