Class SessionPrompts


  • public class SessionPrompts
    extends java.lang.Object
    Prompts displayed above the detected face in camera preview
    Since:
    2.0.0
    • 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