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

TOPIC:

PDF Long Press 6 years 6 months ago #12920

  • amitairos
  • amitairos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 6 years 6 months ago #12925

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • 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 6 years 6 months ago #12926

  • amitairos
  • amitairos's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 6 years 6 months ago #12928

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 6 years 6 months ago #12929

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

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

PDF Long Press 6 years 6 months ago #12946

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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