Skip to content

Z.Orientation

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

enum Orientation { LANDSCAPE, PORTRAIT, LANDSCAPEINVERTED, PORTRAITINVERTED }

The orientation of the device. The Zappar platform does not automatically modify the coordinate systems or display of a zap as a result of changes in orientation. Thus it is necessary to use Accelerometer states to modify a zap’s user interface to better suit the device’s current orientation when it changes.

MemberDescription
LANDSCAPEThe default orientation, for devices that have a dominant portrait orientation (such as the iPhone) landscape is defined such that the bottom of the device is on the right hand side.
PORTRAITRotated 90 degrees clockwise from landscape.
LANDSCAPEINVERTEDRotated 180 degrees from landscape.
PORTRAITINVERTEDRotated 180 degrees from portrait.