Skip to main content
API Reference com.nianticspatial.nsdk

Orientation

Device orientation when capturing camera frames. Orientation affects how ARDK interprets camera data and poses. Ensure the correct orientation is set in [FrameData.screenOrientation] for accurate tracking and localization.

Declaration

enum class Orientation

Properties

NameTypeSummary
valueInt
-

Cases

NameTypeSummary
LANDSCAPE_LEFTLANDSCAPE_LEFT
Device rotated 90° counter-clockwise from portrait (landscape)
LANDSCAPE_RIGHTLANDSCAPE_RIGHT
Device rotated 90° clockwise from portrait (landscape)
PORTRAITPORTRAIT
Device held upright in portrait mode
PORTRAIT_UPSIDE_DOWNPORTRAIT_UPSIDE_DOWN
Device held upside-down in portrait mode
UNKNOWNUNKNOWN
Orientation is unknown or not yet determined