IAsyncTaskState
public interface IAsyncTaskState
Provides access to the state of the asynchronous task.
Methods
| Method | Description |
|---|---|
| getProgress() | Gets the progress of the asynchronous task. |
| incrementProgressMaxValue(int value) | Increments the progress maximum value. |
| indicateProgress(EventType eventType) | Sets the progress of the asynchronous task. |
| isCanceled() | Gets a value indicating whether the asynchronous task is canceled. |
getProgress()
public abstract EventType getProgress()
Gets the progress of the asynchronous task.
Value: The progress of the asynchronous task.
Returns: EventType - the progress of the asynchronous task.
incrementProgressMaxValue(int value)
public abstract void incrementProgressMaxValue(int value)
Increments the progress maximum value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The increase value. |
indicateProgress(EventType eventType)
public abstract void indicateProgress(EventType eventType)
Sets the progress of the asynchronous task.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| eventType | EventType | The progress state. |
isCanceled()
public abstract boolean isCanceled()
Gets a value indicating whether the asynchronous task is canceled.
Value: true if the asynchronous task is canceled; otherwise, false .
Returns: boolean - a value indicating whether the asynchronous task is canceled.