Changes the NDEF tag status to read-only, preventing future write operations.
- iOS 13.0+
- Mac Catalyst 13.0+
- Core NFC
The handler invoked by the reader session after completing the lock request. The session calls
completionon the dispatch queue provided when creating the
The handler has the following parameter:
NSErrorobject if the write request fails. A value of
nilindicates that the session locked the tag and future write requests aren't possible.
Calling this method updates the write access condition byte in the NDEF File Control of the tag's file system, thus locking the tag. This is a permanent action that you cannot undo. After locking the tag, you can no longer write data to it.