Class VerIDSessionInView<T extends android.view.View & ISessionView>

    • Constructor Detail

      • VerIDSessionInView

        public VerIDSessionInView​(@NonNull
                                  VerID verID,
                                  @NonNull
                                  VerIDSessionSettings sessionSettings,
                                  @NonNull
                                  T sessionView,
                                  @NonNull
                                  IStringTranslator stringTranslator)
        Constructor
        Parameters:
        verID - Instance of VerID
        sessionSettings - Session settings
        sessionView - Session view
        stringTranslator - String translator
        Since:
        2.0.0
      • VerIDSessionInView

        public VerIDSessionInView​(VerID verID,
                                  VerIDSessionSettings sessionSettings,
                                  T sessionView)
        Constructor
        Parameters:
        verID - Instance of VerID
        sessionSettings - Session settings
        sessionView - Session view
        Since:
        2.0.0
    • Method Detail

      • stop

        public void stop()
        Stop the session
        Since:
        2.0.0
      • getSessionView

        public T getSessionView()
        Returns:
        Session view
        Since:
        2.0.0
      • getCameraWrapper

        public CameraWrapper getCameraWrapper()
        Returns:
        Camera wrapper
        Since:
        2.0.0
      • getSessionResultLiveData

        public androidx.lifecycle.LiveData<VerIDSessionResult> getSessionResultLiveData()
        Returns:
        Session result live data
        Since:
        2.0.0
      • getFaceDetectionLiveData

        public androidx.lifecycle.LiveData<FaceDetectionResult> getFaceDetectionLiveData()
        Returns:
        Face detection live data
        Since:
        2.0.0
      • getFaceCaptureLiveData

        public androidx.lifecycle.LiveData<FaceCapture> getFaceCaptureLiveData()
        Returns:
        Face capture live data
        Since:
        2.0.0
      • iterator

        @RestrictTo(LIBRARY_GROUP)
        @NonNull
        public java.util.Iterator<FaceBounds> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T extends android.view.View & ISessionView>
      • onCameraPreviewSize

        @RestrictTo(LIBRARY_GROUP)
        public void onCameraPreviewSize​(int width,
                                        int height,
                                        int sensorOrientation)
        Description copied from interface: CameraWrapper.Listener
        Called when the camera determines its preview size based on the dimensions of the containing view
        Specified by:
        onCameraPreviewSize in interface CameraWrapper.Listener
        Parameters:
        width - Preview width
        height - Preview height
        sensorOrientation - Camera sensor orientation on the device