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, useLunaID.detectionCoordinates()
. - The
CameraUIDelegate
class was removed. Instead, useLunaID.finishStates()
. That is,CameraUIDelegate#bestShot
,CameraUIDelegate#canceled
,CameraUIDelegate#error
are no longer supported. LunaID.showCamera()
does not requireCameraUIDelegate
anymore.LunaID.unregisterListener()
was removed.LunaID.popLastCameraState()
andLunaID.getLastCameraState()
were removed.LunaError
and its descendants were replaced with theDetectionError
enumeration. For example, instead ofLunaError.messageResId
, useDetectionError.messageResId
.- Interaction parameters moved from
LunaConfig
. Now, to setup a blink interaction, provide its parameters toLunaID.showCamera()
. For example, instead ofLunaConfig.interactionEnabled
orLunaConfig.interactionTimeout
, useBlinkInteraction()
.
3․ LunaID.showCamera()
now accepts a list of interactions to be run.