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 TypeMethodDescriptionvoidvoidconnect()Method to connect to a chipBLEWrapperintResponse timeoutbyte[]sendApduCommand(byte[] bytes) Method receives command that need to be send to a chipvoidsetTransceiveTimeout(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:IUniversalNfcTagMethod receives command that need to be send to a chip- Specified by:
sendApduCommandin interfaceIUniversalNfcTag- Parameters:
bytes- apdu command to a chip- Returns:
- Response from chip
-
getBleManager
public BLEWrapper getBleManager() -
getTransceiveTimeout
public int getTransceiveTimeout()Description copied from interface:IUniversalNfcTagResponse timeout- Specified by:
getTransceiveTimeoutin interfaceIUniversalNfcTag- Returns:
- return timeout
-
setTransceiveTimeout
public void setTransceiveTimeout(int i) Description copied from interface:IUniversalNfcTagMethod set up tranceive timeout- Specified by:
setTransceiveTimeoutin interfaceIUniversalNfcTag- Parameters:
i- time in miliseconds
-
connect
public void connect()Description copied from interface:IUniversalNfcTagMethod to connect to a chip- Specified by:
connectin interfaceIUniversalNfcTag
-
cardAbsent
public void cardAbsent()
-