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 |
|---|---|---|---|
|
|
Date |
Acquisition time | |
|
|
The face orientation of the device. | ||
|
|
The rotational orientation of the device display. | ||
|
|
Get data type |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Serialize to JSON |