Android.Nfc.Tech.MifareUltralight.WritePage Method
Write 1 page (4 bytes).

Syntax

[Android.Runtime.Register("writePage", "(I[B)V", "")]
public void WritePage (int p0, byte[] p1)

Parameters

pageOffset
index of page to write, starting from 0
data
4 bytes to write

Exceptions

TypeReason
Android.Nfc.TagLostExceptionif the tag leaves the field
Java.IO.IOExceptionif there is an I/O failure, or the operation is canceled

Remarks

Write 1 page (4 bytes).

The MIFARE Ultralight protocol always writes 1 page at a time, to minimize EEPROM write cycles.

This is an I/O operation and will block until complete. It must not be called from the main application thread. A blocked call will be canceled with Java.IO.IOException if MifareUltralight.Close is called from another thread.

Requires the NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#NFC permission.

[Android Documentation]

Requirements

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