public class

DLCradleManager

extends Object
java.lang.Object
   ↳ com.datalogic.cradle.DLCradleManager

Class Overview

This class provides access to Cradle related methods of the device.

Summary

Public Methods
boolean addFailureEventListener(CradleFailureEventListener listener)
Add a Failure listener used to be notify about failure events occurred on the Cradle.
boolean addInsertionEventListener(CradleInsertionEventListener listener)
Add an Insertion listener used to be notify about insertion and extraction events from the Cradle.
boolean addUnlockEventListener(CradleUnlockEventListener listener)
Add a Unlock listener used to be notify about Lever status changed events occurred on the Cradle.
boolean addUnlockKeyEventListener(CradleUnlockKeyEventListener listener)
Add an Unlock Key Event listener used to be notify about Unlock Key events occurred on the Cradle.
int firmwareUpgrade(String binaryPath, long size)
Performs Cradle Firmware update procedure.
int firmwareUpgradeAbort()
Abort Cradle Firmware update procedure
AvailableSourcePower getAvailableSourcePowerLevel()
Returns the available source power to charge the Device into the Cradle as instance of AvailableSourcePower.
int getInsertionCount()
Returns the current insertion count for this Cradle slot
InsertionState getInsertionState()
Returns the position of the Device related to the Cradle as instance of InsertionState.
static DLCradleManager getInstance()
Returns an instance of the DLCradleManager.
LeverStatus getLeverStatus()
Returns the current position related to the Cradle lever.
int getSlotIndex()
Returns the Cradle slot index where the device is inserted in
Type getType()
Returns the Cradle type.
UnlockKeyStatus getUnlockKeyStatus()
Returns the current position related to the unlock key.
int rebootCradle()
Reboot the Cradle.
boolean removeFailureEventListener(CradleFailureEventListener listener)
Remove a Failure listener previously added with the addFailureEventListener(CradleFailureEventListener) method.
boolean removeInsertionEventListener(CradleInsertionEventListener listener)
Remove an Insertion listener previously added with the addInsertionEventListener(CradleInsertionEventListener) method.
boolean removeUnlockEventListener(CradleUnlockEventListener listener)
Remove an Unlock listener previously added with the addUnlockEventListener(CradleUnlockEventListener) method.
boolean removeUnlockKeyEventListener(CradleUnlockKeyEventListener listener)
Remove an Unlock Key Event listener previously added with the addUnlockKeyEventListener(CradleUnlockKeyEventListener) method.
boolean setLeverStatus(LeverStatus levelStatus)
Sets the new position related to the Cradle lever.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean addFailureEventListener (CradleFailureEventListener listener)

Added in revision 24

Add a Failure listener used to be notify about failure events occurred on the Cradle.

Parameters
listener The CradleFailureEventListener to be added.
Returns
  • boolean true in case of success, false otherwise.

public boolean addInsertionEventListener (CradleInsertionEventListener listener)

Added in revision 23

Add an Insertion listener used to be notify about insertion and extraction events from the Cradle.

Parameters
listener The CradleInsertionEventListener to be added.
Returns
  • boolean true in case of success, false otherwise.

public boolean addUnlockEventListener (CradleUnlockEventListener listener)

Added in revision 24

Add a Unlock listener used to be notify about Lever status changed events occurred on the Cradle.

Parameters
listener The CradleUnlockEventListener to be added.
Returns
  • boolean true in case of success, false otherwise.

public boolean addUnlockKeyEventListener (CradleUnlockKeyEventListener listener)

Added in revision 23

Add an Unlock Key Event listener used to be notify about Unlock Key events occurred on the Cradle.

Parameters
listener The CradleUnlockKeyEventListener to be added.
Returns
  • boolean true in case of success, false otherwise.

public int firmwareUpgrade (String binaryPath, long size)

Added in revision 23

Performs Cradle Firmware update procedure.

Parameters
binaryPath the String path where the binary file is stored.
size the String dimension of the binary file.
Returns
  • boolean true in case of success, false otherwise.
Throws
in case of error.

public int firmwareUpgradeAbort ()

Added in revision 34

Abort Cradle Firmware update procedure

Returns
  • Integer true in case of success, false otherwise.

public AvailableSourcePower getAvailableSourcePowerLevel ()

Added in revision 16

Returns the available source power to charge the Device into the Cradle as instance of AvailableSourcePower.

Returns

public int getInsertionCount ()

Added in revision 33

Returns the current insertion count for this Cradle slot

Returns
  • Integer of the current insertion count for this Cradle slot.

public InsertionState getInsertionState ()

Added in revision 16

Returns the position of the Device related to the Cradle as instance of InsertionState.

Returns

public static DLCradleManager getInstance ()

Added in revision 16

Returns an instance of the DLCradleManager.

Returns
  • The Cradle Manager.

public LeverStatus getLeverStatus ()

Added in revision 24

Returns the current position related to the Cradle lever.

Returns

public int getSlotIndex ()

Added in revision 33

Returns the Cradle slot index where the device is inserted in

Returns
  • Integer of the Cradle slot index where the device is inserted in.

public Type getType ()

Added in revision 27

Returns the Cradle type.

Returns
  • Type of the Cradle where the device is inserted in.

public UnlockKeyStatus getUnlockKeyStatus ()

Added in revision 23

Returns the current position related to the unlock key.

Returns

public int rebootCradle ()

Added in revision 27

Reboot the Cradle.

Returns
  • int Returns 1 if the cradle has been rebooted sucessfully, error otherwise.
Throws
in case of error.

public boolean removeFailureEventListener (CradleFailureEventListener listener)

Added in revision 24

Remove a Failure listener previously added with the addFailureEventListener(CradleFailureEventListener) method.

Parameters
listener The CradleFailureEventListener to be removed.
Returns
  • boolean true in case of success, false otherwise.

public boolean removeInsertionEventListener (CradleInsertionEventListener listener)

Added in revision 23

Remove an Insertion listener previously added with the addInsertionEventListener(CradleInsertionEventListener) method.

Parameters
listener The CradleInsertionEventListener to be removed.
Returns
  • boolean true in case of success, false otherwise.

public boolean removeUnlockEventListener (CradleUnlockEventListener listener)

Added in revision 24

Remove an Unlock listener previously added with the addUnlockEventListener(CradleUnlockEventListener) method.

Parameters
listener The CradleUnlockEventListener to be removed.
Returns
  • boolean true in case of success, false otherwise.

public boolean removeUnlockKeyEventListener (CradleUnlockKeyEventListener listener)

Added in revision 23

Remove an Unlock Key Event listener previously added with the addUnlockKeyEventListener(CradleUnlockKeyEventListener) method.

Parameters
listener The CradleUnlockKeyEventListener to be removed.
Returns
  • boolean true in case of success, false otherwise.

public boolean setLeverStatus (LeverStatus levelStatus)

Added in revision 24

Sets the new position related to the Cradle lever.

Parameters
levelStatus The required LeverStatus of the Cradle lever.
Returns
  • boolean true in case of success, false otherwise.