Line | |
---|
1 | Camera.prototype.getResizedPicture = function(successCallback, errorCallback, options) { |
---|
2 | |
---|
3 | if (OSCode != 'IPH') { |
---|
4 | return this.getPicture(successCallback, errorCallback, options); |
---|
5 | } |
---|
6 | |
---|
7 | // successCallback required |
---|
8 | if (typeof successCallback != "function") { |
---|
9 | console.log("Camera Error: successCallback is not a function"); |
---|
10 | return; |
---|
11 | } |
---|
12 | |
---|
13 | // errorCallback optional |
---|
14 | if (errorCallback && (typeof errorCallback != "function")) { |
---|
15 | console.log("Camera Error: errorCallback is not a function"); |
---|
16 | return; |
---|
17 | } |
---|
18 | |
---|
19 | PhoneGap.exec(successCallback, errorCallback, "com.phonegap.cameraExtended","getPicture",[options]); |
---|
20 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.