Interface ActivityProgress
-
- All Known Implementing Classes:
BackgroundTaskImpl,NullActivityProgress
public interface ActivityProgressThis interface allows a task to report it's progress and check for cancellation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckCanceled()This method checks if underlying process should be cancelled without completion.voidsetFraction(float completed)Allows to set the completion of the task (should be between 0 and 1 inclusive)voidsetProgressText(String progressText)Set current progress text
-
-
-
Method Detail
-
setFraction
void setFraction(float completed)
Allows to set the completion of the task (should be between 0 and 1 inclusive)- Parameters:
completed- number 0..1 to specify completed percent
-
setProgressText
void setProgressText(String progressText)
Set current progress text- Parameters:
progressText- short description of the current operation
-
checkCanceled
void checkCanceled() throws InterruptedExceptionThis method checks if underlying process should be cancelled without completion. It should be checked periodically during the action run.- Throws:
InterruptedException- when progress is interrupted
-
-