<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCNDEFPayload",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "c:objc(cs)NFCNDEFPayload"
  },
  "title" : "NFCNDEFPayload"
}
-->

# NFCNDEFPayload

A payload record in an NFC NDEF message.

```
class NFCNDEFPayload
```

## 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:`](/documentation/CoreNFC/NFCNDEFPayload/wellKnownTypeURIPayload(url:))

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

[`+  wellKnownTypeURIPayloadWithString:`](/documentation/CoreNFC/NFCNDEFPayload/wellKnownTypeURIPayload(string:))

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

[`+  wellKnownTypeTextPayloadWithString:locale:`](/documentation/CoreNFC/NFCNDEFPayload/wellKnownTypeTextPayload(string:locale:))

Creates a payload record with text.

[`-  initWithFormat:type:identifier:payload:`](/documentation/CoreNFC/NFCNDEFPayload/init(format:type:identifier:payload:))

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

[`-  initWithFormat:type:identifier:payload:chunkSize:`](/documentation/CoreNFC/NFCNDEFPayload/init(format:type:identifier:payload:chunkSize:))

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

[`+  wellKnowTypeTextPayloadWithString:locale:`](/documentation/CoreNFC/NFCNDEFPayload/wellKnowTypeTextPayload(string:locale:))

Creates a payload record with text.

### Getting Information About a Payload Record

[`identifier`](/documentation/CoreNFC/NFCNDEFPayload/identifier)

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

[`payload`](/documentation/CoreNFC/NFCNDEFPayload/payload)

The payload, as defined by the NDEF specification.

[`type`](/documentation/CoreNFC/NFCNDEFPayload/type)

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

[`typeNameFormat`](/documentation/CoreNFC/NFCNDEFPayload/typeNameFormat)

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

[`NFCTypeNameFormat`](/documentation/CoreNFC/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`](/documentation/CoreNFC/NFCNDEFPayload/wellKnownTypeURIPayload())

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

### Getting Text from a Payload Record

[`wellKnownTypeTextPayload()`](/documentation/CoreNFC/NFCNDEFPayload/wellKnownTypeTextPayload())

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

[`-  wellKnownTypeTextPayloadWithLocale:`](/documentation/CoreNFC/NFCNDEFPayload/wellKnownTypeTextPayloadWithLocale:)

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

## Relationships

### Conforms To

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)