#include <screen/YiScreenProperty.h>
Public Member Functions | |
CYIScreenProperty ()=delete | |
Static Public Member Functions | |
static bool | IsLandscape (CYIScreenProperty::Orientation orientation) |
static bool | IsPortrait (CYIScreenProperty::Orientation orientation) |
static bool | IsAuto (CYIScreenProperty::Orientation orientation) |
|
strong |
|
strong |
Enumerator | |
---|---|
Landscape | Force device to landscape mode. App can rotate between landscape orientations. |
Portrait | Force device to portrait mode. App can rotate between portrait orientations. |
Auto | App can rotate between all available orientations. Where capable, this setting will respect user orientation preferences. Due to differences in the underlying platform APIs, this setting behaves slightly differently on iOS vs Android. |
LandscapeRight | Force device to landscape right. App cannot rotate. |
LandscapeLeft | Force device to landscape left. App cannot rotate. |
PortraitUpright | Force device to portrait upright. App cannot rotate. |
AutoUpright | App can rotate between available orientations, but not upside-down. Due to differences in the underlying platform APIs, this setting behaves slightly differently on iOS vs Android. |
|
strong |
|
delete |
|
inlinestatic |
returns true if orientation is an auto type.
|
inlinestatic |
returns true if orientation is a landscape type.
|
inlinestatic |
returns true if orientation is a portrait type.