Package com.appliedrec.verid.ui2
Class SessionParameters
- java.lang.Object
-
- com.appliedrec.verid.ui2.SessionParameters
-
public class SessionParameters extends java.lang.Object
Parameters required by session activities- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description SessionParameters(VerID verID, VerIDSessionSettings sessionSettings, CameraLocation cameraLocation, java.util.function.Function<android.content.Context,V> sessionViewFactory, IStringTranslator stringTranslator, SessionFunctions sessionFunctions)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CameraLocation
getCameraLocation()
java.util.Optional<androidx.lifecycle.Observer<FaceCapture>>
getFaceCaptureObserver()
java.util.Optional<androidx.lifecycle.Observer<FaceDetectionResult>>
getFaceDetectionResultObserver()
java.util.function.Function<android.content.Context,IImageIterator>
getImageIteratorFactory()
int
getMinImageArea()
java.util.Optional<java.lang.Runnable>
getOnSessionCancelledRunnable()
java.util.Optional<java.lang.Runnable>
getOnSessionFinishedRunnable()
java.util.function.BiFunction<VerIDSessionResult,android.app.Activity,android.content.Intent>
getResultIntentSupplier()
SessionFailureDialogFactory
getSessionFailureDialogFactory()
SessionFunctions
getSessionFunctions()
java.util.Optional<VerIDSessionResult>
getSessionResult()
java.util.function.Function<VerIDSessionResult,java.lang.Boolean>
getSessionResultDisplayIndicator()
java.util.Optional<androidx.lifecycle.Observer<VerIDSessionResult>>
getSessionResultObserver()
VerIDSessionSettings
getSessionSettings()
<V extends android.view.View & ISessionView>
java.util.function.Function<android.content.Context,V>getSessionViewFactory()
IStringTranslator
getStringTranslator()
java.util.Optional<ITextSpeaker>
getTextSpeaker()
java.util.function.Function<android.app.Activity,android.content.Intent>
getTipsIntentSupplier()
VerID
getVerID()
java.util.Optional<ISessionVideoRecorder>
getVideoRecorder()
void
setFaceCaptureObserver(androidx.lifecycle.Observer<FaceCapture> faceCaptureObserver)
void
setFaceDetectionResultObserver(androidx.lifecycle.Observer<FaceDetectionResult> faceDetectionResultObserver)
void
setImageIteratorFactory(java.util.function.Function<android.content.Context,IImageIterator> imageIteratorFactory)
void
setMinImageArea(int minImageArea)
void
setOnSessionCancelledRunnable(java.lang.Runnable onSessionCancelledRunnable)
void
setOnSessionFinishedRunnable(java.lang.Runnable onSessionFinishedRunnable)
void
setResultIntentSupplier(java.util.function.BiFunction<VerIDSessionResult,android.app.Activity,android.content.Intent> resultIntentSupplier)
void
setSessionFailureDialogFactory(SessionFailureDialogFactory sessionFailureDialogFactory)
void
setSessionResult(VerIDSessionResult sessionResult)
void
setSessionResultDisplayIndicator(java.util.function.Function<VerIDSessionResult,java.lang.Boolean> sessionResultDisplayIndicator)
void
setSessionResultObserver(androidx.lifecycle.Observer<VerIDSessionResult> sessionResultObserver)
void
setTextSpeaker(ITextSpeaker textSpeaker)
void
setTipsIntentSupplier(java.util.function.Function<android.app.Activity,android.content.Intent> tipsIntentSupplier)
void
setVideoRecorder(ISessionVideoRecorder videoRecorder)
java.util.Optional<java.util.function.Function<VerIDSessionException,java.lang.Boolean>>
shouldRetryOnFailure()
void
shouldRetryOnFailure(java.util.function.Function<VerIDSessionException,java.lang.Boolean> shouldRetryOnFailure)
-
-
-
Constructor Detail
-
SessionParameters
public SessionParameters(@NonNull VerID verID, @NonNull VerIDSessionSettings sessionSettings, @NonNull CameraLocation cameraLocation, @NonNull java.util.function.Function<android.content.Context,V> sessionViewFactory, @NonNull IStringTranslator stringTranslator, @NonNull SessionFunctions sessionFunctions)
Constructor- Type Parameters:
V
- Session view type- Parameters:
verID
- Instance ofVerID
to use for face detetion, recognition and user managementsessionSettings
- Session settingscameraLocation
- Camera locationsessionViewFactory
- Session view factorystringTranslator
- String translatorsessionFunctions
- Session functions- Since:
- 2.0.0
-
-
Method Detail
-
getVerID
public VerID getVerID()
-
getSessionSettings
public VerIDSessionSettings getSessionSettings()
-
getCameraLocation
public CameraLocation getCameraLocation()
-
getVideoRecorder
public java.util.Optional<ISessionVideoRecorder> getVideoRecorder()
-
getSessionViewFactory
public <V extends android.view.View & ISessionView> java.util.function.Function<android.content.Context,V> getSessionViewFactory()
-
getStringTranslator
public IStringTranslator getStringTranslator()
-
getSessionFunctions
public SessionFunctions getSessionFunctions()
-
getSessionFailureDialogFactory
public SessionFailureDialogFactory getSessionFailureDialogFactory()
-
setSessionFailureDialogFactory
public void setSessionFailureDialogFactory(SessionFailureDialogFactory sessionFailureDialogFactory)
-
setFaceDetectionResultObserver
public void setFaceDetectionResultObserver(androidx.lifecycle.Observer<FaceDetectionResult> faceDetectionResultObserver)
-
setFaceCaptureObserver
public void setFaceCaptureObserver(androidx.lifecycle.Observer<FaceCapture> faceCaptureObserver)
-
setSessionResultObserver
public void setSessionResultObserver(androidx.lifecycle.Observer<VerIDSessionResult> sessionResultObserver)
-
getFaceDetectionResultObserver
public java.util.Optional<androidx.lifecycle.Observer<FaceDetectionResult>> getFaceDetectionResultObserver()
-
getFaceCaptureObserver
public java.util.Optional<androidx.lifecycle.Observer<FaceCapture>> getFaceCaptureObserver()
-
getSessionResultObserver
public java.util.Optional<androidx.lifecycle.Observer<VerIDSessionResult>> getSessionResultObserver()
-
getImageIteratorFactory
public java.util.function.Function<android.content.Context,IImageIterator> getImageIteratorFactory()
-
setImageIteratorFactory
public void setImageIteratorFactory(@NonNull java.util.function.Function<android.content.Context,IImageIterator> imageIteratorFactory)
-
getResultIntentSupplier
public java.util.function.BiFunction<VerIDSessionResult,android.app.Activity,android.content.Intent> getResultIntentSupplier()
-
getTipsIntentSupplier
public java.util.function.Function<android.app.Activity,android.content.Intent> getTipsIntentSupplier()
-
setResultIntentSupplier
public void setResultIntentSupplier(java.util.function.BiFunction<VerIDSessionResult,android.app.Activity,android.content.Intent> resultIntentSupplier)
-
setTipsIntentSupplier
public void setTipsIntentSupplier(java.util.function.Function<android.app.Activity,android.content.Intent> tipsIntentSupplier)
-
getOnSessionFinishedRunnable
public java.util.Optional<java.lang.Runnable> getOnSessionFinishedRunnable()
-
setOnSessionFinishedRunnable
public void setOnSessionFinishedRunnable(java.lang.Runnable onSessionFinishedRunnable)
-
getOnSessionCancelledRunnable
public java.util.Optional<java.lang.Runnable> getOnSessionCancelledRunnable()
-
setOnSessionCancelledRunnable
public void setOnSessionCancelledRunnable(java.lang.Runnable onSessionCancelledRunnable)
-
setVideoRecorder
public void setVideoRecorder(ISessionVideoRecorder videoRecorder)
-
getSessionResultDisplayIndicator
public java.util.function.Function<VerIDSessionResult,java.lang.Boolean> getSessionResultDisplayIndicator()
-
setSessionResultDisplayIndicator
public void setSessionResultDisplayIndicator(java.util.function.Function<VerIDSessionResult,java.lang.Boolean> sessionResultDisplayIndicator)
-
getSessionResult
public java.util.Optional<VerIDSessionResult> getSessionResult()
-
setSessionResult
public void setSessionResult(VerIDSessionResult sessionResult)
-
shouldRetryOnFailure
public java.util.Optional<java.util.function.Function<VerIDSessionException,java.lang.Boolean>> shouldRetryOnFailure()
-
shouldRetryOnFailure
public void shouldRetryOnFailure(java.util.function.Function<VerIDSessionException,java.lang.Boolean> shouldRetryOnFailure)
-
getTextSpeaker
public java.util.Optional<ITextSpeaker> getTextSpeaker()
-
setTextSpeaker
public void setTextSpeaker(ITextSpeaker textSpeaker)
-
getMinImageArea
public int getMinImageArea()
-
setMinImageArea
public void setMinImageArea(int minImageArea)
-
-