onTagFromIntent property

set onTagFromIntent (Future<void> handler(NfcTag tag)?)

Tags delivered by an intent filter rather than by a reader session.

Requires intent filters in the application's manifest -- they name the app's own launcher activity, so the plugin cannot declare them. See the README.

Implementation

set onTagFromIntent(Future<void> Function(NfcTag tag)? handler) {
  NfcCallbacks.instance.intentTagHandler = handler;
}