/Engine/Source/Runtime/Core/Public/Misc/App.h
Unattended applications are not monitored by anyone or are unable to receive user input. This method can be used to determine whether UI pop-ups or other dialogs should be shown.
true if the application runs unattended, false otherwise.
static bool IsUnattended()