PassiveFaceLiveness (Deprecated)
Plugin that calls native SDKs in Android and iOS.
Importing
Using
General customizations
PassiveFaceLiveness |
CPF of the user who is using the plugin to be used for fraud detection via analytics |
Enables/disables data collection for maximizing anti-fraud information. Default is |
Enables/disables sounds. Default is |
Changes the default network settings. The default is |
Preview for checking photo quality |
Customizations only applied on Android |
Customizations only applied on iOS |
ShowPreview |
If you want to customize the values, create a String in |
Preview Enable/Disable |
Title |
subtitle |
Texto do botĆ£o de confirmaĆ§Ć£o |
Retrieve Capture Button Text |
Android
PassiveFaceLivenessAndroidSettings constructor |
Customization of the activity's Android layout |
Stabilization time settings for capturing the selfie |
Customization of the capture sensor settings |
Changes the time for displaying the manual capture button. The default is |
PassiveFaceLivenessCustomizationAndroid constructor |
Name of the style resource that defines the colors of the SDK. For example, if you want to change the SDK colors, create a style in |
Name of the resource layout that will replace the default SDK layout. For example, if you want to change the SDK layout, create a layout in |
Name of the drawable resource to replace the default green mask. If you are going to use this parameter, use a mask with the same cutting area, it is important for the detection algorithm. For example, save the mask image in |
Name of the drawable resource to replace the default red mask. If you are going to use this parameter, use a mask with the same cutting area, it is important for the detection algorithm. For example, save the mask image in |
Name of the drawable resource to replace the default white mask. If you are going to use this parameter, use a mask with the same cutting area, it is important for the detection algorithm. For example, save the mask image in |
CaptureSettings constructor |
Duration in milliseconds between the first face detection and the actual photo capture |
Duration in milliseconds between capturing the photo and sending it to the server to keep the face and sensors valid |
SensorSettingsAndroid constructor |
Orientation sensor settings to be applied in all SDK steps |
SensorStabilitySettingsAndroid constructor |
Name of the string resource to be shown when the phone is not stable. The default message is "Keep cell phone still". For example, if you want to show the String "Test", create a String in |
How many milliseconds the cell phone must stay at the correct threshold to be considered stable. The default is |
Lower threshold between stable/unstable, in m/sĀ² variation between the last two sensor collections. The default is |
iOS
PassiveFaceLivenessIosSettings constructor |
SDK visual customization |
Duration in milliseconds between the first face detection and the actual photo capture |
Stability sensor settings to be applied in the SDK |
PassiveFaceLivenessCustomizationIos constructor |
SDK theme color. For example, if you want to use the color black, use "#000000". |
Name of the image to replace the default green mask. Remember to add the image in |
Name of the image to replace the default white mask. Remember to add the image in |
Name of the image to replace the default red mask. Remember to add the image in |
Name of the image to replace the SDK close button. Remember to add the image in |
Flag indicating whether to show the label of the current step |
Flag indicating whether to show the current status label |
SensorStabilitySettingsAndroid constructor |
String to be shown when the cell phone is not stable |
Lower threshold between stable/unstable, in m/sĀ² variation between the last two sensor collections. The default is |
Collecting the result
The DocumentDetector return object will have the result
attribute that contains a string SUCCESS
, FAILURE
or CLOSED
. The return will default to PassiveFaceLivenessSuccess, PassiveFaceLivenessFailure and PassiveFaceLivenessClosed, respectively, for each of the cases.
PassiveFaceLivenessSuccess
Field | |
Full address of the image on the device | |
URL of the image temporarily stored on CAF servers | |
Signed response from the CAF server which confirmed that the captured selfie has a real face (not a photo or video). Use this parameter if you want an extra layer of security by checking that the signature of the response is not broken, caused by an intercepted request. If it is broken, there is a strong indication of request interception | |
Identifier of this execution on our servers. If possible, save this field and send it along to our API. This will give us more data about how the user behaved during the execution | Will be null if the user sets |
PassiveFaceLivenessFailure
Field |
Friendly message explaining why the SDK failed |
Fault type that shut down the SDK |
The existing fault types are:
InvalidTokenReason
: when the token entered is invalid. It should not occur in a production environment;PermissionReason
: when some mandatory permission was not granted by the user. It will only happen in a production environment if your app does not ask your user or the user manually disables it before starting;NetworkReason
: server connection failure. Will occur in production if the user's device is without internet;ServerReason
: failure in some request with our servers. It will occur in production only in case of our failure;SecurityReason
: when the device is not safe to run the SDK. If this failure occurs, let us know;StorageReason
: when the device does not have enough space to capture some photo. This can happen in production;LibraryReason
: when some internal failure made it impossible to run the SDK. It can occur due to configuration errors in the project, it should not occur in production;
PassiveFaceLivenessClosed
Empty object indicating closure of the capture screen by the user.
Last updated