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

        EventType getProgress()

        Gets the progress of the asynchronous task.

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

        void indicateProgress(EventType eventType)

        Sets the progress of the asynchronous task.

        Parameters:
        eventType - The progress state.
      • incrementProgressMaxValue

        void incrementProgressMaxValue(int value)

        Increments the progress maximum value.

        Parameters:
        value - The increase value.