picture.add Event

Fired when a photo is added to the application's picture list


This event is fired in response to a takePicture or importPicture method once a photo is available to the application in the picture list.

The event is returned with two parameters.

Parameter Purpose
success This parameter returns a true or a false depending on whether the photo was successfully captured or not.
filename The filename of the image in the picture list.

Once an image has been added to the picture list, it can be referenced in an application using camera.getPictureURL and passing its filename. The entire list of available images file names can be accessed using camera.getPictureList.
For more complete information about compiler optimizations, see our Optimization Notice.