Conforms to NSObject
Declared in KVCarouselGestureRecognizer.h

Overview

Protocol to be implemented by delegates of KVCarouselGestureRecognizer.

Tasks

Carousel boundaries and content

Starting and stopping

Carousel events

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)direction

Parameters

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.h

recognizer:didEndWithResult:inDirection:

Informs the delegate that the user did end panning the view.

- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer didEndWithResult:(KVCarouselResult)result inDirection:(KVCarouselDirection)direction

Parameters

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.h

recognizer:didStartInDirection:

Informs the delegate that the user did start panning the view.

- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer didStartInDirection:(KVCarouselDirection)direction

Parameters

recognizer

Recognizer

direction

Direction of change

Discussion

Informs the delegate that the user did start panning the view.

Declared In

KVCarouselGestureRecognizer.h

recognizer:expectedResultChangedTo:inDirection:

Informs the delegate that the expected outcome of the panning has changed.

- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer expectedResultChangedTo:(KVCarouselResult)result inDirection:(KVCarouselDirection)direction

Parameters

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.h

recognizer:updateViewForResult:inDirection:

Asks the delegate to update the view for a change in a direction.

- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer updateViewForResult:(KVCarouselResult)result inDirection:(KVCarouselDirection)direction

Parameters

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.h

recognizer:willEndWithResult:inDirection:

Informs the delegate that the user is about to end panning the view.

- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer willEndWithResult:(KVCarouselResult)result inDirection:(KVCarouselDirection)direction

Parameters

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.h

recognizer:willStartInDirection:

Informs the delegate that the user is about to start panning the view.

- (void)recognizer:(KVCarouselGestureRecognizer *)recognizer willStartInDirection:(KVCarouselDirection)direction

Parameters

recognizer

Recognizer

direction

Direction of change

Discussion

Informs the delegate that the user is about to start panning the view.

Declared In

KVCarouselGestureRecognizer.h