[Windows] application lifecycle delegates

Hi guys! Is there any relevant application lifecycle delegates that we can use to capture windows entering background and entering foreground?

I tried all these, but none of them works on windows.

FCoreDelegates::ApplicationWillDeactivateDelegate
FCoreDelegates::ApplicationHasReactivatedDelegate
FCoreDelegates::ApplicationWillEnterBackgroundDelegate
FCoreDelegates::ApplicationHasEnteredForegroundDelegate

Unreal Engine: 5.3
Test Environment: Windows 10, Windows 11.

1 Like