Optional allow1.0.0
Optional correctWhether to automatically rotate the image "up" to correct for orientation in portrait mode @default: true
1.0.0
Optional directioniOS and Web only: The camera direction. @default: CameraDirection.Rear
1.0.0
Optional heightThe desired maximum height of the saved image. The aspect ratio is respected.
1.0.0
Optional presentationiOS only: The presentation style of the Camera. @default: 'fullscreen'
1.0.0
Optional promptText value to use when displaying the prompt. iOS only: The label of the 'cancel' button. @default: 'Cancel'
1.0.0
Optional promptText value to use when displaying the prompt. @default: 'Photo'
1.0.0
Optional promptText value to use when displaying the prompt. The label of the button to select a saved image. @default: 'From Photos'
1.0.0
Optional promptText value to use when displaying the prompt. The label of the button to open the camera. @default: 'Take Picture'
1.0.0
Optional qualityThe quality of image to return as JPEG, from 0-100 Note: This option is only supported on Android and iOS
1.0.0
How the data should be returned. Currently, only 'Base64', 'DataUrl' or 'Uri' is supported
1.0.0
Optional saveWhether to save the photo to the gallery. If the photo was picked from the gallery, it will only be saved if edited. @default: false
1.0.0
Optional sourceThe source to get the photo from. By default this prompts the user to select either the photo album or take a photo. @default: CameraSource.Prompt
1.0.0
Optional webWeb only: Whether to use the PWA Element experience or file input. The
default is to use PWA Elements if installed and fall back to file input.
To always use file input, set this to true.
Learn more about PWA Elements: https://capacitorjs.com/docs/web/pwa-elements
1.0.0
Optional widthThe desired maximum width of the saved image. The aspect ratio is respected.
1.0.0
Whether to allow the user to crop or make small edits (platform specific). On iOS 14+ it's only supported for CameraSource.Camera, but not for CameraSource.Photos.