Package 

Interface DataFetcher.DataCallback


  • 
    public interface DataFetcher.DataCallback<T>
    
                        

    Callback that must be called when data has been loaded and is available, or when the loadfails.

    • Method Summary

      Modifier and Type Method Description
      abstract void onDataReady(@Nullable() T data) Called with the loaded data if the load succeeded, or with {@code null} if the load failed.
      abstract void onLoadFailed(@NonNull() Exception e) Called when the load fails.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onDataReady

         abstract void onDataReady(@Nullable() T data)

        Called with the loaded data if the load succeeded, or with {@code null} if the load failed.