Class ProgressCancelEventArgs


  • public class ProgressCancelEventArgs
    extends ProgressEventArgs

    Class for cancelable event data containing the number of bytes proceeded.

    • Constructor Detail

      • ProgressCancelEventArgs

        public ProgressCancelEventArgs​(long proceededBytes)

        Initializes a new instance of the ProgressCancelEventArgs class.

        Parameters:
        proceededBytes - The number of bytes proceeded.
    • Method Detail

      • getCancel

        public final boolean getCancel()

        Gets a value indicating whether the event should be canceled.

        Returns:
        True if the event should be canceled; otherwise, false.
      • setCancel

        public final void setCancel​(boolean value)

        Sets a value indicating whether the event should be canceled.

        Parameters:
        value - a value indicating whether the event should be canceled.