JumioScanView
@MainActor
public final class JumioScanView : UIView, Jumio.View
A custom view to display the camera preview and enable scanning of a Jumio.Scan.Part
-
isShutterEnabledAsynchronousIndicates if a manual shutter button needs to be displayed
Declaration
Swift
@MainActor public var isShutterEnabled: Bool { get async } -
Indicates if camera switch button needs to be displayed
Declaration
Swift
@MainActor public var isSwitchEnabled: Bool { get } -
hasFlashAsynchronousIndicates if the current camera has a flash light
Declaration
Swift
@MainActor public var hasFlash: Bool { get async } -
Responsible for the
Jumio.CameraFacingof this scan viewDeclaration
Swift
@MainActor public var cameraFacing: Jumio.CameraFacing { get set } -
flashAsynchronousControls the flash light if available
Declaration
Swift
@MainActor public var flash: Bool { get async } -
Controls the image extraction of the camera feed
Declaration
Swift
@MainActor public var extraction: Bool { get set } -
Attach the scan view to
Jumio.Scan.PartafterJumio.Scan.Step.scanViewevent has been received to enable scanningDeclaration
Swift
@MainActor public func attach(scanPart: Jumio.Scan.Part)Parameters
scanPartJumio.Scan.Partinstance -
Takes picture for
Jumio.Scan.Mode.manualandJumio.Scan.Mode.faceManualDeclaration
Swift
@MainActor public func takePicture() -
Switches to the next camera
Declaration
Swift
@MainActor public func switchCamera() -
Resumes the camera feed
Declaration
Swift
@MainActor public func resume() -
Pauses the camera feed
Declaration
Swift
@MainActor public func pause() -
Enable or disable the flash
Declaration
Swift
@MainActor public func set(flash: Bool) -
Starts the camera extraction
Declaration
Swift
@MainActor public func startExtraction() -
Stops the camera extraction with the option to hide the camera preview.
Declaration
Swift
@MainActor public func stopExtraction(hidePreview: Bool)Parameters
hidePreviewBool
View on GitHub