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 Cordova IOS, you have to uncomment XML parts about the cordova-plugin-camera permissions.
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.