Building a control for the iOS camera

Now that we have built the CameraView object in the Xamarin.Forms PCL, we are going to build the CustomRenderer for iOS. Jump into the Camera.iOS project and add a new folder called Renderers, and then add a new file called CameraiOS.cs and implement the following private properties:

public sealed class CameraIOS : UIView { #region Private Properties private readonly string _tag; private readonly ILogger _log; private readonly AVCaptureVideoPreviewLayer _previewLayer; private readonly AVCaptureSession _captureSession; private UIView _mainView; private AVCaptureDeviceInput _input; private AVCaptureStillImageOutput _output; private AVCaptureConnection _captureConnection; private AVCaptureDevice _device; private ...

Get Xamarin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.