FMX.Platform.IFMXScreenService.GetScreenOrientation

From RAD Studio API Documentation
Jump to: navigation, search

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

Portrait (or vertical) screen orientation.

Landscape

Landscape (or horizontal) screen orientation.

InvertedPortrait

Screen is in vertical orientation but upside down, with the device held upright and the home button at the top. (Under iOS)

InvertedLandscape

Screen is in horizontal orientation but upside down, with the device held upright and the home button at the left side. (Under iOS)


See Also