Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

PDF Long Press

More
IP: 192.168.0.71 8 years 3 months ago #12920 by amitairos
PDF Long Press was created by amitairos
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
More
IP: 192.168.0.71 8 years 3 months ago #12925 by Davide
Replied by Davide on topic PDF Long Press
Hi,
you have to edit the onLongPress() event of PDFLayoutView
More
IP: 192.168.0.71 8 years 3 months ago #12926 by amitairos
Replied by amitairos on topic PDF Long Press
Thanks, but I am using Xamarin, and don't know how to edit the PDFLayoutView. How can I do this with Xamarin?
More
IP: 192.168.0.71 8 years 3 months ago #12928 by nermeen
Replied by nermeen on topic PDF Long Press
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.
More
IP: 192.168.0.71 8 years 3 months ago #12929 by amitairos
Replied by amitairos on topic PDF Long Press
Thanks!
More
IP: 192.168.0.71 8 years 3 months ago #12946 by nermeen
Replied by nermeen on topic PDF Long Press
Xamarin plugin has been updated.
Now you can use the listener
Code:
PDFLayoutView.IPDFLayoutListener.OnLongPressed (int page, float x, float y);
Time to create page: 0.480 seconds
Powered by Kunena Forum