AsyncTask Properties |
The AsyncTask type exposes the following members.
Name | Description | |
---|---|---|
AfterAsyncAction |
An Action callback that is executed in the main UI thread after the background thread has finished.
The progress window is still open at this point. May be null.
| |
AsyncAction |
An action callback that executes the tasks main process in a background thread.
The Result property is set to the return value of this action.
| |
BeforeAsyncAction |
An Action callback to a method that is called before the progress window opens.
It is called in the context of main UI thread. May be null.
Return false to directly cancel the task before the progress dialog shows up
| |
CloseProgressMode |
Defines if and when the progress window is closed after the task has finished.
Defaults to NoError | |
CommandDescriptor |
The command descriptor at the time this task was created
| |
Error |
contains the exception of asynchronous background task if one was caught.
| |
InfoLid |
The Loca-Id or literal text for the info area of the progress window
| |
MessagesVisible |
current visibly state of the message area, can be changed from the background task
| |
Name |
The name of the task, will be used when logging an exception
| |
ProgressBarVisible |
current visibly state of the progress bar, can be changed from the background task
| |
Result |
The result is set to the result of the AsyncAction return value.
It will be set to false if an exception was caught from the AsyncAction. task to be used in the
So the AfterAsyncAction action can react on that return value.
For more complex handling you should use the UserData member
| |
Selection |
property that contains the selection at the time the command was executed
to this task
| |
ShowMessages |
set to true if you want to open the dialog with visible messages
| |
ShowProgressBar |
set to true if you want to open the dialog with visible progress bar
| |
TitleLid |
The Loca-Id or literal text of the title of the progress window
| |
UserData |
an user defined parameter object for the task
|