Skip to content

Interception of Dynamic Liveness interaction events#

Applies to LUNA ID for Android only.

You can intercept interaction events via LunaID.detectionCoordinates().

You will receive structure similar to the "error" and "detection" events:

{
    "action": "interaction",
    "state": ...
}

Where state is an object of the LunaInteraction class.

public enum class LunaInteraction {
   INTERACTION_FAILED,
   INTERACTION_STARTED,

   INTERACTION_EYES_OPENED,
   INTERACTION_EYES_CLOSED,
   INTERACTION_EYES_OPENED_AGAIN,

   INTERACTION_SUCCESS
}

Just like with errors based on this state, you can control how interaction messages will look like.