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 
CameraOverlayDelegateOutclass was removed. Instead, useLunaID.detectionCoordinates(). - The 
CameraUIDelegateclass was removed. Instead, useLunaID.finishStates(). That is,CameraUIDelegate#bestShot,CameraUIDelegate#canceled,CameraUIDelegate#errorare no longer supported. LunaID.showCamera()does not requireCameraUIDelegateanymore.LunaID.unregisterListener()was removed.LunaID.popLastCameraState()andLunaID.getLastCameraState()were removed.LunaErrorand its descendants were replaced with theDetectionErrorenumeration. 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.interactionEnabledorLunaConfig.interactionTimeout, useBlinkInteraction(). 
3․ LunaID.showCamera() now accepts a list of interactions to be run.