Module is.codion.common.model
Package is.codion.common.model.worker
Interface ProgressWorker.ProgressHandler<V>
- Type Parameters:
V- the intermediate result type
- All Superinterfaces:
ProgressWorker.Handler
- All Known Subinterfaces:
ProgressWorker.ProgressResultTaskHandler<T,,V> ProgressWorker.ProgressTaskHandler<V>
- All Known Implementing Classes:
DomainGeneratorModel.PopulateTask
- Enclosing class:
ProgressWorker<T,V>
Extends
ProgressWorker.Handler with progress and publish handlers.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonProgress(int progress) Called on the UI thread when progress is reported.default voidCalled on the UI thread when intermediate results are available.Methods inherited from interface is.codion.common.model.worker.ProgressWorker.Handler
onCancelled, onDone, onException, onInterrupted, onStarted, onSuccess
-
Method Details
-
onProgress
default void onProgress(int progress) Called on the UI thread when progress is reported.- Parameters:
progress- the progress value
-
onPublish
Called on the UI thread when intermediate results are available.- Parameters:
chunks- the published chunks
-