BuildIt.AR.iOS.Utilities.CameraFeedUtility.UpdatePreviewRotation C# (CSharp) Method

UpdatePreviewRotation() public method

public UpdatePreviewRotation ( UIInterfaceOrientation orientation ) : void
orientation UIInterfaceOrientation
return void
        public void UpdatePreviewRotation(UIInterfaceOrientation orientation)
        {
            //Re-size camera feed based on orientation
            if (previewLayer == null) return;
            previewLayer.Connection.VideoOrientation = configDicByRotationChanged[orientation];
            previewLayer.Frame = rootView.Bounds;
        }
    }