P - R - public interface ResponseWorker<P,R>
| Modifier and Type | Method and Description |
|---|---|
R |
doInBackground(List<P> params)
This method will be executed to build the final result feed.
|
void |
onError(Exception e)
Will be called if an error has been occurred in the build method.
|
void |
onFinished(R res)
Called when
#doInBackground(Object) is finished. |
R doInBackground(List<P> params) throws Exception
Simply throw any exception that will be thrown without catching them. The
FeedBuilder will take care for you to catch them and to pass them
to to onFailure()
param - Exceptionvoid onFinished(R res)
#doInBackground(Object) is finished. This method
runs on the main ui Threadres - The result, builded by #doInBackground(Object). It's
the return value of #doInBackground(Object)void onError(Exception e)
e - Copyright © 2015 Hannes Dorfmann. All rights reserved.