public void DidEndDisplayingCameraCell(CameraCollectionViewCell cell) { var isRecordingVideo = _captureSession.VideoCaptureSession?.IsRecordingVideo ?? false; //suspend session only if not recording video, otherwise the recording would be stopped. if (isRecordingVideo == false) { _captureSession.Suspend(); DispatchQueue.MainQueue.DispatchAsync(() => cell.BlurIfNeeded(false, null)); } }
public void Release() { PHPhotoLibrary.SharedPhotoLibrary.UnregisterChangeObserver(this); _captureSession?.Suspend(); Console.WriteLine($"DismissViewController: describing: {nameof(ImagePickerController)}"); }