ConstOpen the camera app to take a photo.
The photo as a PickedFile, or file: null if the user cancels.
Open the camera app to record a video.
OptionalmaxDurationSeconds?: numberOptional maximum length in seconds. Must be a positive integer.
The video as a PickedFile, or file: null if the user cancels. An error if
maxDurationSeconds is not a positive integer.
Android only for now. Requires the camera plugin to be enabled in the app configuration.
<img src> or <video src>.file: null.FileSaver.saveUrl if you need to keep it.
Camera plugin for taking photos and recording videos with the device camera.