예제 #1
0
        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();
            }
        }
예제 #2
0
 private CameraCollectionViewCell GetCameraCell()
 {
     return(CollectionView.GetCameraCell(LayoutConfiguration));
 }