Skip to content

Index of Module camera

Peter Lewis edited this page Jan 12, 2023 · 4 revisions

Module: camera

Access the camera on Android, iOS and Blackberry devices.

Functions in this module:

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:

ANDROID_xml_services

<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/file_paths.xml

<?xml version="1.0" encoding="utf-8"?>
<paths>
  <root-path name="root" path="." />
</paths>
Clone this wiki locally