public interface RFCardReaderOperationResult extends OperationResult
RFCardReaderOperationResult
interface provides the results of operations performed by an RF card reader.
It extends the OperationResult
interface, including additional information specific to RF card reader operations.
The result code of an operation can be obtained using getResultCode()
,
which is inherited from OperationResult
. This code indicates the success or type of error that occurred during the operation.
It also defines several error constants specific to RF card communication and protocol issues:
ERR_COMMUNICATION
- Indicates a communication error with the card (e.g., parity, CRC errors).ERR_PROTOCOL
- Signifies a protocol error in the communication with the card.ERR_CARD_UNREACHABLE
- Occurs when the card does not respond to a request.ERR_MULTI_CARD
- Triggered when multiple cards are detected simultaneously.Methods:
getCard()
- Retrieves the card involved in the operation, which can be an instance of MifareCard
,
MifareUltralightCard
, or CPUCard
.Modifier and Type | Field and Description |
---|---|
static int |
ERR_CARD_UNREACHABLE
Error constant indicating the card did not respond to a request.
|
static int |
ERR_COMMUNICATION
Error constant indicating a communication error with the card, such as parity or CRC errors.
|
static int |
ERR_MULTI_CARD
Error constant indicating multiple cards have been detected simultaneously.
|
static int |
ERR_PROTOCOL
Error constant signifying a protocol error during communication with the card.
|
CANCEL, ERR_DEVICE_BASE, ERR_GENERAL_ERROR, ERR_NO_INFO, ERR_NO_PERMISSION, ERR_TIMEOUT, NONE, SUCCESS
Modifier and Type | Method and Description |
---|---|
Card |
getCard()
Retrieves the card involved in the operation.
|
getResultCode
static final int ERR_COMMUNICATION
static final int ERR_PROTOCOL
static final int ERR_CARD_UNREACHABLE
static final int ERR_MULTI_CARD
Card getCard()
MifareCard
,
MifareUltralightCard
, or CPUCard
. Returns null if no card is associated with the result.