This service accesses the device's camera.
This service works only on devices
camera.js file in widget header right after the
This method will open the device's default camera application that allows users to snap pictures by default. It may also ask the user for permission to access the Camera if it hasn't previously.
|number||no||Quality of the saved image, expressed as a range of 0-100, where 100 is typically full resolution with no loss from file compression.||50|
|number||no||Choose the format of the return value. 0 for Data_URL, 1 for FILE_URI.||1|
|number||no||Set the source of the picture. "0 for PHOTOLIBRARY, 1 for CAMERA and 2 for SAVEDPHOTOALBUM".||1|
|boolean||no||Allows automatic upload of the captured image to pubilcFiles. The callback will return a url to the uploaded image. Setting this option to true will ignore destinationType.||false|
Callback function that provides the image data
|string||error string, |
|string||Image src or data uri, depending on |