SessionHolder
public class SessionHolder
A instance of SessionHolder either holds a passive capture session or an active capture session.
-
The passive face capture session.
Declaration
Swift
var passiveCaptureSession: PassiveFaceCaptureSession? -
The active face capture session.
Declaration
Swift
var activeCaptureSession: ActiveFaceCaptureSession? -
Initializes the session holder with a passive capture session.
Declaration
Swift
init(passiveCaptureSession: PassiveFaceCaptureSession)Parameters
passiveCaptureSessionThe passive capture session to set.
-
Initializes the session holder with an active capture session.
Declaration
Swift
init(activeCaptureSession: ActiveFaceCaptureSession)Parameters
activeCaptureSessionThe active capture session to set.
-
Declaration
Swift
func getBestFrame() throws -> Data? -
Declaration
Swift
func checkLiveness() throws -
Generates a SensePrint QR code.
Throws
An error if the session is not defined.Declaration
Swift
func generateSensePrintQR(sensePrintGenration: GenerateSensePrintModel) throws -> DataParameters
requestThe SensePrint QR code request.
Return Value
The generated SensePrint QR code data.
-
Decrypts a SensePrint.
Throws
An error if the session is not defined.Declaration
Swift
func decryptSensePrint(decryptSensePrintModel: DecryptSensePrintModel) -> Result<DecryptedSensePrintData, SDKErrors>Parameters
passwordThe password for decryption.
sensePrintThe SensePrint data to decrypt.
Return Value
The decrypted SensePrint data.
-
Verifies a SensePrint.
Throws
An error if the session is not defined.Declaration
Swift
private func verifySensePrintInternal(request: SensePrintRawVerificationMobileRequest) throws -> DecryptedSensePrintDataParameters
requestThe SensePrint verification request.
Return Value
The decrypted SensePrint data.