Android.Nfc.NfcAdapter.DisableForegroundDispatch Method
Disable foreground dispatch to the given activity.

Syntax

[Android.Runtime.Register("disableForegroundDispatch", "(Landroid/app/Activity;)V", "")]
public void DisableForegroundDispatch (Android.App.Activity p0)

Parameters

activity
the Activity to disable dispatch to

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the Activity has already been paused

Remarks

Disable foreground dispatch to the given activity.

After calling NfcAdapter.EnableForegroundDispatch(Android.App.Activity, Android.App.PendingIntent, Android.App.PendingIntent, Android.App.PendingIntent), an activity must call this method before its Android.App.Activity.OnPause callback completes.

This method must be called from the main thread.

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

[Android Documentation]

Requirements

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