java.lang.Object
com.microblink.blinkid.entities.recognizers.blinkid.generic.CustomClassRules

public class CustomClassRules extends Object
Object representing custom rules of mandatory fields for each class of a document.
  • Constructor Details

  • Method Details

    • createFromNative

      public static CustomClassRules createFromNative(int country, int region, int type, int[] detailedFieldTypes)
      This method is called from native code to build CustomClassRules from native object.
    • getCountry

      @Nullable public Country getCountry()
      Country of the document class.
    • getRegion

      @Nullable public Region getRegion()
      Region of the document class.
    • getType

      @Nullable public Type getType()
      Type of the document class.
    • getDetailedFieldTypes

      public DetailedFieldType[] getDetailedFieldTypes()
      Array of detailed field types that are mandatory for the document class.
    • serializeToArray

      @NonNull public int[] serializeToArray()
      Serializes CustomClassRules to int array.
      Returns:
      rules serialized to array
    • serializeToArray

      public static int[] serializeToArray(CustomClassRules[] array)