T - progress measurement unitV - result typepublic static interface BackgroundTask.ProgressListener<T,V>
BackgroundTask.progress(java.util.List), BackgroundTask.done(Object),
BackgroundTask.canceled().| Modifier and Type | Method and Description |
|---|---|
void |
onCancel()
Called by the execution environment in UI thread if the task is canceled.
|
void |
onDone(V result)
Called by the execution environment in UI thread when the task is completed.
|
void |
onProgress(java.util.List<T> changes)
Called by the execution environment in UI thread on progress change.
|
void onProgress(java.util.List<T> changes)
changes - list of changes since previous invocationvoid onDone(V result)
result - result of execution returned by BackgroundTask.run(TaskLifeCycle) methodvoid onCancel()