LogoLogo
Useful links
  • Home
  • Product guides
  • API
  • SDKs
  • Overview
  • First steps
  • ANDROID
    • Getting Started with the SDK
    • Standalone Modules
      • Document Detector
        • Release Notes
        • Current Version
        • Requirements
        • Gradle Dependencies
        • Gradle Source Code
        • Setting up the SDK
          • Setting properties
          • Capture Stages
          • Messages Settings
          • Customization
          • Security Settings
          • Detection Steps
          • Upload Mode
          • Advanced Settings
            • Proxy configuration
            • Preview configuration
        • Start Document Detection
        • Source Code
        • Google security form
        • Reduce SDKs size
        • SDKs response
        • References
        • FAQ
      • Face Liveness
        • Release Notes
        • Current Version
        • Requirements
        • Gradle Dependencies
        • Gradle Source Code
        • SDK Lifecycle
        • Building the SDK
        • Start Liveness Verification
        • Source Code
        • References
        • Advanced Features
        • FAQ
      • Face Authenticator
        • Release Notes
      • Smart Auth
        • Release Notes
        • Current Version
        • Requirements
        • Gradle Dependencies
        • Gradle Source Code
        • Permissions
        • SDK Lifecycle
        • Building the SDK
        • Start Smart Authentication
        • Source Code
        • References
        • FAQ
      • Face Liveness (deprecated)
        • Release Notes
  • iOS
    • Getting Started with the SDK
    • Standalone Modules
      • Document Detector
        • Release Notes
        • Current Version
        • Requirements
        • Installing the SDK
        • Setting up the SDK
          • Setting properties
          • Messages Settings
          • Customization
          • Detection Steps
          • Upload Mode
          • Advanced Settings
            • Proxy configuration
            • Preview configuration
        • Start Document Detection
        • References
        • FAQ
      • Face Liveness
        • Release Notes
        • Installation
        • Current Version
        • Requirements
        • SDK Lifecycle
        • Building the SDK
        • Start Liveness Verification
        • Source Code
        • References
        • FAQ
      • Face Authenticator
        • Release Notes
        • Installation
        • Current Version
        • Requirements
        • Building the SDK
        • Start the SDK
        • References
        • FAQ
      • Smart Auth
        • Release Notes
        • Installation
        • Current Version
        • Requirements
        • SDK Lifecycle
        • Building the SDK
        • Start Smart Authentication
        • Source Code
        • References
        • FAQ
      • Face Liveness (deprecated)
        • Release Notes
  • REACT NATIVE
    • Standalone Modules
      • Document Detector
        • Release Notes
        • Current Version
        • Requirements
        • Installation
        • Hooks
        • Start Document Verification
        • Source Code
        • TypeScript References
        • Customizing Style
        • FAQ
      • Face Liveness
        • Release Notes
        • Current Version
        • Requirements
        • Installation
        • Hooks
        • Start Liveness Verification
        • Source Code
        • TypeScript References
        • FAQ
      • Face Authenticator
        • Release Notes
        • Current Version
        • Requirements
        • Installation
        • Hooks
        • Start Authentication Verification
        • Source Code
        • TypeScript References
        • FAQ
      • Smart Auth
        • Getting started
        • Release notes
        • Using Native Modules
          • Requirements
          • Gradle Source Code
          • Podfile Source Code
          • Native Module Android
          • Native Module iOS
          • Import Native Modules
          • Source Code
          • TypeScript References
          • FAQ
        • Using Expo Modules
          • Requirements
          • Create Local Expo Module
          • Gradle Source Code
          • Podspec Source Code
          • Native Module Android
          • Native Module iOS
          • Import Expo Modules
          • Source Code
          • TypeScript References
          • FAQ
  • WEB (JAVASCRIPT)
    • Standalone Modules
      • Document Detector
        • Getting started
        • SDK builder options
          • Analytics
          • Appearance
          • Messages
        • SDK methods
        • Event listeners
        • Customization
        • Release notes
      • Face Liveness
        • Customization
        • Release notes
      • Face Authenticator
        • Customization
        • Release notes
      • Smart Auth
        • SDK errors
        • Customization
        • Release notes
LogoLogo

2025 © Caf. - All rights reserved

On this page
  1. iOS
  2. Standalone Modules
  3. Document Detector
  4. Setting up the SDK

Setting properties

Parameter
Description
Required

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 1 month ago