DeviceOrientation

enumeration

Cambiar al Manual

Descripción

Describes physical orientation of the device as determined by the OS.

If device is physically situated between discrete positions, as when (for example) rotated diagonally, system will report Unknown orientation.

Variables

UnknownNo se puede determinar la orientación del dispositivo.
PortraitThe device is in portrait mode, with the device held upright and the home button at the bottom.
PortraitUpsideDownEl dispositivo está en modo portrait pero al revés, sostenido en posición vertical y con el botón home en la parte superior.
LandscapeLeftEl dispositivo está en modo landscape, sostenido en posición vertical y el botón home a la derecha.
LandscapeRightEl dispositivo está en modo landscape, sostenido en posición vertical y con el botón home a la izquierda.
FaceUpThe device is held parallel to the ground with the screen facing upwards.
FaceDownThe device is held parallel to the ground with the screen facing downwards.