Class NdefConfig
A static class containing helpers that encode configurations for different types of NDEF data.
public static class NdefConfig
- Inheritance
-
objectNdefConfig
Methods
CreateTextConfig(string, string, bool)
Create a configuration buffer for the YubiKey to send text when NDEF is triggered.
public static byte[] CreateTextConfig(string value, string languageCode, bool encodeAsUtf16 = false)
Parameters
value
stringThe text value to send.
languageCode
stringThe ISO/IANA language code for the language of
value
.encodeAsUtf16
boolIndicates whether UTF16 Big Endian encoding is preferred. Default is false, denoting a UTF8 encoding.
Returns
- byte[]
An opaque configuration buffer that can be written to the YubiKey using the ConfigureNdefCommand command class.
CreateUriConfig(Uri)
Create a configuration buffer for the YubiKey to send a URI when NDEF is triggered.
public static byte[] CreateUriConfig(Uri uri)
Parameters
uri
UriThe URI to send over NDEF.
Returns
- byte[]
An opaque configuration buffer that can be written to the YubiKey using the ConfigureNdefCommand command class.