Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Notifications
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Notifications/NotificationManager.h |
| Include | #include "Framework/Notifications/NotificationManager.h" |
Syntax
class FSlateNotificationManager
Remarks
A class which manages a group of notification windows
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Protect constructor as this is a singleton |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SNotificationItem > | AddNotification
(
const FNotificationInfo& Info |
Adds a floating notification | |
| bool | Checks whether notifications are currently enabled. | ||
| void | CancelProgressNotification
(
FProgressNotificationHandle InHandle |
Cancels an active notification | |
| TSharedRef< SNotificationList > | CreateStackForArea
(
const FSlateRect& InRectangle, |
Create a notification list for the specified screen rectangle | |
| void | ForceNotificationsInFront
(
const TSharedRef< SWindow > InWindow |
Called back from the SlateApplication when a window is activated/resized We need to keep notifications topmost in the z-order so we manage it here directly as there isn't a cross-platform OS-level way of making a 'topmost child'. | |
| FSlateNotificationManager & | Get () |
Gets the instance of this manager | |
| void | GetWindows
(
TArray< TSharedRef< SWindow > >& OutWindows |
Gets all the windows that represent notifications | |
| void | QueueNotification
(
FNotificationInfo* Info |
Thread safe method of queuing a notification for presentation on the next tick | |
| void | RegisterStagedNotification
(
TSharedPtr< IAsyncTaskNotificationImpl > InNotification |
Register a Staged Async Notification, allowing the NotificationManager to keep a reference to it | |
| void | SetAllowNotifications
(
const bool bShouldAllow |
Sets whether notifications should be displayed at all. | |
| void | SetProgressNotificationHandler
(
IProgressNotificationHandler* NewHandler |
Sets the progress notification handler for the current application. | |
| void | SetRootWindow
(
const TSharedRef< SWindow > InRootWindow |
Provide a window under which all notifications should nest. | |
| void | FCoreDelegates::OnPreExit shutdown callback | ||
| FProgressNotificationHandle | StartProgressNotification
(
FText DisplayText, |
Begin a progress notification. | |
| void | Tick () |
Update the manager | |
| void | UnregisterStagedNotification
(
TSharedPtr< IAsyncTaskNotificationImpl > InNotification |
Unregister a previously added Staged Notification | |
| void | UpdateProgressNotification
(
FProgressNotificationHandle InHandle, |
Updates a progress notification. |
Constants
| Name | Description |
|---|---|
| ProgressHandleCounter | Counter used to create progress handles |