From 6.1 to 6.2
The migration guide provides information on the changes and updates that need to be considered while transitioning your codebase of the Face SDK from one version to another.
Mobile API
Android
1. The NotificationCallback interface has been moved to LivenessNotificationCallback. Update your code to reflect this change:
FaceSDK.Instance().startLiveness(context,
{
}, object : LivenessNotificationCallback() {
override fun onLivenessNotification(notification: LivenessNotification) {
}
})
FaceSDK.Instance().startLiveness(context, new LivenessCallback() {
@Override
public void onLivenessCompete(@NonNull LivenessResponse response) {
}
}, new LivenessNotificationCallback() {
@Override
public void onLivenessNotification(@NonNull LivenessNotification notification) {
}
});
2. Update the package names for Person DB:
com.regula.facesdk.request.personDb→com.regula.facesdk.request.personcom.regula.facesdk.model.results.personDb→com.regula.facesdk.model.results.person
iOS
1. The processStatusDelegate property of RFSFaceSDK instance has been deprecated. Use faceCaptureDelegate or livenessDelegate to handle processing status changes instead.
2. The version property of RFSFaceSDK instance has RFSFaceSDKVersion type now.
Before release 6.2:
let version = FaceSDK.service.version
Starting from release 6.2:
let version = FaceSDK.service.version?.api