code: function (successCallback, errorCallback, args) {
          var sourceType = args[2];
  
          if (sourceType != Camera.PictureSourceType.CAMERA) {
              takePictureFromFile(successCallback, errorCallback, args);
          } else {
              takePictureFromCamera(successCallback, errorCallback, args);
          }
      }
docs: args will contain : ...  it is an array, so be careful 0 quality:50, 1 destinationType:Camera.DestinationType.FILE_URI, 2 sourceType:Camera.PictureSourceType.CAMERA, 3 targetWidth:-1, 4 targetHeight:-1, 5 encodingType:Camera.EncodingType.JPEG, 6 mediaType:Camera.MediaType.PICTURE, 7 allowEdit:false, 8 correctOrientation:false, 9 saveToPhotoAlbum:false, 10 popoverOptions:null 11 cameraDirection:0