AsyncRunnable
AsyncRunnable
public interface AsyncRunnable
The AsyncRunnable class is used within the AsyncTask to create an background asynchronous thread, the AsyncRunnable is a interface with the methods called while the AsyncTask is running
— Methods (2) —
Name | Description |
---|---|
Object onBackground(Object input) | This method is called while the AsyncTask is on background. The input variable is passed on the AsyncTask constructor |
void onEngine(Object result) | This method is called on the main thread after the onBackground task end. The result parameter is returned from onBackground. |