Class LivenessDetectionSessionSettings

  • All Implemented Interfaces:
    android.os.Parcelable
    Direct Known Subclasses:
    AuthenticationSessionSettings

    public class LivenessDetectionSessionSettings
    extends VerIDSessionSettings
    Liveness detection session settings

    Liveness detection sessions ask the user to assume one or more random poses (bearings).

    Since:
    1.0.0
    • Field Detail

      • DEFAULT_BEARINGS

        public static final java.util.EnumSet<Bearing> DEFAULT_BEARINGS
        Default set of face bearings
        Since:
        1.0.0
    • Constructor Detail

      • LivenessDetectionSessionSettings

        public LivenessDetectionSessionSettings()
        Constructor
        Since:
        1.0.0
    • Method Detail

      • getBearings

        public java.util.EnumSet<Bearing> getBearings()
        Get the set of bearings the user may be asked to assume during the session.

        Note that the user will unlikely be asked to assume all the bearings in the set. The set is simply a pool from which the session will draw a random member.

        Returns:
        Set of bearings
        Since:
        1.0.0
        See Also:
        setBearings(EnumSet)
      • setBearings

        public void setBearings​(java.util.EnumSet<Bearing> bearings)
        Set the set of bearings the user may be asked to assume during the session.

        Note that the user will unlikely be asked to assume all the bearings in the set. The set is simply a pool from which the session will draw a random member.

        Parameters:
        bearings - Set of bearings
        Since:
        1.0.0
        See Also:
        getBearings()
      • writeToParcel

        @RestrictTo(LIBRARY_GROUP)
        public void writeToParcel​(android.os.Parcel parcel,
                                  int flags)
        Description copied from interface: android.os.Parcelable
        Flatten this object in to a Parcel.
        Specified by:
        writeToParcel in interface android.os.Parcelable
        Overrides:
        writeToParcel in class VerIDSessionSettings
        Parameters:
        parcel - The Parcel in which the object should be written.
        flags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
      • 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 of Parcelable.writeToParcel(Parcel, int), the return value of this method must include the Parcelable.CONTENTS_FILE_DESCRIPTOR bit.
        Specified by:
        describeContents in interface android.os.Parcelable
        Overrides:
        describeContents in class VerIDSessionSettings
        Returns:
        a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
      • equals

        @RestrictTo(LIBRARY_GROUP)
        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class VerIDSessionSettings