public class DLCradleManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.String binaryPath,
long size)
Performs Cradle Firmware update procedure.
|
AvailableSourcePower |
getAvailableSourcePowerLevel()
Returns the available source power to charge the Device into the Cradle as instance of
AvailableSourcePower. |
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.
|
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 listener) method. |
boolean |
removeInsertionEventListener(CradleInsertionEventListener listener)
Remove an Insertion listener previously added with the
addInsertionEventListener(CradleInsertionEventListener listener) method. |
boolean |
removeUnlockEventListener(CradleUnlockEventListener listener)
Remove an Unlock listener previously added with the
addUnlockEventListener(CradleUnlockEventListener listener) method. |
boolean |
removeUnlockKeyEventListener(CradleUnlockKeyEventListener listener)
Remove an Unlock Key Event listener previously added with the
addUnlockKeyEventListener(CradleUnlockKeyEventListener listener) method. |
boolean |
setLeverStatus(LeverStatus levelStatus)
Sets the new position related to the Cradle lever.
|
public static DLCradleManager getInstance()
DLCradleManager.public InsertionState getInsertionState()
InsertionState.InsertionState of the Device.public AvailableSourcePower getAvailableSourcePowerLevel()
AvailableSourcePower.AvailableSourcePower configured to charge the Device.public boolean addInsertionEventListener(CradleInsertionEventListener listener)
listener - The CradleInsertionEventListener to be added.boolean true in case of success, false otherwise.public boolean removeInsertionEventListener(CradleInsertionEventListener listener)
addInsertionEventListener(CradleInsertionEventListener listener) method.listener - The CradleInsertionEventListener to be removed.boolean true in case of success, false otherwise.public boolean addFailureEventListener(CradleFailureEventListener listener)
listener - The CradleFailureEventListener to be added.boolean true in case of success, false otherwise.public boolean removeFailureEventListener(CradleFailureEventListener listener)
addFailureEventListener(CradleFailureEventListener listener) method.listener - The CradleFailureEventListener to be removed.boolean true in case of success, false otherwise.public boolean addUnlockKeyEventListener(CradleUnlockKeyEventListener listener)
listener - The CradleUnlockKeyEventListener to be added.boolean true in case of success, false otherwise.public boolean removeUnlockKeyEventListener(CradleUnlockKeyEventListener listener)
addUnlockKeyEventListener(CradleUnlockKeyEventListener listener) method.listener - The CradleUnlockKeyEventListener to be removed.boolean true in case of success, false otherwise.public boolean addUnlockEventListener(CradleUnlockEventListener listener)
listener - The CradleUnlockEventListener to be added.boolean true in case of success, false otherwise.public boolean removeUnlockEventListener(CradleUnlockEventListener listener)
addUnlockEventListener(CradleUnlockEventListener listener) method.listener - The CradleUnlockEventListener to be removed.boolean true in case of success, false otherwise.public int rebootCradle()
DeviceException - in case of error.public Type getType()
Type of the Cradle where the device is inserted in.public LeverStatus getLeverStatus()
LeverStatus of the Cradle.public boolean setLeverStatus(LeverStatus levelStatus)
levelStatus - The required LeverStatus of the Cradle lever.boolean true in case of success, false otherwise.public UnlockKeyStatus getUnlockKeyStatus()
UnlockKeyStatus of the unlock key.public int firmwareUpgrade(java.lang.String binaryPath,
long size)
binaryPath - the String path where the binary file is stored.size - the String dimension of the binary file.boolean true in case of success, false otherwise.DeviceException - in case of error.