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

Select annotation programmatically

More
9 years 8 months ago #10587 by fdelcaz
How can I select annotation programatically? ïm trying to use OnPDFAnnotTapped but it calls the var of the controller. I just want it to perform the same behaviour as if the user clicked the annotation

Help please

Thanks
More
9 years 8 months ago #10588 by Davide
Hi,
no there are no direct api to achieve this.
You can implement these features by yourself, I suggest you to take OnPDFSingleTapped as example.
You can iterate through the annotation with page.getAnnot() into a loop, then check the annot type with m_annot.GetType, m_annot.GetEditType(), m_annot.GetFieldType() or others and then handle them following the OnPDFSingleTapped example.
More
9 years 8 months ago #10590 by fdelcaz
Thanks. I was finally able to make this work looking at onSingleTapUp. :)
Time to create page: 0.492 seconds
Powered by Kunena Forum