KVCarouselGestureRecognizerDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | KVCarouselGestureRecognizer.h |
Tasks
Carousel boundaries and content
-
– recognizer:canChangeToResult:inDirection:Asks the delegate wether it can provide a result in a given direction. This method is optional. If not present,
YESis assumed. -
– recognizer:updateViewForResult:inDirection:Asks the delegate to update the view for a change in a direction.
Starting and stopping
-
– recognizer:willStartInDirection:Informs the delegate that the user is about to start panning the view.
-
– recognizer:didStartInDirection:Informs the delegate that the user did start panning the view.
-
– recognizer:willEndWithResult:inDirection:Informs the delegate that the user is about to end panning the view.
-
– recognizer:didEndWithResult:inDirection:Informs the delegate that the user did end panning the view.
Carousel events
-
– recognizer:expectedResultChangedTo:inDirection:Informs the delegate that the expected outcome of the panning has changed.
Instance Methods
recognizer:canChangeToResult:inDirection:
Asks the delegate wether it can provide a result in a given direction. This method is optional. If not present, YES is assumed.
- (BOOL)recognizer:(KVCarouselGestureRecognizer *)recognizer canChangeToResult:(KVCarouselResult)result inDirection:(KVCarouselDirection)directionParameters
- recognizer
Recognizer
- result
Result of change
- direction
Direction of change
Return Value
Return YES if changing is possible, NO if not possible.
Discussion
Asks the delegate wether it can provide a result in a given direction. This method is optional. If not present, YES is assumed.
Declared In
KVCarouselGestureRecognizer.hrecognizer:didEndWithResult:inDirection:
Informs the delegate that the user did end panning the view.
- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer didEndWithResult:(KVCarouselResult)result inDirection:(KVCarouselDirection)directionParameters
- recognizer
Recognizer
- result
End result of change
- direction
Direction of change
Discussion
Informs the delegate that the user did end panning the view.
Declared In
KVCarouselGestureRecognizer.hrecognizer:didStartInDirection:
Informs the delegate that the user did start panning the view.
- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer didStartInDirection:(KVCarouselDirection)directionParameters
- recognizer
Recognizer
- direction
Direction of change
Discussion
Informs the delegate that the user did start panning the view.
Declared In
KVCarouselGestureRecognizer.hrecognizer:expectedResultChangedTo:inDirection:
Informs the delegate that the expected outcome of the panning has changed.
- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer expectedResultChangedTo:(KVCarouselResult)result inDirection:(KVCarouselDirection)directionParameters
- recognizer
Recognizer
- result
Expected result of change
- direction
Direction of change
Discussion
Informs the delegate that the expected outcome of the panning has changed.
Declared In
KVCarouselGestureRecognizer.hrecognizer:updateViewForResult:inDirection:
Asks the delegate to update the view for a change in a direction.
- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer updateViewForResult:(KVCarouselResult)result inDirection:(KVCarouselDirection)directionParameters
- recognizer
Recognizer
- result
Result of change
- direction
Direction of change
Return Value
Return YES if changing is possible, NO if not possible.
Discussion
Asks the delegate to update the view for a change in a direction.
Declared In
KVCarouselGestureRecognizer.hrecognizer:willEndWithResult:inDirection:
Informs the delegate that the user is about to end panning the view.
- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer willEndWithResult:(KVCarouselResult)result inDirection:(KVCarouselDirection)directionParameters
- recognizer
Recognizer
- result
End result of change
- direction
Direction of change
Discussion
Informs the delegate that the user is about to end panning the view.
Declared In
KVCarouselGestureRecognizer.hrecognizer:willStartInDirection:
Informs the delegate that the user is about to start panning the view.
- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer willStartInDirection:(KVCarouselDirection)directionParameters
- recognizer
Recognizer
- direction
Direction of change
Discussion
Informs the delegate that the user is about to start panning the view.
Declared In
KVCarouselGestureRecognizer.h