Defines a Camera action component.

This component helps taking a photo or capturing a video.
Supported platform(s):
• Android
• iOS
• Browser

You can access data from the next action in the chain in (TS) mode with:
• out: the picture taken


If running in browser always return a base64-encoded string, else contains the format specified in the options.
It uses the native Cordova camera plugin which provides an API for taking pictures and for choosing images from the system’s image library.
For more information : Camera.

Name Description
allowEdit Allow simple editing of image before selection.
arrowDir Direction the arrow on the popover should point. Defined in Camera.PopoverArrowDirection Matches iOS UIPopoverArrowDirection (only for iOS).
cameraDirection Choose the camera to use (front- or back-facing). Defined in Camera.Direction.
correctOrientation Rotate the image to correct for the orientation of the device during capture.
destinationType Choose the format of the return value. Defined in Camera.DestinationType. Default is FILE_URI. DATA_URL, Return image as base64-encoded string, FILE_URI, Return image file URI, NATIVE_URI, Return image native URI (e.g., assets-library:// on iOS or content:// on Android).
encodingType Choose the returned image file’s encoding. Defined in Camera.EncodingType. Default is JPEG. JPEG Return JPEG encoded image, PNG Return PNG encoded image.
height height (only for iOS).
mediaType Set the type of media to select from. Only works when PictureSourceType is PHOTOLIBRARY or SAVEDPHOTOALBUM. Defined in Camera.MediaType PICTURE: 0 allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType VIDEO allow selection of video only, WILL ALWAYS RETURN FILE_URI, ALLMEDIA allow selection from all media types.
quality Picture quality in range 0-100. Default is 80.
saveToPhotoAlbum Save the image to the photo album on the device after capture.
sourceType Set the source of the picture. Defined in Camera.PictureSourceType. Default is CAMERA. PHOTOLIBRARY, CAMERA, SAVEDPHOTOALBUM.
targetHeight Height in pixels to scale image. Must be used with targetWidth. Aspect ratio remains constant.
targetWidth Width in pixels to scale image. Must be used with targetHeight. Aspect ratio remains constant.
width width (only for iOS).
x abscissa (only for iOS).
y ordered (only for iOS).
Comment Describes the object comment to include in the documentation report. This property generally contains an explanation about the object.
Is active Defines whether the component is active.