Class

NFCNDEFPayload

A payload record in an NFC NDEF message.

Declaration

@interface NFCNDEFPayload : NSObject

Overview

An NDEF message payload consists of the Type Name Format field (as defined by the NDEF specification), type, identifier, and data.

Topics

Creating a Payload Record

+ wellKnownTypeURIPayloadWithURL:

Creates a payload record with a URI specified as a URL.

+ wellKnownTypeURIPayloadWithString:

Creates a payload record with a URI specified as a string.

+ wellKnownTypeTextPayloadWithString:locale:

Creates a payload record with text.

- initWithFormat:type:identifier:payload:

Initializes a payload record with the specified format, type, identifier, and payload data.

- initWithFormat:type:identifier:payload:chunkSize:

Initializes a payload record with the specified format, type, identifier, payload data, and data chunk size.

+ wellKnowTypeTextPayloadWithString:locale:

Creates a payload record with text.

Deprecated

Getting Information About a Payload Record

identifier

The identifier of the payload, as defined by the NDEF specification.

payload

The payload, as defined by the NDEF specification.

type

The type of the payload, as defined by the NDEF specification.

typeNameFormat

The Type Name Format field of the payload, as defined by the NDEF specification.

NFCTypeNameFormat

The Type Name Format values that specify the content type for the payload data in an NFC NDEF message.

Getting the URI from a Payload Record

- wellKnownTypeURIPayload

Returns the URL of a valid Well Known Type URI payload.

Getting Text from a Payload Record

- wellKnownTypeTextPayloadWithLocale:

Returns the text of a valid Well Known Type Text payload.

Relationships

Inherits From

Conforms To

See Also

NDEF Messages and Payloads

NFCNDEFMessage

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