getUIRotation

function getUIRotation(outputOrientation: CameraOrientation, interfaceOrientation: CameraOrientation): number

Gets the signed rotation needed to keep UI elements upright relative to the Camera output orientation.

The result is normalized to the shortest cardinal rotation, with opposite orientations represented as 180.

On this page

No Headings