Class Session.Builder<Settings extends VerIDSessionSettings>

    • 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 recognition
        settings - Session settings
        imageFlowable - Flowable that supplies images to the session
        faceBoundsIterable - 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
      • 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
      • build

        public Session<Settings> build()
        Build the session instance
        Returns:
        Session
        Since:
        2.0.0