sdk-traffic / com.tomtom.online.sdk.traffic.api.flow.segmentdata / FlowSegmentDataResultListener

FlowSegmentDataResultListener

interface FlowSegmentDataResultListener

Listener for traffic flow segment data results.

Functions

onTrafficFlowSegmentDataError

abstract fun onTrafficFlowSegmentDataError(error: Throwable!): Unit

Method responsible to handle traffic flow segment data response when service returns error. Within this callback user will obtain error containing a Throwable fail reason.

onTrafficFlowSegmentDataResult

abstract fun onTrafficFlowSegmentDataResult(result: FlowSegmentDataResponse!): Unit

Method responsible to handle traffic flow segment data response when service returns results. Within this callback user will obtain list with results.