Orientation Sensor

The AbsoluteOrientationSensor and RelativeOrientationSensor APIs describe the physical orientation of a device in three-dimensional space, either in relation to the Earth’s coordinate system or in relation to the device’s own orientation, respectively.