DisplayRotationHelper
Helper to track the display rotations. In particular, the 180 degree rotations are not notified by the onSurfaceChanged() callback, and thus they require listening to the android display events.
Constructors
Functions
Link copied to clipboard
Returns the aspect ratio of the GL surface viewport while accounting for the display rotation relative to the device camera sensor orientation.
Link copied to clipboard
Returns the rotation of the back-facing camera with respect to the display.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Records a change in surface dimensions.
Link copied to clipboard
Updates the session display geometry if a change was posted either by onSurfaceChanged call or by onDisplayChanged system callback.