<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCNDEFPayload/wellKnownTypeTextPayload(string:locale:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core NFC",
      "CoreNFC"
    ],
    "preciseIdentifier" : "c:objc(cs)NFCNDEFPayload(cm)wellKnownTypeTextPayloadWithString:locale:"
  },
  "title" : "wellKnownTypeTextPayload(string:locale:)"
}
-->

# wellKnownTypeTextPayload(string:locale:)

Creates a payload record with text.

```
class func wellKnownTypeTextPayload(string text: String, locale: Locale) -> Self?
```

## Parameters

`text`

Text to include in the payload.

`locale`

A locale object. This method saves the IANA language code, specified by the locale, to the payload.

## Return Value

An NDEF payload record.

---

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)