Closes the reader session and displays an error message to the user.
- iOS 13.0+
- Mac Catalyst 13.0+
- Core NFC
The error message to display.
Use this method to end the reader session and display a message to the user when an error condition occurs after the app successfully reads a tag. This type of error can occur if, for example, the app reads data from an NFC tag, but determines that the data has expired and discards it. The app then calls
invalidate(error to end the reader session, and to let the user know why it discarded the data.