public Camera() : base() { AVFoundation.AVCaptureVideoPreviewLayer captureVideoPreviewLayer = new AVFoundation.AVCaptureVideoPreviewLayer(session) { Frame = Bounds }; Layer.AddSublayer(captureVideoPreviewLayer); AVFoundation.AVCaptureDeviceInput input = new AVFoundation.AVCaptureDeviceInput(device, out Foundation.NSError error); if (input == null) { // Handle the error appropriately. Log(new Foundation.NSErrorException(error));//@"ERROR: trying to open camera: %@", } session.AddInput(input); session.StartRunning(); }