Class

NFCNDEFMessage

An NFC NDEF message consisting of an array of payload records.

Declaration

class NFCNDEFMessage : NSObject

Topics

Creating an NDEF Message

init(records: [NFCNDEFPayload])

Creates an NDEF message with the specified records.

Beta
init?(data: Data)

Creates an NDEF message from raw data representing the message.

Beta

Accessing NDEF Records

var records: [NFCNDEFPayload]

An array of records for the message.

Getting the Message Length

var length: Int

The length, in bytes, of the NDEF message when stored on an NFC tag.

Beta

Relationships

Inherits From

See Also

NDEF Messages and Payloads

class NFCNDEFPayload

A payload record in an NFC NDEF message.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software