AsyncTask
AsyncTask
public class AsyncTask
An AsyncTask is a task that run on a separated thread and sync with the engine later when the job finishes.
— Constructors (2) —
| Constructor | Description |
|---|---|
| AsyncTask(AsyncRunnable asyncRunnable) | Create and start a new AsyncTask executing the code of AsyncRunnable |
| AsyncTask(Object userData, AsyncRunnable asyncRunnable) | Create and start a new AsyncTask executing the code of AsyncRunnable and passing the UserData to the thread |