Class Session.Builder<Settings extends VerIDSessionSettings>
- java.lang.Object
-
- com.appliedrec.verid.core2.session.Session.Builder<Settings>
-
- Type Parameters:
Settings
-
- Enclosing class:
- Session<Settings extends VerIDSessionSettings>
public static final class Session.Builder<Settings extends VerIDSessionSettings> extends java.lang.Object
Session builder- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description Builder(VerID verID, Settings settings, IImageIterator imageFlowable, java.lang.Iterable<FaceBounds> faceBoundsIterable)
Builder constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Session.Builder<Settings>
bindToLifecycle(androidx.lifecycle.Lifecycle lifecycle)
Session<Settings>
build()
Build the session instanceSession.Builder<Settings>
setFaceCaptureCallback(io.reactivex.rxjava3.functions.Consumer<? super FaceCapture> callback)
Session.Builder<Settings>
setFaceDetectionCallback(io.reactivex.rxjava3.functions.Consumer<? super FaceDetectionResult> callback)
Session.Builder<Settings>
setFinishCallback(io.reactivex.rxjava3.functions.Consumer<? super VerIDSessionResult> onFinish)
Session.Builder<Settings>
setSessionFunctions(SessionFunctions sessionFunctions)
-
-
-
Constructor Detail
-
Builder
public Builder(@NonNull VerID verID, @NonNull Settings settings, @NonNull IImageIterator imageFlowable, @NonNull java.lang.Iterable<FaceBounds> faceBoundsIterable)
Builder constructor- Parameters:
verID
- Instance of VerID to use for face detection and recognitionsettings
- Session settingsimageFlowable
- Flowable that supplies images to the sessionfaceBoundsIterable
- Iterable that supplies face bounds to the session- Since:
- 2.0.0
-
-
Method Detail
-
setFaceDetectionCallback
public Session.Builder<Settings> setFaceDetectionCallback(io.reactivex.rxjava3.functions.Consumer<? super FaceDetectionResult> callback)
- Parameters:
callback
- Callback to be called on each face detection pass- Returns:
- Builder instance for chaining
- Since:
- 2.0.0
-
setFaceCaptureCallback
public Session.Builder<Settings> setFaceCaptureCallback(io.reactivex.rxjava3.functions.Consumer<? super FaceCapture> callback)
- Parameters:
callback
- Callback to be called when a face capture is created- Returns:
- Builder instance for chaining
- Since:
- 2.0.0
-
setSessionFunctions
public Session.Builder<Settings> setSessionFunctions(SessionFunctions sessionFunctions)
-
setFinishCallback
public Session.Builder<Settings> setFinishCallback(io.reactivex.rxjava3.functions.Consumer<? super VerIDSessionResult> onFinish)
- Parameters:
onFinish
- Callback to be called with the session result when the session finishes- Returns:
- Builder instance for chaining
- Since:
- 2.0.0
-
bindToLifecycle
public Session.Builder<Settings> bindToLifecycle(androidx.lifecycle.Lifecycle lifecycle)
- Parameters:
lifecycle
- Lifecycle to bind the session to- Returns:
- Builder instance for chaining
- Since:
- 2.0.0
-
-