UApplicationLifecycleComponent

Component to handle receiving notifications from the OS about application state (activated, suspended, termination, etc).

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UActorComponent

UApplicationLifecycleComponent

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/ApplicationLifecycleComponent.h

Include

#include "Components/ApplicationLifecycleComponent.h"

Syntax

class UApplicationLifecycleComponent : public UActorComponent

Remarks

Component to handle receiving notifications from the OS about application state (activated, suspended, termination, etc).

Variables

Name Description

Public variable

FApplicationLif...

 

ApplicationHasEnteredForegroundDelegate

Called when the application is returning to the foreground (reverse any processing done in the EnterBackground delegate)

Public variable

FApplicationLif...

 

ApplicationHasReactivatedDelegate

Called when the application has been reactivated (reverse any processing done in the Deactivate delegate)

Public variable

FApplicationSta...

 

ApplicationReceivedStartupArgumentsDelegate

Called with arguments passed to the application on statup, perhaps meta data passed on by another application which launched this one.

Public variable

FApplicationLif...

 

ApplicationShouldUnloadResourcesDelegate

Called when the OS is running low on resources and asks the application to free up any cached resources, drop graphics quality etc.

Public variable

FApplicationLif...

 

ApplicationWillDeactivateDelegate

This is called when the application is about to be deactivated (e.g., due to a phone call or SMS or the sleep button).

Public variable

FApplicationLif...

 

ApplicationWillEnterBackgroundDelegate

This is called when the application is being backgrounded (e.g., due to switching to another app or closing it via the home button) The game should release shared resources, save state, etc..., since it can be terminated from the background state without any further warning.

Public variable

FApplicationLif...

 

ApplicationWillTerminateDelegate

This may be called when the application is getting terminated by the OS.

Public variable

FOnLowPowerMode...

 

OnLowPowerModeDelegate

Called when we are in low power mode.

Public variable

FOnTemperatureC...

 

OnTemperatureChangeDelegate

Called when temperature level has changed, and receives the severity.

Constructors

Name Description

Public function

UApplicationLifecycleComponent

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

OnRegister()

Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.

Public function Virtual

void

 

OnUnregister()

Called when a component is unregistered.

Classes

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback