NdefDataReader Class
Namespace: Yubico.YubiKey.Otp Assembly: Yubico.YubiKey.dllReads NDEF Record data types supported by the YubiKey.
C#
public class NdefDataReader : Object
Inheritance
System.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. |