| java.lang.Object | |
| ↳ | com.datalogic.device.nfc.NfcManager |
This class provides access to enable and disable the nfc adapter
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This is the constructor of NfcManager.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method was deprecated
in revision 50.
use
setNfcAdapterEnabled(boolean) instead.
| |||||||||||
Get the current state of the Host Card Emulation (HCE) functionality of the NFC adapter.
| |||||||||||
Get the NFC technology flags that the system should listen to.
| |||||||||||
Get the current state of the NFC adapter.
| |||||||||||
Get the current NFC categories flags that the system is blocking.
| |||||||||||
Enable the Host Card Emulation (HCE) functionality of the NFC adapter.
| |||||||||||
Set the NFC technology flags that the system should listen to.
| |||||||||||
Enable the NFC adapter.
| |||||||||||
Set the NFC categories flags that the system should block.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This is the constructor of NfcManager.
| DeviceException | in case of error. |
|---|
Get the current state of the Host Card Emulation (HCE) functionality of the NFC adapter.
boolean indicating whether the HCE functionality of the NFC adapter is enabled or not.| DeviceException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Get the NFC technology flags that the system should listen to.
int indicating the NFC categories that the system is listening to,
matching one or more of the NfcHostListenerTechFlags constants.
May return -1 in case of error.
Get the current state of the NFC adapter.
boolean indicating whether the NFC adapter is enabled or not.| DeviceException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Get the current NFC categories flags that the system is blocking.
int indicating the NFC categories that the system is blocking,
matching one or more of the NfcTagDispatchBlockFlags constants.
May return -1 in case of error.| DeviceException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Enable the Host Card Emulation (HCE) functionality of the NFC adapter.
| enable | a boolean that indicates whether to enable or to disable the HCE functionality. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.| DeviceException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Set the NFC technology flags that the system should listen to.
| flags | a int of flags representing the NFC protocol type to enable,
matching one or more of the NfcHostListenerTechFlags constants. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.| DeviceException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Enable the NFC adapter.
| enable | a boolean that indicates whether to enable or to disable the nfc adapter. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.| DeviceException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|
Set the NFC categories flags that the system should block.
| flags | a int of flags representing the NFC categories to block, matching one or more of the NfcTagDispatchBlockFlags constants. |
|---|
int SUCCESS in case of success,
otherwise a possible error code, matching one of the DeviceException error constants.| DeviceException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
|---|