|
FORCEINLINE bool | IsValid () const |
|
FORCEINLINE bool | IsWarning () const |
|
FORCEINLINE bool | IsError () const |
|
| FOperatingSystemNotification () |
|
| FOperatingSystemNotification (const FText &Title, const EOperatingSystemNotificationCategory &Category) |
| Constructs a new operating system notification with the given title and category. The constructor initializes the operating system notification object with the provided title, an empty description, an empty code, the current date and time as the timestamp, a null icon, an operating system notification type of Info, and the given category.
|
|
| FOperatingSystemNotification (const FText &Title, const EOperatingSystemNotificationCategory &Category, const EOperatingSystemNotificationType &Verbosity) |
| Constructs a new operating system notification with the given title, category, and verbosity level. The constructor initializes the operating system notification object with the provided title, an empty description, an empty code, the current date and time as the timestamp, a null icon, the specified verbosity level, and the given category.
|
|
| FOperatingSystemNotification (const FText &Title, const FText &Description, const EOperatingSystemNotificationCategory &Category) |
| Constructs a new operating system notification with the given title, description, and category. The constructor initializes the operating system notification object with the provided title, description, an empty code, the current date and time as the timestamp, a null icon, an operating system notification type of Info, and the given category.
|
|
| FOperatingSystemNotification (const FText &Title, const FText &Description, const FText &Code, const EOperatingSystemNotificationCategory &Category) |
| Constructs a new operating system notification.
|
|
A struct representing an operating system notification.
This struct encapsulates information about an operating system notification, including its title, description, code, timestamp, icon, level, and category. It provides various constructors to create different types of notifications. Notifications can be checked for validity and can also be checked if they are warnings or errors.
- See also
- EOperatingSystemNotificationType
-
EOperatingSystemNotificationCategory
FOperatingSystemNotification::FOperatingSystemNotification |
( |
const FText & | Title, |
|
|
const FText & | Description, |
|
|
const FText & | Code, |
|
|
const EOperatingSystemNotificationCategory & | Category ) |
|
inline |
Constructs a new operating system notification.
The constructor initializes the operating system notification object with the provided title, description, code, the current date and time as the timestamp, a null icon, an operating system notification type of Info, and the given category.
- Parameters
-
Title | The title for the notification. |
Description | A short description of this notification. |
Code | A code like ERR_SOMETHING, ACCESS_DENIED, 0x000FFFD456D, or anything like that. |
Category | The category of the notification. |
Example usage: FText title = FText::FromString("Title"); FText description = FText::FromString("Description"); FText code = FText::FromString("ERR_SOMETHING"); EOperatingSystemNotificationCategory category = EOperatingSystemNotificationCategory::OperatingSystem; FOperatingSystemNotification notification(title, description, code, category);