BuildItArSample.Android.MainActivity.UpdateCameraDisplayOrientation C# (CSharp) Method

UpdateCameraDisplayOrientation() private method

private UpdateCameraDisplayOrientation ( ) : void
return void
        private void UpdateCameraDisplayOrientation()
        {
            var angle = 0;
            switch (world.Rotation)
            {
                case Rotation.Rotation0:
                    angle = 90;
                    break;
                case Rotation.Rotation90:
                    break;
                case Rotation.Rotation180:
                    angle = 270;
                    break;
                case Rotation.Rotation270:
                    angle = 180;
                    break;
            }

            camera?.SetDisplayOrientation(angle);
        }