cordova-plugin-camera
https://github.com/apache/cordova-plugin-camera
What
This plugin defines a global navigator.camera object, which provides an API for taking pictures and for choosing images from the system's image library.
Why
- Main driver for adding photos to inspections, service requests etc.
- Used in picking photos taken in gallery using the sourceType:
Camera.PictureSourceType.PHOTOLIBRARY
How
PhotoHandlerView.js has a handleGetPicture method that uses navigator.camera.getPicture to take a photo or choose one from the photo library.