Using the Camera.js file, you can take a picture from the camera, or pick one from the photolibrary and use the picture in the mobile workflow.
getPicture Function
The Camera.js file contains the getPicture function, which provides access to the device's default camera application for retrieving a picture asynchronously.