![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <LocalNotification.h>
Inheritance diagram for ILocalNotificationService:Public Member Functions | |
| virtual void | ClearAllLocalNotifications ()=0 |
| virtual int32 | ScheduleLocalNotificationAtTime (const FDateTime &FireDateTime, bool LocalTime, const FText &Title, const FText &Body, const FText &Action, const FString &ActivationEvent)=0 |
| virtual int32 | ScheduleLocalNotificationAtTimeOverrideId (const FDateTime &FireDateTime, bool LocalTime, const FText &Title, const FText &Body, const FText &Action, const FString &ActivationEvent, int32 IdOverride)=0 |
| virtual int32 | ScheduleLocalNotificationBadgeAtTime (const FDateTime &FireDateTime, bool LocalTime, const FString &ActivationEvent)=0 |
| virtual void | GetLaunchNotification (bool &NotificationLaunchedApp, FString &ActivationEvent, int32 &FireDate)=0 |
| virtual void | CancelLocalNotification (const FString &ActivationEvent)=0 |
| virtual void | CancelLocalNotification (int32 NotificationId)=0 |
| virtual void | SetLaunchNotification (FString const &ActivationEvent, int32 FireDate)=0 |
Interface for local notification modules
|
pure virtual |
Cancel a local notification given the ActivationEvent
| ActivationEvent | The string passed into the Schedule call for the notification to be cancelled |
Implemented in FAndroidLocalNotificationService, and FIOSLocalNotificationService.
|
pure virtual |
Cancel a local notification given the ActivationEvent
| NotificationId | The Id returned from ScheduleLocalNotificationAtTime* |
Clear all pending local notifications. Typically this will be done before scheduling new notifications when going into the background
Implemented in FAndroidLocalNotificationService, and FIOSLocalNotificationService.
|
pure virtual |
Get the local notification that was used to launch the app
| NotificationLaunchedApp | Return true if a notification was used to launch the app |
| ActivationEvent | Returns the name of the ActivationEvent if a notification was used to launch the app |
| FireDate | Returns the time the notification was activated |
Implemented in FAndroidLocalNotificationService, and FIOSLocalNotificationService.
|
pure virtual |
Schedule a local notification at a specific time, inLocalTime specifies the current local time or if UTC time should be used
| FireDateTime | The time at which to fire the local notification |
| LocalTime | If true the provided time is in the local timezone, if false it is in UTC |
| Title | The title of the notification |
| Body | The more detailed description of the notification |
| Action | The text to be displayed on the slider controller |
| ActivationEvent | A string that is passed in the delegate callback when the app is brought into the foreground from the user activating the notification |
Implemented in FAndroidLocalNotificationService, and FIOSLocalNotificationService.
|
pure virtual |
Schedule a local notification at a specific time with a specific Id, inLocalTime specifies the current local time or if UTC time should be used Currently only works for Android.
| FireDateTime | The time at which to fire the local notification |
| LocalTime | If true the provided time is in the local timezone, if false it is in UTC |
| Title | The title of the notification |
| Body | The more detailed description of the notification |
| Action | The text to be displayed on the slider controller |
| ActivationEvent | A string that is passed in the delegate callback when the app is brought into the foreground from the user activating the notification |
| IdOverride | A int that is passed to pin the notification to an Id. By doing this it will only show the latest notification sent from that ID. |
Implemented in FAndroidLocalNotificationService, and FIOSLocalNotificationService.
|
pure virtual |
Schedule a local notification badge at a specific time, inLocalTime specifies the current local time or if UTC time should be used
| FireDateTime | The time at which to fire the local notification |
| LocalTime | If true the provided time is in the local timezone, if false it is in UTC |
| ActivationEvent | A string that is passed in the delegate callback when the app is brought into the foreground from the user activating the notification |
Implemented in FAndroidLocalNotificationService, and FIOSLocalNotificationService.
|
pure virtual |
Set the local notification that was used to launch the app
| ActivationEvent | Returns the name of the ActivationEvent if a notification was used to launch the app |
| FireDate | Returns the time the notification was activated |
Implemented in FAndroidLocalNotificationService, and FIOSLocalNotificationService.