Interface RequestLoadingListener



  • public interface RequestLoadingListener
    This interface allows you to subscribe to the events that occur in the lifecycle of displaying the list of Request in the RequestListFragment
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void onLoadError(ErrorResponse errorResponse)
      Called when the loading of requests has completed with errors
      void onLoadFinished(int requestCount)
      Called when the loading of requests has completed successfully
      void onLoadStarted()
      Called when the loading of requests has begun
    • Method Detail

      • onLoadStarted

        void onLoadStarted()
        Called when the loading of requests has begun
      • onLoadFinished

        void onLoadFinished(int requestCount)
        Called when the loading of requests has completed successfully
        Parameters:
        requestCount - The number of requests that were loaded
      • onLoadError

        void onLoadError(ErrorResponse errorResponse)
        Called when the loading of requests has completed with errors
        Parameters:
        errorResponse - The details of the error that occurred