java.lang.Object
com.microblink.photopay.entities.Entity<T>
com.microblink.photopay.entities.recognizers.Recognizer<CroatiaSlipRecognizer.Result>
com.microblink.photopay.entities.recognizers.photopay.croatia.slip.CroatiaSlipRecognizer
All Implemented Interfaces:
android.os.Parcelable, JsonizableEntity

public final class CroatiaSlipRecognizer extends Recognizer<CroatiaSlipRecognizer.Result>
Recognizer that scans payment information from Croatian payment slips
  • Field Details

  • Constructor Details

    • CroatiaSlipRecognizer

      public CroatiaSlipRecognizer()
  • Method Details

    • setReadPayerName

      public void setReadPayerName(boolean readPayerName)
      Defines whether payer name should also be read from the slip. By default, this is set to 'false'.
    • shouldReadPayerName

      public boolean shouldReadPayerName()
      Defines whether payer name should also be read from the slip. By default, this is set to 'false'.
    • setUseSanitization

      public void setUseSanitization(boolean useSanitization)
      Defines whether payment description sanitization should be performed. Sanitization will remove invalid characters and will cut the length of the payment description to the maximum defined by Croatian payment protocols. By default, this is set to 'false'.
    • shouldUseSanitization

      public boolean shouldUseSanitization()
      Defines whether payment description sanitization should be performed. Sanitization will remove invalid characters and will cut the length of the payment description to the maximum defined by Croatian payment protocols. By default, this is set to 'false'.
    • setReadPaymentDescription

      public void setReadPaymentDescription(boolean readPaymentDescription)
      Defines whether payment description will also be read from the slip. By default, this is set to 'true'.
    • shouldReadPaymentDescription

      public boolean shouldReadPaymentDescription()
      Defines whether payment description will also be read from the slip. By default, this is set to 'true'.
    • terminateNative

      protected void terminateNative(long nativeContext)
      Specified by:
      terminateNative in class Entity<CroatiaSlipRecognizer.Result>
    • serializeNativeSettings

      @Nullable protected byte[] serializeNativeSettings()
      Specified by:
      serializeNativeSettings in class Entity<CroatiaSlipRecognizer.Result>
    • deserializeNativeSettings

      protected void deserializeNativeSettings(@NonNull byte[] serializedSettings)
      Specified by:
      deserializeNativeSettings in class Entity<CroatiaSlipRecognizer.Result>
    • clone

      public CroatiaSlipRecognizer clone()
      Description copied from class: Entity
      Create a copy of the entity. This is required if properties of the entity must be modified while background thread performs processing. In order to avoid race conditions, changing properties is not allowed while entity is used in background processing. However, you are able to make a copy of the entity, change properties of it and then update the RecognizerRunnerView or RecognizerRunner with the updated entity hierarchy.
      Specified by:
      clone in class Recognizer<CroatiaSlipRecognizer.Result>
      Returns:
      a copy of the entity
    • consumeResultFrom

      public void consumeResultFrom(@NonNull Entity other)
      Description copied from class: Entity
      Consume result from other entity. The result from other will be put instead current result of this entity. This method is used inside BaseIntentTransferable.loadFromIntent(Intent) and similar methods to replace the result content of the saved entities with results that have arrived over Intent
      Specified by:
      consumeResultFrom in class Entity<CroatiaSlipRecognizer.Result>
      Parameters:
      other - Entity from which result should be consumed.