IDentitySDK

public class IDentitySDK

Documentation for the IDentitySDK.framework methods and parameter overrides.

  • List of known client-side framework names that should be allowed to load Add the names (e.g., “FridaDetector”) before calling initializeSDK.

    Declaration

    Swift

    public static var allowedSecurityFrameworks: [String]
  • Declaration

    Swift

    public class func setDevelopmentRelaxationSecret(_ secret: Int)
  • Declaration

    Swift

    public class func setScreenSecurityEnabled(_ enabled: Bool)
  • Declaration

    Swift

    public class func isScreenRecordingEnabled(_ enabled: Bool)
  • Whether the SDK was initialized with initializeSDK(offlineMode:). While this is true the SDK makes no network call of any kind and keeps no analytics or GTE data. Read-only: it can only become true in the Liveness flavor, and it is always false in every other flavor. Public only because the capture UI frameworks read it.

    Declaration

    Swift

    public private(set) static var isOfflineLivenessMode: Bool { get }
  • Declaration

    Swift

    public static var isInitialized: Bool { get }
  • Initializes the SDK for fully offline liveness detection. No network call is made, now or later.

    In offline mode the SDK uses only the models embedded in IDentityLivenessModels, and the key to decrypt them is embedded in the SDK. There is no login, no model download, no analytics and no GTE upload, and finalSubmit, customerEnrollBiometrics, customerVerification, identifyCustomer and genericApiCall return an error. Only liveFaceCheck (660) is available, and its result stays on the device.

    Calling initializeSDK(accessToken:...) afterwards returns the SDK to normal, online operation.

  • Initializes the IDentitySDK framework.

    Declaration

    Swift

    public class func initializeSDK(language: Language = .en,
                                    isGPSEnabled: Bool = true,
                                    geolocationRequired: Bool = false,
                                    isUpdateModelsData: Bool = true,
                                    accessToken: String,
                                    completion: @escaping ErrorCompletion)

    Parameters

    language

    User Interface Language. Default is en (English).

    isGPSEnabled

    set true / false to enable disbale location

    geolocationRequired

    Whether or not geolocation permission is required. Default is false.

    isUpdateModelsData

    Whether or not to download the latest SDK models after credential verification. Default is true.

    accessToken

    accessToken generated at user

    completion

    If Error? is nil, the SDK was initialized successfully.

Document Capture

XML Request

Helper Method

Get JSON String

Get XML Tags

ID Validation (20)

Live Face Check (660)

Enroll Biometric (175)

Customer Verification (105)

Customer Biometric Verification (185)

ID Validation and Face Match (10)

Enroll Customer with ID Validation (50)

SelfieCapture + IDCapture Methods

Document Capture

Voice Capture

  • Captures voice audio data.

    Declaration

    Swift

    public class func voiceCapture(from presenter: UIViewController, completion: @escaping VoiceCaptureCompletion)

    Parameters

    presenter

    UIViewController to present the flow from.

    completion

    Returns an audio file URL.