Setting properties
mobileToken: String
Token associated with your account, to use the SDK.
β
enableMultiLanguage: Bool
Enables/disables multi-language support. Default: enabled.
β
setPersonId(personId: String?)
User identifier for fraud profile identification purposes and to assist in the identification of Analytics logs in cases of bugs and errors.
β
setDocumentCaptureFlow(flow: [DocumentDetectorStep])
Defines the document capture flow as explained.
β
setPopupSettings(show: Bool)
Enables/disables the popups displayed before each document capture. Default: true.
β
setLayout(layout: DocumentDetectorLayout)
Allows overriding the default SDK layout attributes such as buttons, colors, and fonts.
β
setNetworkSettings(requestTimeout: TimeInterval)
Defines SDK's requests timeout. Default: 60 seconds.
β
setLuminositySensorSettings(luminosityThreshold: Float?)
Defines the threshold between acceptable/unacceptable ambient brightness. Default: -3.
β
setOrientationSensorSettings(orientationThreshold: Double?)
Defines the threshold between correct/incorrect device orientation. Higher values make it more flexible. Default: 0.3.
β
setStabilitySensorSettings(stabilityThreshold: Double?)
Defines stability sensor settings. Default: 0.3.
β
setProxySettings(proxySettings: CafProxySettings?)
Defines proxy settings. Default: null.
β
showPreview(show: Bool, title: String?, subtitle: String?, confirmLabel: String?, retryLabel: String?)
Enables/disables and configures the visualization of the performed capture, requesting the user's confirmation to proceed. Default: false.
β
setMessageSettings(messageSettings: MessageSettings)
Customizes messages displayed in the feedback label during the capture and analysis process.
β
setCompressSettings(compressionQuality: CGFloat)
Configures the quality in the compression process. Expects values between 0.8 and 1.0. Default: 0.9.
β
setManualCaptureSettings(enable: Bool, time: TimeInterval)
Enables/disables manual capture. For iPhone X and below, manual capture is the default and only setting.
β
setGetImageUrlExpireTime(expireTime: String)
Sets the time the image URL will last on the server until it expires. Accepts intervals like 30m, 24h, 10d. Default: 3h.
β
setCurrentStepDoneDelay(currentStepDoneDelay: TimeInterval)
Delays the activity after the completion of each step. Default: false.
β
setUploadSettings(uploadSettings: CafUploadSettings)
Configures document upload settings. The SDK flow will prompt the user to upload the document files instead of capturing them. Default: disabled.
β
setResolutionSettings(resolution: CafResolution)
Allows you to set the capture resolution. Options: FULL_HD (1920 x 1080), ULTRA_HD (3840 x 2160). Default: FULL_HD.
β
setAllowedPassportList(passportList: [CafCountryCodes])
Restricts accepted passports to specific issuing countries. Default: all countries.
β
Last updated

