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.ProgressListener
onProgress
in interface BackgroundTask.ProgressListener<T,V>
changes
- list of changes since previous invocationpublic void onDone(V result)
BackgroundTask.ProgressListener
onDone
in interface BackgroundTask.ProgressListener<T,V>
result
- result of execution returned by BackgroundTask.run(TaskLifeCycle)
methodpublic void onCancel()
BackgroundTask.ProgressListener
onCancel
in interface BackgroundTask.ProgressListener<T,V>