2.1.1.2.2 Initialize
Overview
Before using VerifySpeed's verification features, you need to initialize the Pod Library with your client key, then get available verification methods.
Get started
- Setup Requirements: Follow the basic setup instructions.
Import VerifySpeed
swift
import VerifySpeed_IOS
Initializing VerifySpeed
To start using VerifySpeed, set your client key:
swift
// Set your client key
VerifySpeed.shared.setClientKey("YOUR_CLIENT_KEY")
Get available verification methods
After setting your client key, you can get available verification methods. The initialize()
method returns a [MethodModel]
where each MethodModel
contains:
methodName
: The identifier used for verificationdisplayName
: A human-readable name for the method
swift
// Get available verification methods
try VerifySpeed.shared.initialize { methods in
// Use the methods to display available verification methods
}