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

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