TrafficFlowDelegate

@protocol TrafficFlowDelegate <NSObject>

TrafficFlowDelegate

  • Method responsible to handle Flow Segment Data response when search returns results. Within this callback user will obtain 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

    flowSegmentData

    Object type TTTrafficFlow.

    response

    Object 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

    flowSegmentData

    Object type TTTrafficFlow.

    error

    Object type TTResponseError.