private void TapGestureRecognized(UIGestureRecognizer sender) { if (sender.State != UIGestureRecognizerState.Ended) { return; } var cameraCell = CollectionView.GetCameraCell(LayoutConfiguration); if (cameraCell == null) { return; } var point = sender.LocationInView(cameraCell); if (cameraCell.TouchIsCaptureEffective(point)) { _cameraCollectionViewCellDelegate.TakePicture(); } }
private CameraCollectionViewCell GetCameraCell() { return(CollectionView.GetCameraCell(LayoutConfiguration)); }