Skip to main content
Version: 1.6.0 and above

IDnowDocIDV

Main class of the IDnow DocIDV SDK. Use this class to start an identity verification session.

Properties​

PropertyTypeDescription
eventListenerIDnowDocIDVEventListener?Optional listener to receive SDK events

start(token:isRoutedSession:preferredLanguage:viewController:bindingKey:)​

Starts an identity verification session.

public func start(
token: String,
isRoutedSession: Bool = false,
preferredLanguage: String = "",
viewController: UIViewController,
bindingKey: String? = nil
) async throws(IDnowDocIDVError)

Parameters​

ParameterTypeRequiredDefaultDescription
tokenString✅—The session token, format XYZ-ABCDE
isRoutedSessionBool➖falseWhether the session is routed
preferredLanguageString➖""ISO 639-1 language code (e.g. "fr", "de")
viewControllerUIViewController✅—The presenting view controller
bindingKeyString?➖nilOptional key for device binding use cases

Returns​

This method is async and returns Void on success.

Throws​

Throws an IDnowDocIDVError on failure.

Example​

do {
try await IDnowDocIDV.shared.start(
token: "XYZ-ABCDE",
viewController: self
)
} catch {
print("Verification failed: \(error)")
}

Deprecated​

Deprecated

See Deprecated API for the callback-based version of this method.