Opens the device camera, allowing the user to take a photo.
The taken photo is stored in a temporary directory with an autogenerated unique identifier for its filename. If you need to save the photo in a persistent way, use the Move file flow function to move it to the user files directory.
If the Cancel button is pressed, the second output is triggered.
If taking the photo throws an error, the third output is triggered with the error.
Capture button label
Text label on the capture button.
Cancel button label
Text label on the cancel button.
Camera type to open, either front or back.
Number of outputs: 3
Object representing the captured photo file in the local filesystem.
Absolute local filesystem path representing the file location on the device, including the filename and extension. On web, this is created via the [`createObjectURL`](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) method.
MIME type of the file, if it could be determined.
Name of the file in the local filesystem, if applicable. Note that the filename and extension are included in the **Local path** property already.
Size of the file, in bytes.
Creation datetime of the file, if it can be determined.
Datetime when the file was last modified, if it can be determined.
Thrown when calling the native API resulted in an unknown error.