Added in revision 3
public interface

Trolley

com.datalogic.extension.selfshopping.cradle.Trolley

Class Overview

Interface exposing the API of a Trolley.

Summary

Public Methods
abstract boolean addTrolleyInsertionListener(TrolleyInsertionListener listener)
Add a listener that is used in order to manage the insertion and extraction events from the Trolley.
abstract boolean isDeviceInTrolley()
Checks if the device is inserted in the Trolley.
abstract boolean removeTrolleyInsertionListener(TrolleyInsertionListener listener)
Remove a listener previously inserted by the specific add method.

Public Methods

public abstract boolean addTrolleyInsertionListener (TrolleyInsertionListener listener)

Added in revision 3

Add a listener that is used in order to manage the insertion and extraction events from the Trolley.

Parameters
listener The TrolleyInsertionListener to add.
Returns
  • boolean true in case of success, false otherwise.

public abstract boolean isDeviceInTrolley ()

Added in revision 3

Checks if the device is inserted in the Trolley.

Returns
  • boolean true if the device is inside the Trolley, false otherwise or in case of failure in the detection.

public abstract boolean removeTrolleyInsertionListener (TrolleyInsertionListener listener)

Added in revision 3

Remove a listener previously inserted by the specific add method.

Parameters
listener The TrolleyInsertionListener to remove.
Returns
  • boolean true in case of success, false otherwise.