Class Session<Settings extends VerIDSessionSettings>
- java.lang.Object
-
- com.appliedrec.verid.core2.session.Session<Settings>
-
- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Session.Builder<Settings extends VerIDSessionSettings>
Session builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancel the sessionandroidx.lifecycle.LiveData<FaceCapture>
getFaceCaptureLiveData()
androidx.lifecycle.LiveData<FaceDetectionResult>
getFaceDetectionLiveData()
SessionFunctions
getSessionFunctions()
androidx.lifecycle.LiveData<VerIDSessionResult>
getSessionResultLiveData()
void
onDestroy(androidx.lifecycle.LifecycleOwner owner)
void
start()
Start the session
-
-
-
Method Detail
-
start
public void start()
Start the session- Since:
- 2.0.0
-
cancel
public void cancel()
Cancel the session- Since:
- 2.0.0
-
getSessionFunctions
public SessionFunctions getSessionFunctions()
-
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 interfaceandroidx.lifecycle.DefaultLifecycleObserver
-
-