CameraPlugin

getPhoto

getPhoto(options: CameraOptions): Promise<CameraPhoto>
Prompt the user to pick a photo from an album, or take a new photo with the camera.
options CameraOptions
Returns: Promise<CameraPhoto>
interface CameraOptions {
// Whether to allow the user to crop or make small edits (platform specific)
allowEditing ?: boolean
// The quality of image to return as JPEG, from 0-100
quality ?: number
// How the data should be returned. Currently, only base64 is supported
resultType : undefined
// Whether to save the photo to the gallery/photostream
saveToGallery ?: boolean
}
interface CameraPhoto {
base64_data : string
format : string
}