Show / Hide Table of Contents

NdefDataReader Class

Namespace: Yubico.YubiKey.Otp Assembly: Yubico.YubiKey.dll

Reads NDEF Record data types supported by the YubiKey.

C#
public class NdefDataReader
Inheritance object NdefDataReader

Remarks

This class is used to interpret the byte array returned by the ReadNdefDataResponse class. Note that this class does not interpret the Configuration Container data that can also be returned through the same API. That data is not technically an NDEF message or record.

Constructors

Name Description
NdefDataReader(ReadOnlySpan<byte>)

Constructs a new instance of the NdefDataReader class.

Properties

Name Description
Data

Returns the uninterpreted data inside of the NDEF record.

Type

Indicates the type of NDEF record that was read.

Methods

Name Description
ToText()

Interprets the NDEF data as a text record.

ToUri()

Interprets the NDEF data as a URI record.

In this article
Back to top Generated by DocFX