Navigation
API > API/Runtime > API/Runtime/Slate
Class used to provide simple global notifications
| Name | FGlobalNotification |
| Type | class |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Notifications/GlobalNotification.h |
| Include Path | #include "Widgets/Notifications/GlobalNotification.h" |
Syntax
class FGlobalNotification
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGlobalNotification
(
const double InEnableDelayInSeconds |
Widgets/Notifications/GlobalNotification.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FGlobalNotification() |
Widgets/Notifications/GlobalNotification.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EnableDelayInSeconds | double | Delay (in seconds) before we should actually show the notification (default is 1) | Widgets/Notifications/GlobalNotification.h | |
| NextEnableTimeInSeconds | double | Minimum time before the notification should actually appear (used to avoid spamming), or zero if no next time has been set | Widgets/Notifications/GlobalNotification.h | |
| NotificationPtr | TWeakPtr< SNotificationItem > | The actual item being shown | Widgets/Notifications/GlobalNotification.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void TickNotification
(
float DeltaTime |
Called to Tick this notification and update its state | Widgets/Notifications/GlobalNotification.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetNotificationText
(
const TSharedPtr< SNotificationItem >& InNotificationItem |
Called to update the text on the given notification | Widgets/Notifications/GlobalNotification.h | |
bool ShouldShowNotification
(
const bool bIsNotificationAlreadyActive |
Used to work out whether the notification should currently be visible (causes BeginNotification, EndNotification, and SetNotificationText to be called at appropriate points) | Widgets/Notifications/GlobalNotification.h |