
202 ◾ PhoneGap Build
e captureImageSuccess callback is called if the image is captured successfully. An array
of media file objects, each describing the captured image file(s), is passed to the callback. e media
file array supports the same properties, name, fullPath, type, lastModificationDate,
and size that we saw in the captureAudio() method.
e captureImageError callback is called if the capture process is canceled or some error
occurs while capturing the image. e captureOptions object defines the parameters to con-
figure image capturing—the same as we saw in the captureVideo() method.
e example given below captures an image using the dev ...