Interface TrafficIncidentsQueryCallback

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 TrafficIncidentsQueryCallback

Callback passed to TrafficEngine.queryForIncidents(GeoCorridor, TrafficIncidentsQueryOptions, TrafficIncidentsQueryCallback). 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 is null for an operation that succeeds. The second argument is the list of incidents in the case of the success. It is null in case of an error.

  • Method Details

    • onTrafficIncidentsFetched

      void onTrafficIncidentsFetched(@Nullable TrafficQueryError queryError, @Nullable List<TrafficIncident> result)

      Callback passed to TrafficEngine.queryForIncidents(GeoCorridor, TrafficIncidentsQueryOptions, TrafficIncidentsQueryCallback). 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 is null for an operation that succeeds. The second argument is the list of incidents in the case of the success. It is null in case of an error.

      Parameters:
      queryError -

      The error in the case of the failure. It is null for an operation that succeeds.

      result -

      The list of incidents in the case of the success. It is null in case of an error.