public class Cradle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
CradleConfig |
config
The field to access Cradle configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
disable()
This disables communication to interact with the cradle.
|
void |
enable()
This method enables the communication to interact with the cradle.
|
CradleResults |
flashLed(int ledFlashCount,
CradleLedFlashInfo ledFlashInfo)
The LED can be flashed to identify device location without unlocking the cradle.
|
CradleInfo |
getCradleInfo()
This method gets the information of cradle.
|
boolean |
isEnabled()
Check if cradle has already been enabled
|
CradleResults |
unlock(int unlockDuration,
CradleLedFlashInfo ledFlashInfo)
This unlocks terminal from cradle and flashes the LED.
|
public CradleConfig config
public void enable() throws CradleException
none
- CradleException
public void disable() throws CradleException
none
- CradleException
public boolean isEnabled() throws CradleException
none
- CradleException
public CradleInfo getCradleInfo() throws CradleException
none
- CradleException
public CradleResults unlock(int unlockDuration, CradleLedFlashInfo ledFlashInfo) throws CradleException
unlockDuration:
- The value that specifies how long the lock remains open in seconds.ledFlashInfo:
- The LED blink pattern definitionCradleException
public CradleResults flashLed(int ledFlashCount, CradleLedFlashInfo ledFlashInfo) throws CradleException
ledFlashCount:
- Defines the number of times the led should blink (on/off).ledFlashInfo:
- Defines the LED blink pattern (onDuration, offDuration, smoothness)CradleException