public class

NfcManager

extends Object
java.lang.Object
   ↳ com.datalogic.device.nfc.NfcManager

Class Overview

This class provides access to enable and disable the nfc adapter

Summary

Public Constructors
NfcManager()
This is the constructor of NfcManager.
Public Methods
int enableNfcAdapter(boolean enable)
Enables the nfc adapter.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NfcManager ()

Added in revision 1

This is the constructor of NfcManager.

Throws
DeviceException in case of error.

Public Methods

public int enableNfcAdapter (boolean enable)

Added in revision 1

Enables the nfc adapter.

Parameters
enable a boolean that indicates whether to enable or to disable the nfc adapter.
Returns
  • int SUCCESS in case of success, otherwise a possible error code, matching one of the DeviceException error constants.
Throws
DeviceException in case of error, when exceptions are enabled through the ErrorManager singleton.