-
Notifications
You must be signed in to change notification settings - Fork 34
NDEFMessage
treastrain edited this page May 17, 2021
·
2 revisions
public struct NDEFMessage
Creates an NDEF message with the specified records.
@available(*, unavailable, message: "This initializer is not yet implemented.")
public init(records: [NDEFPayload])
- records: An array of payload objects for the message. To create an empty message, pass in an empty array.
Creates an NDEF message from raw data representing the message.
@available(*, unavailable, message: "This initializer is not yet implemented.")
public init?(data: Data)
- data: A data object containing the raw bytes of a complete NDEF message. The data must contain only one NDEF message, and the message must contain NDEF payloads that are valid according to the NFC Forum NDEF RTD specification.
os(iOS) && !targetEnvironment(macCatalyst)
-
@available(iOS 13.0, *) public init(from coreNFCInstance: CoreNFC.NFCNDEFMessage)
An array of records for the message.
public let records: [NDEFPayload]
The length, in bytes, of the NDEF message when stored on an NFC tag.
public let length: Int
The maximum length of an NDEF message is 128 KB.
Generated at 2021-10-28T15:36:42+0000 using swift-doc 1.0.0-rc.1.