Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components
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
UCLASS (ClassGroup=Utility, HideCategories=(Activation, "Components|Activation", Collision),
Meta=(BlueprintSpawnableComponent), MinimalAPI)
class UApplicationLifecycleComponent : public UActorComponent
Remarks
Component to handle receiving notifications from the OS about application state (activated, suspended, termination, etc).
Variables
| Type | Name | Description | |
|---|---|---|---|
| FApplicationLifetimeDelegate | ApplicationHasEnteredForegroundDelegate | Called when the application is returning to the foreground (reverse any processing done in the EnterBackground delegate) | |
| FApplicationLifetimeDelegate | ApplicationHasReactivatedDelegate | Called when the application has been reactivated (reverse any processing done in the Deactivate delegate) | |
| FApplicationStartupArgumentsDelegate | ApplicationReceivedStartupArgumentsDelegate | Called with arguments passed to the application on statup, perhaps meta data passed on by another application which launched this one. | |
| FApplicationLifetimeDelegate | ApplicationShouldUnloadResourcesDelegate | Called when the OS is running low on resources and asks the application to free up any cached resources, drop graphics quality etc. | |
| FApplicationLifetimeDelegate | 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). | |
| FApplicationLifetimeDelegate | 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) | |||
| FApplicationLifetimeDelegate | ApplicationWillTerminateDelegate | This may be called when the application is getting terminated by the OS. | |
| FOnLowPowerModeDelegate | OnLowPowerModeDelegate | Called when we are in low power mode. | |
| FOnTemperatureChangeDelegate | OnTemperatureChangeDelegate | Called when temperature level has changed, and receives the severity. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UApplicationLifecycleComponent
(
const FObjectInitializer& ObjectInitializer |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. | |
| void | OnUnregister () |
Called when a component is unregistered. |