public interface PINPadDeviceSpec extends DeviceSpec
PINPadDeviceSpec interface specifies the capabilities and features of a PINPad device.
It extends the DeviceSpec interface, providing methods specific to PINPad devices.
This interface allows for querying the capabilities of PINPad devices, including the number of devices supported, whether the device is internal or external, and the support for additional functionalities like generating random numbers and displaying text.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetRandom(int logicalID)
Checks if the device supports generating random numbers.
|
boolean |
canShowText(int logicalID)
Checks if the device supports displaying text.
|
int |
getCounts()
Retrieves the count of supported PINPad devices.
|
boolean |
isInternal(int logicalID)
Determines if the PINPad device is internal.
|
int getCounts()
boolean isInternal(int logicalID)
Internal devices typically have a system-provided UI for password input.
logicalID - The logical ID of the device, usually 1 by default.true if the device is internal, false if external or on parameter error/not supported.boolean canGetRandom(int logicalID)
logicalID - The logical ID of the device, usually 1 by default.true if random number generation is supported, false otherwise or on parameter error/not supported.boolean canShowText(int logicalID)
logicalID - The logical ID of the device, usually 1 by default.true if text display is supported, false otherwise or on parameter error/not supported.