Skip to content

Commit

Permalink
add changes for selecting challenge type
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisabhash committed May 8, 2024
1 parent c32a58b commit ddfb1eb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,14 @@ class FaceLivenessDetectionViewModel: ObservableObject {
try livenessService?.initializeLivenessStream(
withSessionID: sessionID,
userAgent: UserAgentValues.standard().userAgentString,
// both challenges enabled, rekognition will decide
challenges: FaceLivenessSession.supportedChallenges,

// light challenge enabled
//challenges: [.init(version: "2.0.0", type: .faceMovementAndLightChallenge)],

// no light challenge enabled
//challenges: [.init(version: "1.0.0", type: .faceMovementChallenge)],
options: .init(
attemptCount: Self.attemptCount,
preCheckViewEnabled: isPreviewScreenEnabled)
Expand Down

0 comments on commit ddfb1eb

Please sign in to comment.