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();
            }
        }
示例#2
0
        private void RepeatPhoto(object sender, EventArgs e)
        {
            RatingMainViewController parentController = ParentViewController as RatingMainViewController;

            parentController?.ActivateCapture();
        }