Class VerIDSessionResult
- java.lang.Object
-
- com.appliedrec.verid.core2.session.VerIDSessionResult
-
- All Implemented Interfaces:
android.os.Parcelable
- Direct Known Subclasses:
AuthenticationSessionResult
public class VerIDSessionResult extends java.lang.Object implements android.os.Parcelable
Session result- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<VerIDSessionResult>
CREATOR
-
Constructor Summary
Constructors Constructor Description VerIDSessionResult(VerIDSessionException error, long startTime, long endTime, SessionDiagnostics diagnostics)
VerIDSessionResult(java.util.List<FaceCapture> results, long startTime, long endTime, SessionDiagnostics diagnostics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFaceCapture(FaceCapture faceCapture)
int
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.boolean
equals(java.lang.Object o)
java.util.Optional<VerIDSessionException>
getError()
FaceCapture[]
getFaceCaptures()
FaceCapture[]
getFaceCaptures(Bearing bearing)
RecognizableFace[]
getFaces()
java.util.Optional<FaceCapture>
getFirstFaceCapture(Bearing bearing)
java.util.Optional<SessionDiagnostics>
getSessionDiagnostics()
long
getSessionDuration(java.util.concurrent.TimeUnit timeUnit)
java.util.Date
getSessionStartTime()
java.util.Optional<java.lang.Float>
getSpoofConfidenceScore()
java.util.Optional<android.net.Uri>
getVideoUri()
int
hashCode()
void
setError(VerIDSessionException error)
void
setVideoUri(android.net.Uri videoUri)
void
writeToParcel(android.os.Parcel parcel, int i)
Flatten this object in to a Parcel.
-
-
-
Field Detail
-
CREATOR
@RestrictTo(LIBRARY_GROUP) public static final android.os.Parcelable.Creator<VerIDSessionResult> CREATOR
-
-
Constructor Detail
-
VerIDSessionResult
public VerIDSessionResult(java.util.List<FaceCapture> results, long startTime, long endTime, @Nullable SessionDiagnostics diagnostics)
-
VerIDSessionResult
public VerIDSessionResult(VerIDSessionException error, long startTime, long endTime, @Nullable SessionDiagnostics diagnostics)
-
-
Method Detail
-
getFaceCaptures
@NonNull public FaceCapture[] getFaceCaptures()
-
getFaceCaptures
@NonNull public FaceCapture[] getFaceCaptures(@NonNull Bearing bearing)
-
getFirstFaceCapture
@NonNull public java.util.Optional<FaceCapture> getFirstFaceCapture(@NonNull Bearing bearing)
-
getFaces
public RecognizableFace[] getFaces()
-
setError
public void setError(@Nullable VerIDSessionException error)
-
getError
@NonNull public java.util.Optional<VerIDSessionException> getError()
- Returns:
- Error or null if the result is successful
- Since:
- 1.0.0
-
getVideoUri
@NonNull public java.util.Optional<android.net.Uri> getVideoUri()
-
setVideoUri
public void setVideoUri(@Nullable android.net.Uri videoUri)
-
getSessionStartTime
@NonNull public java.util.Date getSessionStartTime()
-
getSessionDuration
public long getSessionDuration(java.util.concurrent.TimeUnit timeUnit)
-
getSessionDiagnostics
public java.util.Optional<SessionDiagnostics> getSessionDiagnostics()
-
addFaceCapture
public final void addFaceCapture(FaceCapture faceCapture)
-
describeContents
@RestrictTo(LIBRARY_GROUP) public int describeContents()
Description copied from interface:android.os.Parcelable
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output ofParcelable.writeToParcel(Parcel, int)
, the return value of this method must include theParcelable.CONTENTS_FILE_DESCRIPTOR
bit.- Specified by:
describeContents
in interfaceandroid.os.Parcelable
- Returns:
- a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
-
writeToParcel
@RestrictTo(LIBRARY_GROUP) public void writeToParcel(android.os.Parcel parcel, int i)
Description copied from interface:android.os.Parcelable
Flatten this object in to a Parcel.- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Parameters:
parcel
- The Parcel in which the object should be written.i
- Additional flags about how the object should be written. May be 0 orParcelable.PARCELABLE_WRITE_RETURN_VALUE
.
-
equals
@RestrictTo(LIBRARY_GROUP) public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
@RestrictTo(LIBRARY_GROUP) public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getSpoofConfidenceScore
public java.util.Optional<java.lang.Float> getSpoofConfidenceScore()
-
-