TrafficFlowDelegate
Objective-C
@protocol TrafficFlowDelegate <NSObject>
Swift
protocol TrafficFlowDelegate : NSObjectProtocol
TrafficFlowDelegate
-
Method responsible to handle Flow Segment Data response when search returns results. Within this callback the user will obtain a response populated with results.
Declaration
Objective-C
- (void)flowSegmentData:(TTTrafficFlow *_Nonnull)flowSegmentData completedWithResponse:(TTFlowSegmentDataResponse *_Nonnull)response;Swift
optional func flowSegmentData(_ flowSegmentData: TTTrafficFlow, completedWith response: TTFlowSegmentDataResponse)Parameters
flowSegmentDataObject type TTTrafficFlow.
responseObject type TTFlowSegmentDataResponse.
-
Method responsible to handle Flow Segment Data response when search returns error. Within this callback user will obtain TTResponseError containing a Throwable fail reason
Declaration
Objective-C
- (void)flowSegmentData:(TTTrafficFlow *_Nonnull)flowSegmentData failedWithError:(id)error;Swift
optional func flowSegmentData(_ flowSegmentData: TTTrafficFlow, failedWithError error: Any!)Parameters
flowSegmentDataObject type TTTrafficFlow.
errorObject type TTResponseError.
TrafficFlowDelegate Protocol Reference