java.lang.Object
com.microblink.blinkid.entities.recognizers.blinkid.generic.StringResult
All Implemented Interfaces:
android.os.Parcelable

public class StringResult extends Object implements android.os.Parcelable
Multi-alphabet String result.
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<StringResult> CREATOR
  • Constructor Details

    • StringResult

      public StringResult(String[] values, Rectangle[] locations, int[] side)
  • Method Details

    • value

      @NonNull public String value()
      Returns the non-empty value, if such is present, with priority given to Latin alphabet.
      Returns:
      String result with priority given to Latin alphabet
    • value

      @NonNull public String value(AlphabetType alphabetType)
      Returns value of the specified alphabet type.
      Parameters:
      alphabetType - AlphabetType of the returned String
      Returns:
      value of the specified alphabet type
    • location

      @Nullable public Rectangle location(AlphabetType alphabetType)
      Returns field location of the specified alphabet type result. Returns rectangle with top, bottom, left, and right set to 0 if field is not present on the card.
      Parameters:
      alphabetType - AlphabetType of this StringResult for which the side will be returned
      Returns:
      location of the specified alphabet type result
    • side

      @Nullable public Side side(AlphabetType alphabetType)
      Returns side of the specified alphabet type result. Returns null if field is not present on the card.
      Parameters:
      alphabetType - AlphabetType of this StringResult for which the side will be returned
      Returns:
      side of the specified alphabet type result
    • isEmpty

      public boolean isEmpty()
      Checks if this StringResult result is empty.
      Returns:
      true if the result is empty, false otherwise
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • describeContents

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