Android.Nfc.NfcAdapter.EnableReaderMode Method
Limit the NFC controller to reader mode while this Activity is in the foreground.

Syntax

[Android.Runtime.Register("enableReaderMode", "(Landroid/app/Activity;Landroid/nfc/NfcAdapter$ReaderCallback;ILandroid/os/Bundle;)V", "")]
public void EnableReaderMode (Android.App.Activity activity, NfcAdapter.IReaderCallback callback, [Android.Runtime.GeneratedEnum] NfcReaderFlags flags, Android.OS.Bundle extras)

Parameters

activity
the Activity that requests the adapter to be in reader mode
callback
the callback to be called when a tag is discovered
flags
Flags indicating poll technologies and other optional parameters
extras
Additional extras for configuring reader mode.

Remarks

Limit the NFC controller to reader mode while this Activity is in the foreground.

In this mode the NFC controller will only act as an NFC tag reader/writer, thus disabling any peer-to-peer (Android Beam) and card-emulation modes of the NFC adapter on this device.

Use NfcAdapter.FlagReaderSkipNdefCheck to prevent the platform from performing any NDEF checks in reader mode. Note that this will prevent the Android.Nfc.Tech.Ndef tag technology from being enumerated on the tag, and that NDEF-based tag dispatch will not be functional.

For interacting with tags that are emulated on another Android device using Android's host-based card-emulation, the recommended flags are NfcAdapter.FlagReaderNfcA and NfcAdapter.FlagReaderSkipNdefCheck.

[Android Documentation]

Requirements

Namespace: Android.Nfc
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0