- Notifications
You must be signed in to change notification settings - Fork1
NFC Forum Well Known Type Data Parser for iOS11 and Core NFC
License
NotificationsYou must be signed in to change notification settings
jvk75/NFCNDEFParse
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NFC Forum Well Known Type Data Parser for iOS11 and Core NFC.
Supports parsing of types:
Text - NFCForum-TS-RTD_Text_1.0 2006-07-24
Uri - NFCForum-TS-RTD_URI_1.0 2006-07-24
Smart Poster - NFCForum-SmartPoster_RTD_1.0 2006-07-24 (title, uri, action, size)
Core NFC requires iOS11 (and Xcode 9)
NFCNDEFParse is available throughCocoaPods. To installit, simply add the following line to your Podfile:
pod 'NFCNDEFParse'
Note: For non CocoaPods usage and more details see Examples!
Swift:
import NFCNDEFParse
Objective-C:
@import NFCNDEFParse;
var data: [NDEFMessageWithWellKnownTypes] = []
func readerSession(_ session: NFCNDEFReaderSession, didDetectNDEFs messages: [NFCNDEFMessage]) { data = messages.flatMap({ NDEFMessageWithWellKnownTypes(records: $0.records) })}
data.forEach({ message in print("message: ") message.records.forEach({ record in print(record.description) })})
Jari Kalinainen,jari@klubitii.com
NFCNDEFParse is available under the MIT license. See the LICENSE file for more info.
About
NFC Forum Well Known Type Data Parser for iOS11 and Core NFC
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published