Interface TrafficFlowQueryCallback
Interface TrafficFlowQueryCallback
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TrafficFlowQueryCallbackCallback passed to following functions:
TrafficEngine.queryForFlow(GeoBox, TrafficFlowQueryOptions, TrafficFlowQueryCallback)TrafficEngine.queryForFlow(GeoCircle, TrafficFlowQueryOptions, TrafficFlowQueryCallback)TrafficEngine.queryForFlow(GeoCorridor, TrafficFlowQueryOptions, TrafficFlowQueryCallback)The method will be called on the main thread when a search call has been completed. The first argument is the error in the case of the failure. It isnullfor an operation that succeeds. The second argument is the list of flow items in the case of the success. It isnullin case of an error.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonTrafficFlowFetched(TrafficQueryError queryError, java.util.List<TrafficFlow> result)Callback passed to following functions:TrafficEngine.queryForFlow(GeoBox, TrafficFlowQueryOptions, TrafficFlowQueryCallback)TrafficEngine.queryForFlow(GeoCircle, TrafficFlowQueryOptions, TrafficFlowQueryCallback)TrafficEngine.queryForFlow(GeoCorridor, TrafficFlowQueryOptions, TrafficFlowQueryCallback)The method will be called on the main thread when a search call has been completed.
-
-
-
Method Detail
-
onTrafficFlowFetched
void onTrafficFlowFetched(@Nullable TrafficQueryError queryError, @Nullable java.util.List<TrafficFlow> result)Callback passed to following functions:
TrafficEngine.queryForFlow(GeoBox, TrafficFlowQueryOptions, TrafficFlowQueryCallback)TrafficEngine.queryForFlow(GeoCircle, TrafficFlowQueryOptions, TrafficFlowQueryCallback)TrafficEngine.queryForFlow(GeoCorridor, TrafficFlowQueryOptions, TrafficFlowQueryCallback)The method will be called on the main thread when a search call has been completed. The first argument is the error in the case of the failure. It isnullfor an operation that succeeds. The second argument is the list of flow items in the case of the success. It isnullin case of an error.- Parameters:
queryError-The error in the case of the failure. It is
nullfor an operation that succeeds.result-The list of incidents in the case of the success. It is
nullin case of an error.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
-