Package page.codeberg.friedolyn.util
Interface Task.ProgressListener
- All Known Implementing Classes:
Task.TaskListener
- Enclosing class:
Task<ResultType>
public static interface Task.ProgressListener
A subscriber exclusively interested in
progress updates
of the action, but in
no other information.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onProgressUpdate
(int current, int total) Called when progress has been made executing theTask
.
-
Method Details
-
onProgressUpdate
void onProgressUpdate(int current, int total) Called when progress has been made executing theTask
.- Parameters:
current
- The absolute amount of work that has been finished so far.total
- The total amount of work that needs to be done to complete the action.
-