Package 

Interface OnPhotoTapListener


  • 
    public interface OnPhotoTapListener
    
                        

    A callback to be invoked when the Photo is tapped with a single tap.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onPhotoTap(ImageView view, Float x, Float y) A callback to receive where the user taps on a photo.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onPhotoTap

         abstract Unit onPhotoTap(ImageView view, Float x, Float y)

        A callback to receive where the user taps on a photo. You will only receive a callback if the user taps on the actual photo, tapping on 'whitespace' will be ignored.

        Parameters:
        view - ImageView the user tapped.
        x - where the user tapped from the of the Drawable, as percentage of the Drawable width.
        y - where the user tapped from the top of the Drawable, as percentage of the Drawable height.