Interface TrafficIncidentLookupCallback
Interface TrafficIncidentLookupCallback
-
- 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 TrafficIncidentLookupCallbackCallback passed to
TrafficEngine.lookupIncident(java.lang.String, com.here.sdk.traffic.TrafficIncidentLookupOptions, com.here.sdk.traffic.TrafficIncidentLookupCallback). 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 incident 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 voidonTrafficIncidentFetched(TrafficQueryError queryError, TrafficIncident result)
-
-
-
Method Detail
-
onTrafficIncidentFetched
void onTrafficIncidentFetched(@Nullable TrafficQueryError queryError, @Nullable TrafficIncident result)Callback passed to
TrafficEngine.lookupIncident(java.lang.String, com.here.sdk.traffic.TrafficIncidentLookupOptions, com.here.sdk.traffic.TrafficIncidentLookupCallback). 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 incident 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 incident in the case of the success. It is
nullin case of an error.
-
-