TTTrafficIncidents Class Reference
Inherits from | NSObject |
---|---|
Declared in | TTTrafficIncidents.h |
Overview
TomTom Traffic Incidents API main object. Contains methods to use Tomtom’s online traffic incidents engine and provides support for both async and sync calls.
delegate
Delegate that informs the subscriber when a traffic flow result is available. It contains a TTTrafficIncidentsDelegate object.
@property id<TTTrafficIncidentsDelegate> _Nullable delegate
Discussion
Delegate that informs the subscriber when a traffic flow result is available. It contains a TTTrafficIncidentsDelegate object.
Declared In
TTTrafficIncidents.h
– incidentDetailsWithQuery:
IncidentDetailsWithQuery with async callback
- (void)incidentDetailsWithQuery:(TTIncidentDetailsQuery *_Nonnull)query
Parameters
query |
Object containing the data needed to perform a traffic incidetns. |
---|
Discussion
IncidentDetailsWithQuery with async callback
Declared In
TTTrafficIncidents.h
– incidentDetailsWithQuery:completionHandler:
IncidentDetailsWithQuery with async block
- (void)incidentDetailsWithQuery:(TTIncidentDetailsQuery *_Nonnull)query completionHandler:(void ( ^ _Nonnull ) ( TTIncidentDetailsResponse *_Nullable response , TTResponseError *_Nullable error ))completionHandler
Parameters
query |
Object containing the data needed to perform a traffic incidents. |
---|---|
completionHandler |
CompletionHandler that informs the subscriber when a traffic incidents result is available. It contains a TTIncidentDetailsResponse object. |
Discussion
IncidentDetailsWithQuery with async block
Declared In
TTTrafficIncidents.h
– cancel
Cancels the current search request.
- (void)cancel
Discussion
Cancels the current search request.
Declared In
TTTrafficIncidents.h