PDF Long Press - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: PDF Long Press

PDF Long Press 1 year 1 month ago #12920

  • amitairos
  • amitairos's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi
I would like to enable text selection when long pressing on the PDF.
Setting a LongClickEventListener on the PDFLayoutView doesn't get called.
PDFView. has a "OnPDFLongPress " event, but it is deprecated.

How do I get this event?
Thanks

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

PDF Long Press 1 year 1 month ago #12925

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
you have to edit the onLongPress() event of PDFLayoutView

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

PDF Long Press 1 year 1 month ago #12926

  • amitairos
  • amitairos's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Thanks, but I am using Xamarin, and don't know how to edit the PDFLayoutView. How can I do this with Xamarin?

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

PDF Long Press 1 year 1 month ago #12928

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Currently this event is not exposed in Xamarin plugin, by Thursday we will update both Xamarin and Cordova plugins with a new version that exposes this event.

We will notify you as soon as it is published.

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

PDF Long Press 1 year 1 month ago #12929

  • amitairos
  • amitairos's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Thanks!

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

PDF Long Press 1 year 1 month ago #12946

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Xamarin plugin has been updated.
Now you can use the listener
PDFLayoutView.IPDFLayoutListener.OnLongPressed (int page, float x, float y);

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum