Skip to content

Ionic

1. The following values have been renamed:

  • InitializationConfigurationInitConfig
  • FaceSDK.presentFaceCaptureActivity()FaceSDK.startFaceCapture()
  • FaceSDK.matchFacesSimilarityThresholdSplit()FaceSDK.splitComparedFaces()
  • MatchFacesSimilarityThresholdSplitComparedFacesSplit
  • *.bitmap*.image

2. Added missing classes, such as InitResponse and LivenessConfig.

3. Reworked functions that had similar versions accepting a configuration object, such as FaceSDK.initialize() and FaceSDK.initializeWithConfig(config: any).

Now, it is a single function that can accept null instead of a configuration object:

FaceSDK.initialize(null)

FaceSDK.initialize({})

FaceSDK.initialize({
  license: "base64"
})

var config = new InitConfig()
config.license = "base64"
FaceSDK.initialize(config)

4. Functions FaceSDK.setUiCustomizationLayer(any) and FaceSDK.setUiConfiguration(any) are combined into FaceSDK.setCustomization(customization: Customization).

5. The .then() callbacks for synchronous functions without a return value have been disabled, as they don't return anything.

Here is the full list of functions with disabled .then():

setServiceUrl
setLocalizationDictionary
setRequestHeaders
setCustomization
deinitialize
stopFaceCapture
stopLiveness

Since the .then() callback will never be executed for synchronous functions, it can be completely removed. See a comparative example below:

FaceSDK.setLocalizationDictionary(dictionary).then(result => {
  console.log("Localization dictionary applied!")
})
FaceSDK.setLocalizationDictionary(dictionary)
console.log("Localization dictionary applied!")