Index of Module camera - part-cw/lambdanative GitHub Wiki
Module: camera
Access the camera on Android, iOS and Blackberry devices.
Function | Short Description |
---|---|
(camera-start filename) | Launch the camera viewfinder and save photo to specified file |
(camera-start-video videofile) | Launch the video viewfinder and save video to specified file |
(camera-set-max-length-video l) | Set the maximum length of video to be recorded |
To use this module, add the following files to your app folder:
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="@[email protected]"
android:exported="false"
android:grantUriPermissions="true">
<!-- resource file to create -->
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths">
</meta-data>
</provider>
<?xml version="1.0" encoding="utf-8"?>
<paths>
<root-path name="root" path="." />
</paths>