Provides notifications for an on-going asynchronous task. 更多...
#include <AsyncTaskNotification.h>
Public 成员函数 | |
| FAsyncTaskNotification (const FAsyncTaskNotification &)=delete | |
| Non-copyable. | |
| FAsyncTaskNotification (const FAsyncTaskNotificationConfig &InConfig) | |
| Create an asynchronous task notification. | |
| FAsyncTaskNotification (FAsyncTaskNotification &&InOther) | |
| Movable. | |
| EAsyncTaskNotificationPromptAction | GetPromptAction () const |
| Return the notification prompt action. 更多... | |
| void | SetCanCancel (const TAttribute< bool > &InCanCancel) |
| Set whether this task be canceled. | |
| void | SetComplete (const bool bSuccess=true) |
| Set the task as complete. | |
| void | SetComplete (const FText &InTitleText, const FText &InProgressText, const bool bSuccess=true) |
| Update the text and set the task as complete. | |
| void | SetHyperlink (const FSimpleDelegate &InHyperlink, const FText &InHyperlinkText=FText()) |
| Set the Hyperlink for this notification. | |
| void | SetKeepOpenOnFailure (const TAttribute< bool > &InKeepOpenOnFailure) |
| Set whether to keep this notification open on failure. | |
| void | SetKeepOpenOnSuccess (const TAttribute< bool > &InKeepOpenOnSuccess) |
| Set whether to keep this notification open on success. | |
| void | SetNotificationState (const FAsyncNotificationStateData &InState) |
| Set the notification state. 更多... | |
| void | SetProgressText (const FText &InProgressText) |
| Set the progress text of this notification. | |
| void | SetPromptText (const FText &InPromptText) |
| Set the prompt text of this notification, if needed. | |
| void | SetTitleText (const FText &InTitleText, const bool bClearProgressText=true) |
| Set the title text of this notification. | |
| ~FAsyncTaskNotification () | |
| Destroy the asynchronous task notification. | |
Provides notifications for an on-going asynchronous task.
| EAsyncTaskNotificationPromptAction FAsyncTaskNotification::GetPromptAction | ( | ) | const |
Return the notification prompt action.
The action resets to None when the notification state changes.
| void FAsyncTaskNotification::SetNotificationState | ( | const FAsyncNotificationStateData & | InState | ) |
Set the notification state.
Provide finer control than SetComplete by setting every field of the state.