private async void TakePhoto(object sender, EventArgs e) { if (cameraExists) { var videoConnection = stillImageOutput.ConnectionFromMediaType(AVMediaType.Video); var sampleBuffer = await stillImageOutput.CaptureStillImageTaskAsync(videoConnection); CaptureData = AVCaptureStillImageOutput.JpegStillToNSData(sampleBuffer); RatingMainViewController parentController = ParentViewController as RatingMainViewController; parentController?.ActivateSubmitting(); } }
private void RepeatPhoto(object sender, EventArgs e) { RatingMainViewController parentController = ParentViewController as RatingMainViewController; parentController?.ActivateCapture(); }