IAsyncTaskState Class

Summary: Provides access to the state of the asynchronous task.

Module: aspose.imaging.asynctask

Full Name: aspose.imaging.asynctask.IAsyncTaskState

Properties

NameTypeAccessDescription
is_canceledboolrGets a value indicating whether the asynchronous task is canceled.
progressEventTyperGets the progress of the asynchronous task.

Methods

NameDescription
increment_progress_max_value(value)Increments the progress maximum value.
indicate_progress(event_type)Sets the progress of the asynchronous task.

Method: increment_progress_max_value(value)

 increment_progress_max_value(value) 

Increments the progress maximum value.

Parameters:

ParameterTypeDescription
valueintThe increase value.

Method: indicate_progress(event_type)

 indicate_progress(event_type) 

Sets the progress of the asynchronous task.

Parameters:

ParameterTypeDescription
event_typeEventTypeThe progress state.