/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h
Returns the current orientation of the device: will be either Portrait, LandscapeLeft, PortraitUpsideDown or LandscapeRight.
An EDeviceScreenOrientation value.
static EDeviceScreenOrientation GetDeviceOrientation()