VerIDSessionResult

@objc(VerIDSessionResult)
public class VerIDSessionResult : NSObject, Codable

Represents a result of face detection and authentication

  • Error produced by the session or nil if the session is successful

    Declaration

    Swift

    @objc
    public var error: Error?
  • URL of a video of the session. Only collected if the corresponding session settings had videoURL set.

    Declaration

    Swift

    @objc
    public var videoURL: URL?
  • Constructs a result with error

    Declaration

    Swift

    @objc
    public init(error: Error)

    Parameters

    error

    Error

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Detected faces

    Declaration

    Swift

    @objc
    public var faces: [RecognizableFace] { get }
  • Set of face bearings collected in the session

    Declaration

    Swift

    public var detectedBearings: Set<Bearing> { get }
  • Faces with given bearing

    Declaration

    Swift

    @objc
    public func faces(withBearing bearing: Bearing) -> [RecognizableFace]

    Parameters

    bearing

    Requested face bearing

    Return Value

    Array of faces