Class CustomClassRules
java.lang.Object
com.microblink.blinkid.entities.recognizers.blinkid.generic.CustomClassRules
Object representing custom rules of mandatory fields for each class of a document.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCustomClassRules(Country country, Region region, Type type, DetailedFieldType[] detailedFieldTypes) -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomClassRulescreateFromNative(int country, int region, int type, int[] detailedFieldTypes) This method is called from native code to buildCustomClassRulesfrom native object.Country of the document class.Array of detailed field types that are mandatory for the document class.Region of the document class.getType()Type of the document class.int[]SerializesCustomClassRulesto int array.static int[]serializeToArray(CustomClassRules[] array)
-
Constructor Details
-
CustomClassRules
public CustomClassRules(@Nullable Country country, @Nullable Region region, @Nullable Type type, DetailedFieldType[] detailedFieldTypes)
-
-
Method Details
-
createFromNative
public static CustomClassRules createFromNative(int country, int region, int type, int[] detailedFieldTypes) This method is called from native code to buildCustomClassRulesfrom native object. -
getCountry
Country of the document class. -
getRegion
Region of the document class. -
getType
Type of the document class. -
getDetailedFieldTypes
Array of detailed field types that are mandatory for the document class. -
serializeToArray
@NonNull public int[] serializeToArray()SerializesCustomClassRulesto int array.- Returns:
- rules serialized to array
-
serializeToArray
-