UApplicationLifecycleComponent

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UActorComponent

UApplicationLifecycleComponent

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

References

Module

Engine

Header

Runtime/Engine/Classes/Components/ApplicationLifecycleComponent.h