---
title: "readNDEF(completionHandler:)"
framework: corenfc
role: symbol
role_heading: Instance Method
path: "corenfc/nfcndeftag/readndef(completionhandler:)"
---

# readNDEF(completionHandler:)

Retrieves an NDEF message from the tag.

## Declaration

```swift
func readNDEF(completionHandler: @escaping @Sendable (NFCNDEFMessage?, (any Error)?) -> Void)
```

```swift
func readNDEF() async throws -> NFCNDEFMessage
```

## Parameters

- `completionHandler`: The handler invoked by the reader session that provides the NDEF message. The handler has the following parameters: The session calls completionHandler on the dispatch queue provided when creating the doc://com.apple.corenfc/documentation/CoreNFC/NFCNDEFReaderSession.
