public static class BackgroundTask.ProgressListenerAdapter<T,V> extends java.lang.Object implements BackgroundTask.ProgressListener<T,V>
| Constructor and Description |
|---|
ProgressListenerAdapter() |
| 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.
|
public void onProgress(java.util.List<T> changes)
BackgroundTask.ProgressListeneronProgress in interface BackgroundTask.ProgressListener<T,V>changes - list of changes since previous invocationpublic void onDone(V result)
BackgroundTask.ProgressListeneronDone in interface BackgroundTask.ProgressListener<T,V>result - result of execution returned by BackgroundTask.run(TaskLifeCycle) methodpublic void onCancel()
BackgroundTask.ProgressListeneronCancel in interface BackgroundTask.ProgressListener<T,V>