Interface ActivityProgress

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void checkCanceled()
      This method checks if underlying process should be cancelled without completion.
      void setFraction​(float completed)
      Allows to set the completion of the task (should be between 0 and 1 inclusive)
      void setProgressText​(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 InterruptedException
        This 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