Page 1 of 1

Change Event when Image modified

Posted: Sat Oct 22, 2016 1:29 am
by MarcusLancaster
Hi all.

Just wondered if there was an event available which I can listen for to tell me if an image has changed (either picked from the gallery, or a photo taken, or annotated etc). Can't see anything obvious in the documentation.

Apologies if I've missed something.

Cheers for now.

Marcus.

Re: Change Event when Image modified

Posted: Mon Oct 24, 2016 7:40 am
by tsupartono
HI Marcus,
The Image element will only post the image data to the server if there is any change (e.g. the user took a photo, or picked a photo from the gallery).
So you can tell if the image has changed by checking (in your RDML program) if the Image property is present (or Annotation.Image property for separate annotation image).

Re: Change Event when Image modified

Posted: Mon Oct 24, 2016 4:38 pm
by MarcusLancaster
Hi Tony.

Ah okay thank you for that info... but what if I'm OFFLINE and need to monitor for a change and run some JavaScript?

I guess I can check for a difference in blob size... but I need to do that in an event fired when I return from the taking / picking the image.

Is there an event available?

Cheers!

Marcus

Re: Change Event when Image modified

Posted: Mon Oct 24, 2016 4:47 pm
by tsupartono
Unfortunately there is no such event.
We can add it if it's required, let us know.