UPlatformEventsComponent

Component to handle receiving notifications from the OS about platform events.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "Components/PlatformEventsComponent.h"

Syntax

class UPlatformEventsComponent : public UActorComponent

Remarks

Component to handle receiving notifications from the OS about platform events.

Variables

Name Description

Public variable

FPlatformEventD...

 

PlatformChangedToLaptopModeDelegate

This is called when a convertible laptop changed into laptop mode.

Public variable

FPlatformEventD...

 

PlatformChangedToTabletModeDelegate

This is called when a convertible laptop changed into tablet mode.

Constructors

Name Description

Public function

UPlatformEventsComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

bool

 

IsInLaptopMode()

Check whether a convertible laptop is laptop mode.

Public function

bool

 

IsInTabletMode()

Check whether a convertible laptop is laptop mode.

Public function

bool

 

SupportsConvertibleLaptops()

Check whether the platform supports convertible laptops.

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

Name

Description

Public class

FPlatformEventDelegate

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss