flutter_nfc_kit icon indicating copy to clipboard operation
flutter_nfc_kit copied to clipboard

How to check if device have NFC ?

Open Suheb786 opened this issue 2 years ago • 1 comments

there are two checks that i want to implement -

1- check if user's device have NFC 2- check if user's has disabled or enabled the NFC

Note- available method only provide if the NFC is enable or disabled, what about the first check

Suheb786 avatar Dec 15 '23 11:12 Suheb786

The method gives an enumeration that already shows support and current operation of the NFC module on the device

 enum NFCAvailability {
  not_supported,
  disabled,
  available,
}

final NFCAvailability nfcAvailability = await FlutterNfcKit.nfcAvailability;

ivangalkindeveloper avatar Dec 25 '23 19:12 ivangalkindeveloper