AsyncTask
Inheritance: java.lang.Object
public final class AsyncTask
The static factory class for creating the asynchronous tasks
Methods
Method | Description |
---|---|
create(AsyncTaskAction taskAction) | Creates the asynchronous task without any result. |
create(AsyncTaskFunc taskFunc) | Creates the asynchronous task with generic type result. |
create(AsyncTaskAction taskAction)
public static IAsyncTask create(AsyncTaskAction taskAction)
Creates the asynchronous task without any result.
Parameters:
Parameter | Type | Description |
---|---|---|
taskAction | AsyncTaskAction | The task action. |
Returns: IAsyncTask - The asynchronous task
create(AsyncTaskFunc taskFunc)
public static IAsyncTask create(AsyncTaskFunc taskFunc)
Creates the asynchronous task with generic type result.
Parameters:
Parameter | Type | Description |
---|---|---|
taskFunc | AsyncTaskFunc | The task function. |
Returns: IAsyncTask - The asynchronous task