Android.Nfc.NdefRecord.CreateTextRecord Method
Create a new NDEF record containing UTF-8 text data.

Syntax

[Android.Runtime.Register("createTextRecord", "(Ljava/lang/String;Ljava/lang/String;)Landroid/nfc/NdefRecord;", "")]
public static NdefRecord CreateTextRecord (string languageCode, string text)

Parameters

languageCode
The languageCode for the record. If locale is empty or null, the language code of the current default locale will be used.
text
The text to be encoded in the record. Will be represented in UTF-8 format.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif text is null

Remarks

Create a new NDEF record containing UTF-8 text data.

The caller can either specify the language code for the provided text, or otherwise the language code corresponding to the current default locale will be used. Reference specification: NFCForum-TS-RTD_Text_1.0

[Android Documentation]

Requirements

Namespace: Android.Nfc
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9