Amplify UI

Customization

Customize your FaceLivenessDetector

Start View

FaceLivenessDetectorView contains an initial (start) view with instructions and information about the Face Liveness check for the end user. By default, the start view is shown before the Face Liveness check. The start view can be disabled, allowing you to provide your own start view before FaceLivenessDetectorView is displayed in the app:

FaceLivenessDetectorView(
  sessionID: <session ID>,
  region: <region>,
  disableStartView: true,
  isPresented: $isPresentingLiveness,
  onCompletion: { result in
    switch result {
    case .success:
      // ...
    case .failure(let error):
      // ...
    default:
      // ...
    }
  }
)

Internationalization (I18n)

The text in FaceLivenessDetectorView is defined as string resources in the component's Localizable.strings file. These values can be translated/overwritten by following the instructions here.

Best Practices

  1. The get ready screen has been optimized for increasing the end user's success rate and we strongly discourage making any changes to that screen.
  2. We do not recommend modifying the countdown time, face fit timeout, and oval size, as they affect the security and accuracy of the Face Liveness check.

Amplify open source software, documentation and community are supported by Amazon Web Services.

© 2024 Amazon Web Services, Inc. and its affiliates. All rights reserved. View the site terms and privacy policy.

Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.