# NFCAdapter.onDiscovered(function callback)
Start from base library version 2.11.2. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support
to monitor NFC Day
# parameter
# function callback
Callback function
# parameter
# Object res
| attribute | type | Introductions |
|---|---|---|
| techs | Array | tech Array for matching NFC cards to be processed using specific criteria (NfcA, etc.) |
| messages | Array | NdefMessage Array, the message format is {id: ArrayBuffer, type: ArrayBuffer, payload: ArrayBuffer} |