Active Face Capture Activity
This activity is used to scan the user's face using an Active Face Capture session.
Properties
The camera provider future
The capture analyzer, which processes frames from the camera
Intent extra for password
Intent extra for QR code data
Intent extra to tell the activity to just return the image bytes
The number of completed actions
Functions
This method is used to bind the camera preview and make the capture analyzer process the frames from the camera. When called, this method will also create a new session and reset the UI. Any exception from the SDK will be caught and shown in the UI.
Called for an on device liveness check after the face capture session is complete
The camera provider future
The capture analyzer, which processes frames from the camera
The number of completed actions
The root view of the activity
The active face capture session
The vibrator service
Move to the next activity when the face capture session is complete
Called when the first frame is captured.
Called when there is an error while processing a frame
Called when a processing result is available for a camera frame
Reset the session
The camera provider future
The capture analyzer, which processes frames from the camera
The number of completed actions
The root view of the activity
The active face capture session
This method is used to set up the components in this activity.
This method is used to set up the listeners for the components in this activity.
The vibrator service
Show an error dialog to the user. It handles SenseCryptSdkException.LivenessFailed, SenseCryptSdkException.ExtremeHeadPoseDetected, and SenseCryptSdkException.CaptureSessionTimeOut via the UIHelper methods. It also handles unrecoverable errors via the UIHelper.processUnrecoverableError method. For recoverable errors, it shows a dialog using the showRecoverableErrorDialog method.
This method is used to show an error dialog in the UI thread. It ensures that the error dialog is shown on the main thread.
Show a dialog for a recoverable error
This method is used to start the camera preview.
Update animations based on the session state
Update circle color (the circle around the face) based on the Active Face Capture session state
Update instructions based on the Active Face Capture State
Update progress ticks based on the number of completed actions