public class AsyncBackgroundTask extends android.support.v4.content.AsyncTaskLoader<Boolean> implements android.support.v4.content.Loader.OnLoadCompleteListener<Boolean>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AsyncBackgroundTask.TaskCallback |
| Constructor and Description |
|---|
AsyncBackgroundTask(android.content.Context context)
Construct AsyncBackgroundTask object
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
loadInBackground()
Execute task in background thread
Called on a worker thread to perform the actual load.
|
void |
onLoadComplete(android.support.v4.content.Loader<Boolean> loader,
Boolean success)
Handle load complete on calling thread
|
void |
onStartLoading()
Starts an asynchronous load of the Loader's data.
|
void |
start(AsyncBackgroundTask.TaskCallback taskCallback) |
cancelLoadInBackground, dump, isLoadInBackgroundCanceled, onCanceled, setUpdateThrottle, waitForLoaderabandon, cancelLoad, commitContentChanged, dataToString, deliverCancellation, deliverResult, forceLoad, getContext, getId, isAbandoned, isReset, isStarted, onContentChanged, registerListener, registerOnLoadCanceledListener, reset, rollbackContentChanged, startLoading, stopLoading, takeContentChanged, toString, unregisterListener, unregisterOnLoadCanceledListenerpublic AsyncBackgroundTask(android.content.Context context)
context - Android contextpublic Boolean loadInBackground()
loadInBackground in class android.support.v4.content.AsyncTaskLoader<Boolean>AsyncTaskLoader.loadInBackground()public void onLoadComplete(android.support.v4.content.Loader<Boolean> loader, Boolean success)
onLoadComplete in interface android.support.v4.content.Loader.OnLoadCompleteListener<Boolean>loader - the loader that completed the loadsuccess - Boolean object - Boolean.TRUE indicates successful resultpublic void onStartLoading()
Must be called from the process's main thread.
onStartLoading in class android.support.v4.content.Loader<Boolean>public void start(AsyncBackgroundTask.TaskCallback taskCallback)
This documentation is licensed by Andrew Bowley under the GPLv3 License.