queryNDEFStatus(completionHandler:)
Asks the reader session for the NDEF support status of the tag.
Declaration
func queryNDEFStatus(completionHandler: @escaping @Sendable (NFCNDEFStatus, Int, (any Error)?) -> Void)func queryNDEFStatus() async throws -> (NFCNDEFStatus, Int)Parameters
- completionHandler:
The handler invoked by the reader session that provides the NDEF support status. The handler has the following parameters:
- status
The Nfcndefstatus of the tag.
- capacity
Indicates the maximum NDEF message size, in bytes, that you can store on the tag.
- error
An Nserror object if the query fails; otherwise,
nil.
The session calls
completionHandleron the dispatch queue provided when creating the Nfcndefreadersession.