Packages

 

com.aspose.imaging.asynctask

Interface IAsyncTaskState



  • public interface IAsyncTaskState

    Provides access to the state of the asynchronous task.

    • Method Detail

      • isCanceled

        boolean isCanceled()

        Gets a value indicating whether the asynchronous task is canceled.

        Value: true if the asynchronous task is canceled; otherwise, false.
        Returns:
        a value indicating whether the asynchronous task is canceled.
      • getProgress

        AsyncTaskProgress getProgress()

        Gets the progress of the asynchronous task.

        Value: The progress of the asynchronous task.
        Returns:
        the progress of the asynchronous task.
      • setProgress

        void setProgress(int progressPercentage)

        Sets the progress of the asynchronous task.

        Parameters:
        progressPercentage - The progress percentage.