Skip to content

API changes made in LUNA ID for Android v.1.5.0 in comparison to v.1.4.x#

This topic lists API changes that were made in LUNA ID for Android v.1.5.0 in comparison to v.1.4.x.

The changes are:

1․ The whole flow of a LUNA ID camera is now exposed via LunaID.allEvents(). You can subscribe to it to catch all events or subscribe to specific events, for example:
- LunaID.finishStates()
- LunaID.detectionCoordinates()
- LunaID.detectionErrors()
- LunaID.interactions()

2․ All callbacks were replaced with the native Flow API:

  • The detection coordinates API was changed. The CameraOverlayDelegateOut class was removed. Instead, use LunaID.detectionCoordinates().
  • The CameraUIDelegate class was removed. Instead, use LunaID.finishStates(). That is, CameraUIDelegate#bestShot, CameraUIDelegate#canceled, CameraUIDelegate#error are no longer supported.
  • LunaID.showCamera() does not require CameraUIDelegate anymore.
  • LunaID.unregisterListener() was removed.
  • LunaID.popLastCameraState() and LunaID.getLastCameraState() were removed.
  • LunaError and its descendants were replaced with the DetectionError enumeration. For example, instead of LunaError.messageResId, use DetectionError.messageResId.
  • Interaction parameters moved from LunaConfig. Now, to setup a blink interaction, provide its parameters to LunaID.showCamera(). For example, instead of LunaConfig.interactionEnabled or LunaConfig.interactionTimeout, use BlinkInteraction().

3․ LunaID.showCamera() now accepts a list of interactions to be run.