source: extensions/piwigo_mobile/ios/www/js/cameraExtended.js @ 12411

Last change on this file since 12411 was 12411, checked in by patdenice, 13 years ago

Add piwigo mobile for iOS

File size: 654 bytes
Line 
1Camera.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.