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 - CradleExceptionpublic void disable()
throws CradleException
none - CradleExceptionpublic boolean isEnabled()
throws CradleException
none - CradleExceptionpublic CradleInfo getCradleInfo() throws CradleException
none - CradleExceptionpublic 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 definitionCradleExceptionpublic 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