connect(to_) - treastrain/TRETJapanNFCReader GitHub Wiki
canImport(CoreNFC)-
Connects the reader session to a tag and activates that tag.
@available(iOS 15.0, *) open func connect(to tag: NFCNDEFTag)
A tag stays connected until your app connects to a different tag or restarts polling. Connecting to a tag that is already connected has no effect.
- tag: A tag to which the reader session should attempt to connect.
A Result with the cases: success: A
Void. failure: AnNFCReaderErrorobject indicating that a communication issue with the tag occurred.
canImport(CoreNFC)-
Connects the reader session to a tag and activates that tag.
@available(iOS 15.0, *) open func connect(to tag: NFCTag)
A tag stays connected until your app connects to a different tag or restarts polling. Connecting to a tag that is already connected has no effect.
- tag: A tag to which the reader session should attempt to connect.
A Result with the cases: success: A
Void. failure: AnNFCReaderErrorobject indicating that a communication issue with the tag occurred.