freshplanet / ANE-ImagePicker

Air Native Extension for mobile camera and gallery features (iOS + Android)
Apache License 2.0
80 stars 48 forks source link

Please document the displayCamera callback #30

Open GitFred14 opened 9 years ago

GitFred14 commented 9 years ago

Struggling with this for days.

The readme says to refer to the ASDOC for the displayCamera callback explanation, but no doc seems to be here.

Can you please just show the AS3 callback function & parms for displayCamera's callback?

I have the manifest set correctly and I can call the camera via the ANE. The camera displays and a photo can be taken. The photo even lands in the displayCamera supplied Album name ok.

However the callback (where one would actually DO something with the image) is never called.

I have tried this:

protected function onImagePicked(_status:String, _bmdData:BitmapData = null, _baData:ByteArray = null):void

and this:

protected function onImagePicked(_status:String, _mediaArgs:Array):void

... neither gets called upon saving the camera photo.

platform

. FlashPro CS6, pure AS3 . Android 4.2+ . latest ANE-ImagePicker

GitFred14 commented 9 years ago

22 days - waiting for a simple documentation of this.

Is this project still active? (if not -- can anyone recommend an alternative ANE?)

minimedj commented 9 years ago

@GitFred14 you should try your debugger to see what it does return and then implement code to handle that return data. I just did the same for other function of this ANE...