Home > @magiclane/maps-sdk > Orientation

Orientation class

Device orientation sensor data.

Combines multiple sensors (like accelerometer and magnetometer) to determine the absolute device orientation including screen rotation and face direction.

Sensor Data Source

Signature:

export declare class Orientation extends GemAutoreleaseObject implements SenseData 

Extends: GemAutoreleaseObject

Implements: SenseData

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Orientation class.

Properties

Property

Modifiers

Type

Description

acquisitionTime

readonly

Date

Acquisition time

face

readonly

FaceType

The face orientation of the device.

orientation

readonly

OrientationType

The rotational orientation of the device display.

type

readonly

DataType

Get data type

Methods

Method

Modifiers

Description

toJson()

Serialize to JSON