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

TOPIC:

Select annotation programmatically 7 years 11 months ago #10587

  • fdelcaz
  • fdelcaz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
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

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

Select annotation programmatically 7 years 11 months ago #10588

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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.

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

Select annotation programmatically 7 years 11 months ago #10590

  • fdelcaz
  • fdelcaz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
Thanks. I was finally able to make this work looking at onSingleTapUp. :)

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

  • Page:
  • 1
Powered by Kunena Forum