Skip to content

FOperatingSystemNotificationManager

#include <OperatingSystemSimulator/Public/Core/OperatingSystemNotificationManager.h>
class FOperatingSystemNotificationManager

Defined in OperatingSystemNotificationManager.h:23

Inherits: NotThreadSafe >

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemNotificationManager["FOperatingSystemNotificationManager"]
  class TSharedFromThis__FOperatingSystemNotificationManager__ESPMode__NotThreadSafe["TSharedFromThis< FOperatingSystemNotificationManager, ESPMode::NotThreadSafe >"]
  TSharedFromThis__FOperatingSystemNotificationManager__ESPMode__NotThreadSafe <|-- FOperatingSystemNotificationManager
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemNotificationManager["FOperatingSystemNotificationManager"]
  class FOperatingSystemNotification["FOperatingSystemNotification"]
  FOperatingSystemNotificationManager *-- FOperatingSystemNotification
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemNotificationManager {
    +OnShowNotification : FOnShowNotification()
    +OnClearAllNotifications : FOnClearAllNotifications()
    +FOperatingSystemNotificationManager(UWorld *ParentWorld, const float &TimeToDis
    +LogNotification(const FOperatingSystemNotification &NewNoti bool
    +ClearAllNotifications()
    +GetNotificationsRef() const const TArray< FOperatingSystemNotificati
    +CreateNotificationManager(UWorld *ParentWorld, const float &TimeToDis FOperatingSystemNotificationManagerRef()
    +Notifications : TArray< FOperatingSystemNotification() >
    +TimerHandle_Notifications : FTimerHandle
    +World : TWeakObjectPtr< UWorld >
    +TimeToDisplay : float
    +Internal_ScheduleNextNotification()
    +Internal_ShowNotification()
  }

Manages operating system notifications for a specific world.

The FOperatingSystemNotificationManager class is responsible for managing operating system notifications for a specific world. It allows logging new notifications, clearing all notifications, and providing a reference to the list of notifications.

ReturnNameDescription
FOnShowNotificationOnShowNotification
FOnClearAllNotificationsOnClearAllNotifications

FOnShowNotification OnShowNotification

Defined in OperatingSystemNotificationManager.h:50


FOnClearAllNotifications OnClearAllNotifications

Defined in OperatingSystemNotificationManager.h:62

ReturnNameDescription
FOperatingSystemNotificationManagerConstructor for the FOperatingSystemNotificationManager class.
boolLogNotificationLogs a new notification.
voidClearAllNotificationsClears all notifications.
const TArray< FOperatingSystemNotification > &GetNotificationsRef const inlineReturns a reference to the list of operating system notifications.

FOperatingSystemNotificationManager(UWorld * ParentWorld, const float & TimeToDisplay)

Defined in OperatingSystemNotificationManager.h:38 Constructor for the FOperatingSystemNotificationManager class.

  • ParentWorld A pointer to the parent world.

  • TimeToDisplay The time, in seconds, that notifications should be displayed.


bool LogNotification(const FOperatingSystemNotification & NewNotification)

Defined in OperatingSystemNotificationManager.h:86 Logs a new notification.

This method logs a new notification by adding it to the notifications list and triggering the display of the notification if needed.

  • NewNotification The notification to be logged.

True if the notification was logged successfully, false otherwise.


void ClearAllNotifications()

Defined in OperatingSystemNotificationManager.h:95 Clears all notifications.

This method clears all notifications by resetting the Notifications array, clearing the timer for displaying notifications, and executing the OnClearAllNotifications delegate.

See also: OnClearAllNotifications


const inline

inline const TArray< FOperatingSystemNotification > & GetNotificationsRef() const

Defined in OperatingSystemNotificationManager.h:111 Returns a reference to the list of operating system notifications.

This method returns a constant reference to the list of operating system notifications managed by the FOperatingSystemNotificationManager class.

A constant reference to the list of operating system notifications.

ReturnNameDescription
FOperatingSystemNotificationManagerRefCreateNotificationManager static inlineCreates a notification manager for a specific world.

static inline

static inline FOperatingSystemNotificationManagerRef CreateNotificationManager(UWorld * ParentWorld, const float & TimeToDisplay)

Defined in OperatingSystemNotificationManager.h:73 Creates a notification manager for a specific world.

This method creates an instance of the FOperatingSystemNotificationManager class and returns a shared reference to it.

  • ParentWorld A pointer to the parent world.

  • TimeToDisplay The time, in seconds, that notifications should be displayed.

A shared reference to the created FOperatingSystemNotificationManager.

ReturnNameDescription
TArray< FOperatingSystemNotification >Notifications
FTimerHandleTimerHandle_Notifications
TWeakObjectPtr< UWorld >World
floatTimeToDisplay

TArray< FOperatingSystemNotification > Notifications

Defined in OperatingSystemNotificationManager.h:25


FTimerHandle TimerHandle_Notifications

Defined in OperatingSystemNotificationManager.h:26


TWeakObjectPtr< UWorld > World

Defined in OperatingSystemNotificationManager.h:27


float TimeToDisplay

Defined in OperatingSystemNotificationManager.h:28

ReturnNameDescription
voidInternal_ScheduleNextNotification
voidInternal_ShowNotification

void Internal_ScheduleNextNotification()

Defined in OperatingSystemNotificationManager.h:99


void Internal_ShowNotification()

Defined in OperatingSystemNotificationManager.h:100