---
title: "wellKnownTypeTextPayload(string:locale:)"
framework: corenfc
role: symbol
role_heading: Type Method
path: "corenfc/nfcndefpayload/wellknowntypetextpayload(string:locale:)"
---

# wellKnownTypeTextPayload(string:locale:)

Creates a payload record with text.

## Declaration

```swift
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

Return Value An NDEF payload record.

## See Also

### Creating a Payload Record

- [wellKnownTypeURIPayload(url:)](corenfc/nfcndefpayload/wellknowntypeuripayload(url:).md)
- [wellKnownTypeURIPayload(string:)](corenfc/nfcndefpayload/wellknowntypeuripayload(string:).md)
- [init(format:type:identifier:payload:)](corenfc/nfcndefpayload/init(format:type:identifier:payload:).md)
- [init(format:type:identifier:payload:chunkSize:)](corenfc/nfcndefpayload/init(format:type:identifier:payload:chunksize:).md)
- [wellKnowTypeTextPayload(string:locale:)](corenfc/nfcndefpayload/wellknowtypetextpayload(string:locale:).md)
