Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Detect user tap on PDF, and get its coordinates 6 years 11 months ago #12391

  • iosDeveloper
  • iosDeveloper's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi, I was trying to use RadaeePDF for my Android projects, but because there is no guides or examples, it is not clear at all how to do some things.

Could you please help me to understand how I can track user taps on PDF, and run a custom function each time user taps?

Thanks!

Please Log in or Create an account to join the conversation.

Detect user tap on PDF, and get its coordinates 6 years 11 months ago #12393

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
You can detect a single tap by implementing PDFLayoutListener.OnPDFBlankTapped or PDFLayoutListener.OnPDFAnnotTapped
You can detect a double tap by implementing PDFLayoutListener.OnPDFDoubleTapped
For examples on how these callbacks are used, please check PDFViewAct in the demo project.
If you need to detect more events, you can check PDFGestureListener in PDFLayoutView

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum