Class RecognizableSubject

  • All Implemented Interfaces:
    android.os.Parcelable, IRecognizable

    public class RecognizableSubject
    extends java.lang.Object
    implements IRecognizable, android.os.Parcelable
    Subject that contains one or more faces that can be used for face recognition
    Since:
    1.0.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.ContentsFlags, android.os.Parcelable.Creator<T>, android.os.Parcelable.Stability, android.os.Parcelable.WriteFlags
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<RecognizableSubject> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_STABILITY_LOCAL, PARCELABLE_STABILITY_VINTF, PARCELABLE_WRITE_RETURN_VALUE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()
      Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
      byte[] getRecognitionData()  
      RecognizableType getType()  
      int getVersion()  
      void writeToParcel​(android.os.Parcel dest, int flags)
      Flatten this object in to a Parcel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface android.os.Parcelable

        getStability
    • Constructor Detail

      • RecognizableSubject

        public RecognizableSubject​(byte[] data,
                                   int version)
      • RecognizableSubject

        protected RecognizableSubject​(android.os.Parcel in)
    • Method Detail

      • getRecognitionData

        public byte[] getRecognitionData()
        Specified by:
        getRecognitionData in interface IRecognizable
        Returns:
        Face recognition data
        Since:
        1.0.0
      • getVersion

        public int getVersion()
        Specified by:
        getVersion in interface IRecognizable
        Returns:
        Version used to determine compatibility
        Since:
        1.0.0
      • describeContents

        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
        Returns:
        a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Description copied from interface: android.os.Parcelable
        Flatten this object in to a Parcel.
        Specified by:
        writeToParcel in interface android.os.Parcelable
        Parameters:
        dest - 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.