IDnowDocIDV
Main class of the IDnow DocIDV SDK. Use this class to start an identity verification session.
Properties
| Property | Type | Description |
|---|---|---|
| eventListener | IDnowDocIDVEventListener? | 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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| token | String | ✅ | — | The session token, format XYZ-ABCDE |
| isRoutedSession | Bool | ➖ | false | Whether the session is routed |
| preferredLanguage | String | ➖ | "" | ISO 639-1 language code (e.g. "fr", "de") |
| viewController | UIViewController | ✅ | — | The presenting view controller |
| bindingKey | String? | ➖ | nil | Optional 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.