Biometrics Android
1.3
Search
K
Comment on page

ActivePassiveLivenessDetectionAction

A typesafe enumeration of the active-passive actions that can be performed during the liveness detection process
import com.sybrin.livenessdetection.enums.ActivePassiveLivenessDetectionAction

Summary

Enum values
Blink
Adds a blinking action to the detection process.
Adds a look down action to the detection process.
LookUp
Adds a look up action to the detection process.
Selfie
Adds a take selfie action to the detection process.
Smile
Adds a smile action to the detection process.
Adds a tilt head left action to the detection process.
Adds a tilt head right action to the detection process.
Adds a turn head left action to the detection process.
Adds a turn head right action to the detection process.

Enum values

public static final ActivePassiveLivenessDetectionAction BLink
Adds a blinking action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted to close both their eyes.
  2. 2.
    Once the user has closed both their eyes, the phone will vibrate once.
  3. 3.
    The user will be prompted to open both their eyes
  4. 4.
    Once the user has opened both their eyes, the phone will vibrate once.
  5. 5.
    The question will be completed and the user will be prompted with Nice! You got it! while the next question is loaded

LookDown

public static final ActivePassiveLivenessDetectionAction LookDown
Adds a look down action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted to look down.
  2. 2.
    Once the user has looked down, the phone will vibrate once.
  3. 3.
    The user will be prompted to look at the screen
  4. 4.
    Once the user has looked at the screen, the phone will vibrate once.
  5. 5.
    The question will be completed and the user will be prompted with Nice! You got it! while the next question is loaded.

LookUp

public static final ActivePassiveLivenessDetectionAction LookUp
Adds a look up action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted to look up.
  2. 2.
    Once the user has looked up, the phone will vibrate once.
  3. 3.
    The user will be prompted to look at the screen
  4. 4.
    Once the user has looked at the screen, the phone will vibrate once.
  5. 5.
    The question will be completed and the user will be prompted with Nice! You got it! while the next question is loaded.

Selfie

public static final ActivePassiveLivenessDetectionAction Selfie
Adds a take selfie action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted that a selfie is being taken.
  2. 2.
    The user has to keep their face still and in frame for the duration of the 3 second countdown.
  3. 3.
    Once the countdown finishes a selfie will be captured and the user will be prompted with We're done.

Smile

public static final ActivePassiveLivenessDetectionAction Smile
Adds a smile action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted to smile.
  2. 2.
    Once the user has smiled, the phone will vibrate once.
  3. 3.
    The user will be prompted to not smile
  4. 4.
    Once the user has stopped smiling, the phone will vibrate once.
  5. 5.
    The question will be completed and the user will be prompted with Nice! You got it! while the next question is loaded.

TiltHeadLeft

public static final ActivePassiveLivenessDetectionAction TiltHeadLeft
Adds a tilt head left action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted to tilt their head left.
  2. 2.
    Once the user has tilted their head left, the phone will vibrate once.
  3. 3.
    The user will be prompted to tilt their head upright
  4. 4.
    Once the user has tilted their head upright, the phone will vibrate once.
  5. 5.
    The question will be completed and the user will be prompted with Nice! You got it! while the next question is loaded.

TiltHeadRight

public static final ActivePassiveLivenessDetectionAction TiltHeadRight
Adds a tilt head right action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted to tilt their head right.
  2. 2.
    Once the user has tilted their head right, the phone will vibrate once.
  3. 3.
    The user will be prompted to tilt their head upright
  4. 4.
    Once the user has tilted their head upright, the phone will vibrate once.
  5. 5.
    The question will be completed and the user will be prompted with Nice! You got it! while the next question is loaded.

TurnHeadLeft

public static final ActivePassiveLivenessDetectionAction TurnHeadLeft
Adds a turn head left action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted to turn their head left.
  2. 2.
    Once the user has turned their head left, the phone will vibrate once.
  3. 3.
    The user will be prompted to turn their head forward
  4. 4.
    Once the user has turned their head forward, the phone will vibrate once.
  5. 5.
    The question will be completed and the user will be prompted with Nice! You got it! while the next question is loaded.

TurnHeadRight

public static final ActivePassiveLivenessDetectionAction TurnHeadRight
Adds a turn head right action to the detection process.

Visual example:

Description
Illustration
The following steps will be followed for this question:
  1. 1.
    The user is prompted to turn their head right.
  2. 2.
    Once the user has turned their head right, the phone will vibrate once.
  3. 3.
    The user will be prompted to turn their head forward
  4. 4.
    Once the user has turned their head forward, the phone will vibrate once.
  5. 5.
    The question will be completed and the user will be prompted with Nice! You got it! while the next question is loaded.