Class Session<Settings extends VerIDSessionSettings>

  • Type Parameters:
    Settings -
    All Implemented Interfaces:
    androidx.lifecycle.DefaultLifecycleObserver, androidx.lifecycle.LifecycleObserver

    public class Session<Settings extends VerIDSessionSettings>
    extends java.lang.Object
    implements androidx.lifecycle.DefaultLifecycleObserver
    Ver-ID session
    Since:
    2.0.0
    • Method Detail

      • start

        public void start()
        Start the session
        Since:
        2.0.0
      • cancel

        public void cancel()
        Cancel the session
        Since:
        2.0.0
      • getFaceDetectionLiveData

        public androidx.lifecycle.LiveData<FaceDetectionResult> getFaceDetectionLiveData()
        Returns:
        Live data with face detection results (on each camera frame on which face detection was run)
        Since:
        2.0.0
      • getFaceCaptureLiveData

        public androidx.lifecycle.LiveData<FaceCapture> getFaceCaptureLiveData()
        Returns:
        Live data with face captures
        Since:
        2.0.0
      • getSessionResultLiveData

        public androidx.lifecycle.LiveData<VerIDSessionResult> getSessionResultLiveData()
        Returns:
        Live data with session result
        Since:
        2.0.0
      • onDestroy

        @RestrictTo(LIBRARY_GROUP)
        public void onDestroy​(@NonNull
                              androidx.lifecycle.LifecycleOwner owner)
        Specified by:
        onDestroy in interface androidx.lifecycle.DefaultLifecycleObserver