com.datalogic.itemtracking.ItemTrackingManager.EventListener |
Class Overview
Listener interface for receiving item tracking events.
Applications can register an implementation of this interface using the
addEventListener(EventListener)
method to receive notifications
about item tracking events, such as item insertion or extraction.
De-registration can be done using the removeEventListener(EventListener)
method.
Implementations of this interface must define the behavior for handling
events through the onEvent(EventType, int, List)
method.
Summary
Nested Classes |
enum |
ItemTrackingManager.EventListener.EventType |
Enum representing the type of event received from the item tracking system. |
Public Methods
Callback method executed when an item tracking event is received.
This method is invoked by the tracking system whenever an event occurs, providing
details about the type of event and the number of items involved.
Parameters
eventType
| The type of event that occurred, represented as an ItemTrackingManager.EventListener.EventType .
Possible values are:
INSERTION : Indicates items added to the shopping cart.
EXTRACTION : Indicates items removed from the shopping cart.
|
numItems
| The number of items involved in the event. For example:
- For
INSERTION , this represents the number of items added.
- For
EXTRACTION , this represents the number of items removed.
|
itemIdentifiers
| A list of item identifiers. Its size is equals or lower than the number of
items involved in this event. When an item has not been identified, it
will not be added to this list.
|