The guides below are provided to ease the transition of existing applications using the Onfido SDK from one version to another that introduces breaking API changes.
If your migration involves upgrading across multiple SDK versions, be sure to read each individual guide in order to account for all relevant breaking changes.
The previous implementation used the FaceCaptureType
enum to define the face capture method. The new implementation replaces the FaceCaptureType
enum with the abstract FaceCapture
class and its subclasses for different capture methods.
Near Field Communication (NFC) is now enabled by default and offered to customers when both the document and the device support NFC. To disable NFC, please refer to our NFC reference guide.
- Replace the
FaceCaptureType
enum with the correspondingFaceCapture
factory constructors:
- Replace
FaceCaptureType.photo
withFaceCapture.photo()
. - Replace
FaceCaptureType.video
withFaceCapture.video()
. - If integrating the Motion capture, use
FaceCapture.motion()
.
- Update the face capture configurations based on the new implementation. See the updated documentation for
FlowSteps.faceCapture
in the readme file for details on the new configuration options and their usage.
By following these steps, you can successfully migrate to the new FlowSteps.faceCapture
implementation and take advantage of the additional configurations offered.