FMX.Platform.IFMXScreenService.GetScreenOrientation
Delphi
function GetScreenOrientation: TScreenOrientation;
C++
virtual Fmx::Types::TScreenOrientation __fastcall GetScreenOrientation() = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Platform.pas FMX.Platform.hpp |
FMX.Platform | IFMXScreenService |
Description
Declares a method returning the screen orientation.
Implementations of GetScreenOrientation should return the screen orientation.
Possible return values are:
Constant | Meaning |
---|---|
|
Portrait (or vertical) screen orientation. |
|
Landscape (or horizontal) screen orientation. |
|
Screen is in vertical orientation but upside down, with the device held upright and the home button at the top. (Under iOS) |
|
Screen is in horizontal orientation but upside down, with the device held upright and the home button at the left side. (Under iOS) |