(recognizer: UIGestureRecognizer)
| 374 | } |
| 375 | |
| 376 | function getState(recognizer: UIGestureRecognizer) { |
| 377 | if (recognizer.state === UIGestureRecognizerState.Began) { |
| 378 | return GestureStateTypes.began; |
| 379 | } else if (recognizer.state === UIGestureRecognizerState.Cancelled || recognizer.state === UIGestureRecognizerState.Failed) { |
| 380 | return GestureStateTypes.cancelled; |
| 381 | } else if (recognizer.state === UIGestureRecognizerState.Changed) { |
| 382 | return GestureStateTypes.changed; |
| 383 | } else if (recognizer.state === UIGestureRecognizerState.Ended) { |
| 384 | return GestureStateTypes.ended; |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | function _getSwipeDirection(direction: UISwipeGestureRecognizerDirection): SwipeDirection { |
| 389 | if (direction === UISwipeGestureRecognizerDirection.Down) { |
no outgoing calls
no test coverage detected