nfc_manager_new 0.0.1 copy "nfc_manager_new: ^0.0.1" to clipboard
nfc_manager_new: ^0.0.1 copied to clipboard

nfc plugin to manage nfc tag and set password , remove password and auth with password.

nfc_manager_new #

nfc plugin to manage nfc tag and set password , remove password and auth with password.

Getting Started #

Note: This plugin depends on NFCTagReaderSession (requires iOS 13.0 or later) and NfcAdapter#enableReaderMode (requires Android API level 19 or later).

Setup #

Android Setup

iOS Setup

Usage #

Handling Session

// Check availability
bool isAvailable = await NfcManager.instance.isAvailable();

// Start Session
NfcManager.instance.startSession(
  onDiscovered: (NfcTag tag) async {
    // Do something with an NfcTag instance.
  },
);

// Stop Session
NfcManager.instance.stopSession();

Handling Platform Tag

The following platform-tag-classes are available:

  • Ndef
  • FeliCa (iOS only)
  • Iso7816 (iOS only)
  • Iso15693 (iOS only)
  • MiFare (iOS only)
  • NfcA (Android only)
  • NfcB (Android only)
  • NfcF (Android only)
  • NfcV (Android only)
  • IsoDep (Android only)
  • MifareClassic (Android only)
  • MifareUtralight (Android only)
  • NdefFormatable (Android only)

Obtain an instance by calling the factory constructor from on the class. For example:

Ndef? ndef = Ndef.from(tag);

if (ndef == null) {
  print('Tag is not compatible with NDEF');
  return;
}

// Do something with an Ndef instance

Please see the API Doc for more details.

Real-World-App #

See this repo which is a Real-World-App demonstrates how to use this plugin.

2
likes
100
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

nfc plugin to manage nfc tag and set password , remove password and auth with password.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

convert, flutter, plugin_platform_interface

More

Packages that depend on nfc_manager_new