Interface EarthquakesTaskCallback


  • public interface EarthquakesTaskCallback
    Callback interface for EarthquakesTask.
    • Method Detail

      • onEarthquakesLoaded

        void onEarthquakesLoaded​(List<EarthquakesResponse> responses)
        This method will be called when a list of earthquakes have been returned from the API.
        Parameters:
        responses - List of responses
      • onEarthquakesFailed

        void onEarthquakesFailed​(AerisError error)
        This method will be called when an earthquakes request to the API has failed.
        Parameters:
        error - The aeris error regarding to the fail.