VerIDFactory

@objc
public class VerIDFactory : NSObject

Ver-ID environment factory

  • Delegate that will be called when the environment is created

    Declaration

    Swift

    @objc
    public weak var delegate: VerIDFactoryDelegate?
  • Face detection factory

    Declaration

    Swift

    @objc
    public var faceDetectionFactory: FaceDetectionFactory { get set }
  • Face recognition factory

    Declaration

    Swift

    @objc
    public var faceRecognitionFactory: FaceRecognitionFactory { get set }
  • User management factory

    Declaration

    Swift

    @objc
    public var userManagementFactory: UserManagementFactory
  • Constructor

    Declaration

    Swift

    @objc
    public init(userManagementFactory: UserManagementFactory)

    Parameters

    userManagementFactory

    User management factory instance

  • Constructor

    Declaration

    Swift

    public override convenience init()
  • Start creating Ver-ID instance

    The creation completion will be reported to the factory delegate.

    Declaration

    Swift

    @objc
    public func createVerID()
  • Create Ver-ID instance synchronously

    Note

    This may take up to a few seconds. Never call this method on the main thread.

    Since

    1.9.0

    Declaration

    Swift

    @objc
    public func createVerIDSync() throws -> VerID

    Return Value

    Instance of VerID

  • Create Ver-ID instance

    The creation completion will be reported to the factory delegate.

    Declaration

    Swift

    public func createVerID(completion: ((Result<VerID, Error>) -> Void)?)

    Parameters

    completion

    Optional callback when the creation succeeds.

  • Constructor

    Since

    1.10.0

    Declaration

    Swift

    @available(iOS 10.3, *)
    @objc
    convenience init(veridPassword: String)

    Parameters

    veridPassword

    Password to unlock Ver-ID identity p12 file

  • Constructor

    Since

    1.11.0

    Declaration

    Swift

    @available(iOS 10.3, *)
    @objc
    convenience init(identity: VerIDIdentity)

    Parameters

    identity

    Your app’s Ver-ID SDK identity created from credentials received after registering your app with Ver-ID