Class BleNfcTag
java.lang.Object
com.regula.documentreader.api.nfc.BleNfcTag
- All Implemented Interfaces:
IUniversalNfcTag
Tag for read NFC using Bluetooth device
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
connect()
Method to connect to a chipBLEWrapper
int
Response timeoutbyte[]
sendApduCommand
(byte[] bytes) Method receives command that need to be send to a chipvoid
setTransceiveTimeout
(int i) Method set up tranceive timeout
-
Constructor Details
-
BleNfcTag
public BleNfcTag(BLEWrapper bleManager)
-
-
Method Details
-
sendApduCommand
public byte[] sendApduCommand(byte[] bytes) Description copied from interface:IUniversalNfcTag
Method receives command that need to be send to a chip- Specified by:
sendApduCommand
in interfaceIUniversalNfcTag
- Parameters:
bytes
- apdu command to a chip- Returns:
- Response from chip
-
getBleManager
public BLEWrapper getBleManager() -
getTransceiveTimeout
public int getTransceiveTimeout()Description copied from interface:IUniversalNfcTag
Response timeout- Specified by:
getTransceiveTimeout
in interfaceIUniversalNfcTag
- Returns:
- return timeout
-
setTransceiveTimeout
public void setTransceiveTimeout(int i) Description copied from interface:IUniversalNfcTag
Method set up tranceive timeout- Specified by:
setTransceiveTimeout
in interfaceIUniversalNfcTag
- Parameters:
i
- time in miliseconds
-
connect
public void connect()Description copied from interface:IUniversalNfcTag
Method to connect to a chip- Specified by:
connect
in interfaceIUniversalNfcTag
-
cardAbsent
public void cardAbsent()
-