incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <>
Subject Re: Passing parameters to camera.getPicture instead of object -WHY?
Date Tue, 03 Apr 2012 20:51:11 GMT
It got changed because each platform implementation did it differently. So
one approach had to be axed (iOS options object) and another adopted
(Android parameter array).

As I brought up in the other thread, I like the options approach better.
Clearer on the JS side IMO. If there's consensus on the topic of what
approach the exec() method should employ, then we can slate the switch in
1.7 or 1.8 - would be pretty easy.

On 4/3/12 1:44 PM, "Becky Gibson" <> wrote:

>Somehow I missed this change in unified JS. Why are we now passing an
>of parameters to getPicture rather than an options object?   By passing
>object, we allowed people to easily extend the getPicture api by just
>adding their new option into an options object and modifying their copy of
>the device specific camera implementation. They did not have to modify the
>PhoneGap/Cordova.js implementation (at least on the iOS side).  Now, in
>order to add a new parameter to getPicture, you need to modify the JS as
>well to pass yet another parameter into getPicture - the list is already
>long and we have lost some of the iOS options that were available.
>curious minds are a dangerous thing......

View raw message