com.datalogic.extension.selfshopping.cradle.Cradle |
Known Indirect Subclasses |
Interface exposing the API of a generic Cradle.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Cradle.InsertionState | Enumerative representing an insertion state depending on the device's position. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a listener that is used in order to manage the insertion and
extraction events from the Cradle.
| |||||||||||
Returns the current device insertion state.
| |||||||||||
Returns the platform dependent Cradle API type.
| |||||||||||
Checks if the device is inserted in the Cradle.
| |||||||||||
Remove a listener previously inserted by the specific add method.
|
Add a listener that is used in order to manage the insertion and extraction events from the Cradle.
listener | The CradleInsertionListener to add. |
---|
boolean
true in case of success, false otherwise.
Returns the current device insertion state.
Cradle.InsertionState
representing the current device
insertion state.
Returns the platform dependent Cradle API type. This method does not refer to the type of Cradle the device is inserted into but only to the different API that can be called from the current device.
CradleType
specifying the current Cradle API type.
Checks if the device is inserted in the Cradle.
boolean
true if the device is inside the Cradle,
false otherwise or in case of failure in the detection.
Remove a listener previously inserted by the specific add method.
listener | The CradleInsertionListener to remove. |
---|
boolean
true in case of success, false otherwise.