oak.util
Class OakAsyncLoader<T>

java.lang.Object
  extended by android.support.v4.content.Loader<D>
      extended by android.support.v4.content.AsyncTaskLoader<T>
          extended by oak.util.OakAsyncLoader<T>

public abstract class OakAsyncLoader<T>
extends android.support.v4.content.AsyncTaskLoader<T>

AsyncTaskLoader that actually works as you would think. Created by ericrichardson on 1/7/14.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.support.v4.content.Loader
android.support.v4.content.Loader.ForceLoadContentObserver, android.support.v4.content.Loader.OnLoadCompleteListener<D>
 
Constructor Summary
OakAsyncLoader(android.content.Context context)
           
 
Method Summary
 void deliverResult(T data)
           
protected  void onReset()
           
protected  void onStartLoading()
           
protected  void onStopLoading()
           
 
Methods inherited from class android.support.v4.content.AsyncTaskLoader
cancelLoad, dump, loadInBackground, onCanceled, onForceLoad, onLoadInBackground, setUpdateThrottle, waitForLoader
 
Methods inherited from class android.support.v4.content.Loader
abandon, commitContentChanged, dataToString, forceLoad, getContext, getId, isAbandoned, isReset, isStarted, onAbandon, onContentChanged, registerListener, reset, rollbackContentChanged, startLoading, stopLoading, takeContentChanged, toString, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OakAsyncLoader

public OakAsyncLoader(android.content.Context context)
Method Detail

deliverResult

public void deliverResult(T data)
Overrides:
deliverResult in class android.support.v4.content.Loader<T>

onStartLoading

protected void onStartLoading()
Overrides:
onStartLoading in class android.support.v4.content.Loader<T>

onStopLoading

protected void onStopLoading()
Overrides:
onStopLoading in class android.support.v4.content.Loader<T>

onReset

protected void onReset()
Overrides:
onReset in class android.support.v4.content.Loader<T>


Copyright © 2011-2014. All Rights Reserved.