- Type Parameters:
T- the task result typeV- the intermediate result type
- All Superinterfaces:
ProgressWorker.Handler, ProgressWorker.ProgressHandler<V>, ProgressWorker.ProgressResultTask<T,V>
- Enclosing class:
ProgressWorker<T extends @Nullable Object, V>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface ProgressWorker.ProgressResultTaskHandler<T extends @Nullable Object, V>
extends ProgressWorker.ProgressResultTask<T,V>, ProgressWorker.ProgressHandler<V>
A
ProgressWorker.ProgressResultTask combined with ProgressWorker.ProgressHandler, for encapsulating a progress-aware,
result-producing background task and its handlers in a single class.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled using theDispatcherafter a successful execution, beforeProgressWorker.Handler.onSuccess().Methods inherited from interface ProgressWorker.Handler
onCancelled, onDone, onException, onStarted, onSuccess, onWorkingMethods inherited from interface ProgressWorker.ProgressHandler
onProgress, onPublishMethods inherited from interface ProgressWorker.ProgressResultTask
execute, maximum
-
Method Details
-
onResult
Called using theDispatcherafter a successful execution, beforeProgressWorker.Handler.onSuccess().- Parameters:
result- the task result
-