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);
});
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Event that is triggered when a code is scanned. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Implement to receive the scanned code.
-
Method Details
-
onCodeScanned
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
-