Interface for checking the progress of asynchronous tasks. 更多...
#include <IAsyncProgress.h>
Public 成员函数 | |
| virtual TOptional< float > | GetCompletion ()=0 |
| Gets the task's completion percentage, if available (0.0 to 1.0, or unset). 更多... | |
| virtual FText | GetStatusText ()=0 |
| Gets a human readable text for the task's current status. 更多... | |
| virtual FSimpleDelegate & | OnProgressChanged ()=0 |
| A delegate that is executed if the task's progress changed. | |
| virtual | ~IAsyncProgress () |
| Virtual destructor. | |
Interface for checking the progress of asynchronous tasks.
|
pure virtual |
Gets the task's completion percentage, if available (0.0 to 1.0, or unset).
Tasks should make a best effort to calculate a completion percentage. If the calculation is expensive, the value should be cached and only updated in regular intervals or whenever is appropriate. If a completion percentage cannot be computed at all, the optional return value should be unset.
|
pure virtual |