Interface ICodeScannedSubscription

All Known Implementing Classes:
CodeScannedStatisticsSubscription

public interface ICodeScannedSubscription
Subscription that is triggered when a code is scanned.

These are registered through the configuration base IoC:

     
     	baseIoc.modules().configure(DppModule.class, dppModule -> {
     		dppModule.extensionContext().codeScannedSubscriptions().add(TestCodeScannedSubscription.class);
      });
     
     
  • Method Details

    • onCodeScanned

      void onCodeScanned(ICodeScannedSubscription.CodeScannedEvent event)
      Implement to receive the scanned code.

      Codes scanned are not guaranteed to be actual codes, this is merely the requested code.

      The method should not throw exceptions. If any exceptions are thrown, they will be logged and ignored.

      Parameters:
      event - The event containing the scanned code