Package com.appliedrec.verid.ui2
Class SessionPrompts
- java.lang.Object
-
- com.appliedrec.verid.ui2.SessionPrompts
-
public class SessionPrompts extends java.lang.Object
Prompts displayed above the detected face in camera preview- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description SessionPrompts(IStringTranslator stringTranslator)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Locale
getLocale()
Get locale from the string translatorjava.util.Optional<java.lang.String>
promptFromFaceDetectionResult(FaceDetectionResult faceDetectionResult)
Get a prompt from a face detection result
-
-
-
Constructor Detail
-
SessionPrompts
public SessionPrompts(@NonNull IStringTranslator stringTranslator)
Constructor- Parameters:
stringTranslator
- Translator used to translate the prompts- Since:
- 2.0.0
-
-
Method Detail
-
promptFromFaceDetectionResult
public java.util.Optional<java.lang.String> promptFromFaceDetectionResult(@Nullable FaceDetectionResult faceDetectionResult)
Get a prompt from a face detection result- Parameters:
faceDetectionResult
- Face detetion result- Returns:
- Optional whose unwrapped value is a prompt or null if the face detection result is null or if the prompt shouldn't be displayed for the result
- Since:
- 2.0.0
-
getLocale
public java.util.Locale getLocale()
Get locale from the string translator- Returns:
- Locale
- Since:
- 2.0.0
-
-