Camera Integration
Camera SupportCamera integration is only available when viewing a Market App inside of the Maven mobile application.
Market Apps can be integrated into Maven's camera system to allow drivers to take images or document scans from within a Market App. This can be accomplished by adding an <input type="file" /> into your webpage.
Take an Image
Add an input to your HTML
<input
  style="button"
  id="cameraInputButton"
  type="file"
  accept="image/*"
  capture="environment"
/>The important parts here are type="file" and accept="image/^. The Maven application will intercept the request to open a file of type image and open up the built in camera experience.
Take a Document Scan
Add an input to your HTML
<input
  style="button"
  id="cameraInputButton"
  type="file"
  accept="image/*, .mavenScan"
  capture="environment"
/>The important parts here are type="file" and accept="image/^, .mavenScan. The Maven application will intercept the request to open a file of type image and open up the built in camera experience. Appending .mavenScan tells the app to perform a document scan instead of a regular image.
In both cases, the app will return an image file that your Market App can manipulate as you see fit.
Updated 9 months ago
