doc
 All Classes Functions Variables Properties
Public Member Functions
<EMPhotoViewDelegate> Protocol Reference

#import <EMPhotoViewDelegate.h>

Inherited by EMPhotoViewController.

List of all members.

Public Member Functions

(void) - photoView:singleTapEndedOnPhotoWithIndex:
(void) - photoView:touchesBeganOnPhotoWithIndex:
(void) - photoView::
(void) - photoViewDidSlideRight:
(void) - photoViewDidSlideLeft:
(void) - photoView:didUpdateFromIndex:toIndex:

Detailed Description

The delegate of a EMPhotoView object must adopt the EMPhotoViewDelegate protocol. Optional methods of the protocol allow the delegate to manage user interactions such as tapping and double tapping.


Member Function Documentation

- (void) photoView: (EMPhotoView *)  photoView
didUpdateFromIndex: (NSInteger)  oldIndex
toIndex: (NSInteger)  newIndex 
[optional]

This is called on the delegate from a side thread

- (void) photoView: (EMPhotoView *)  photoView
singleTapEndedOnPhotoWithIndex: (NSInteger)  index 
[optional]

photoView:singleTapOnPhotoWithIndex:

Tells the delegate that the user tapped on the EMPhotoView associated with a given index. This method is optional.

One possible action the delegate could take in response to a tap on the photo-view by moving in and out of full screen mode.

Parameters:
photoViewThe photo-view object informing the delegate of this event.
indexthe index of the visible image in the photo-view.
Returns:
Returns the newly initialized date object or nil on error.

The documentation for this protocol was generated from the following file: