onGetPictureSuccess( filename, response ) method

User provided function that will be invoked when the hwc.getPicture function is successful.

Syntax

<static> onGetPictureSuccess( filename, response )

Parameters

Name Type Description
filename string file name of the image
response string the response will be either a Base64-encoded JPG string or a URI depending on the options passed to the hwc.getPicture function.
  • if options.destinationType == PictureOption.DestinationType.IMAGE_URI, response is an uniform reference identifier for the image. onGetPictureSuccess(fileName, imageURI)
  • if options.destinationType == PictureOption.DestinationType.IMAGE_DATA, response is a Base64-encoded string. onGetPictureSuccess(fileName, imageData )

Source

Camera.js, line 270.