CameraParams Constructor

constructor(outputDir: String? = null, tmpPrefix: String? = null, authority: String? = null, singleShot: Boolean = false, shotOnTap: Boolean = true, autoShotMode: Int = FrameObserver.Observation.CUTOUT_READY or FrameObserver.Observation.DEVICE_READY)

Parameters

  • outputDir — where captured pages are written.
  • tmpPrefix — prefix for the temporary files it creates.
  • authority — the authority of a FileProvider your application declares, used to hand results back as content:// URIs your app can grant. Leave it null and the results come back as plain file:// URIs instead, which other apps cannot open.
  • singleShot — true to return after one page instead of letting the user capture several
  • shotOnTap — true to capture when the user taps the preview.
  • autoShotMode — whether to capture automatically once the document is framed.
Top