VerIDSession

@objc
public class VerIDSession : NSObject, VerIDViewControllerDelegate

Base class for Ver-ID sessions

  • Describes the outcome of the session

    See more

    Declaration

    Swift

    @objc
    public enum Outcome : Int, Codable
  • Settings for the session. The settings can only be set at initialization. The individual setting values can be modified before the session starts.

    Declaration

    Swift

    @objc
    internal(set) public var settings: VerIDSessionSettings
  • The session delegate that receives the outcome of the session and its individual face detection results.

    Declaration

    Swift

    @objc
    public var delegate: VerIDSessionDelegate?
  • Session identifier. Useful if you have a single delegate handling multiple sessions and you need to distinguish between them.

    Declaration

    Swift

    @objc
    public let identifier: Int
  • Session initializer.

    Declaration

    Swift

    @objc
    public override init()

    Parameters

    settings

    Session settings. May only be set at initialization.

  • Start the session.

    Declaration

    Swift

    @objc
    public func start()
  • Cancel (stop) the session. session(_:didFinishWithOutcome:) will be called on your delegate with the outcome value set to .cancel.

    Declaration

    Swift

    @objc
    public func cancel()