Class OcrBlock

  • All Implemented Interfaces:
    android.os.Parcelable

    public class OcrBlock
    extends java.lang.Object
    implements android.os.Parcelable
    • Nested Class Summary

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

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

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

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      OcrBlock​(long nativePtr, OcrResult parentResult)  
    • Field Detail

      • CREATOR

        @NonNull
        public static final android.os.Parcelable.Creator<OcrBlock> CREATOR
    • Constructor Detail

      • OcrBlock

        public OcrBlock​(long nativePtr,
                        @Nullable
                        OcrResult parentResult)
    • Method Detail

      • getPosition

        @Nullable
        public Rectangle getPosition()
        Returns:
        the position
      • getLines

        @Nullable
        public OcrLine[] getLines()
        Returns:
        the lines
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(@NonNull
                                  android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable