JumioScanView

class JumioScanView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyle: Int = 0) : CameraScanView

A custom view to display the camera preview and enable scanning of a JumioScanPart.

Parameters

context

Context: The Context the view is running in, through which it can access the current theme, resources, etc.

attrs

AttributeSet: The attributes of the XML tag that is inflating the view. This value may be null.

defStyle

Int: An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyle: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override var cameraFacing: JumioCameraFacing

Is responsible for the JumioCameraFacing of this scan view

Link copied to clipboard
open override var extraction: Boolean

Controls the image extraction of the camera feed

Link copied to clipboard

Controls the flash light if available

Link copied to clipboard
open override val hasFlash: Boolean

Indicates if the current camera has a flash light

Link copied to clipboard
open override val hasMultipleCameras: Boolean

Indicates if more than one camera is available

Link copied to clipboard
open override val isShutterEnabled: Boolean

Indicates if a manual shutter button needs to be displayed

Link copied to clipboard
open override val minRatio: Float

Minimal ratio based on the current mode

Link copied to clipboard
var mode: Int

Current mode of this view - either MODE_ID or MODE_FACE

Link copied to clipboard
open override var ratio: Float

Current ratio for this view if no absolute values are used

Functions

Link copied to clipboard
open override fun attach(scanPart: JumioScanPart)

Attach a scanPart to this scan view after JumioScanStep.SCAN_VIEW event has been received to enable scanning.

Link copied to clipboard
open override fun pause()

Pauses the camera feed.

Link copied to clipboard
open override fun resume()

Resumes the camera feed.

Link copied to clipboard
open override fun switchCamera()

Switches to the next camera.

Link copied to clipboard
open override fun takePicture()