readerSession(_:didDetectNDEFs:)
Tells the delegate that the session detected NFC tags with NDEF messages.
Declaration
func readerSession(_ session: NFCNDEFReaderSession, didDetectNDEFs messages: [NFCNDEFMessage])Parameters
- session:
The reader session calling this method.
- messages:
An array of the NDEF messages in the order they were discovered on the tag.
Discussion
The reader session calls this method when it detects NFC tags with NDEF messages in the polling sequence. The session restarts polling when the detected tags are no longer within reading range of the iOS device.