NfcAdapter.DisableForegroundDispatch(Activity) Method

Definition

Disable foreground dispatch to the given activity.

[Android.Runtime.Register("disableForegroundDispatch", "(Landroid/app/Activity;)V", "")]
public void DisableForegroundDispatch (Android.App.Activity? activity);
[<Android.Runtime.Register("disableForegroundDispatch", "(Landroid/app/Activity;)V", "")>]
member this.DisableForegroundDispatch : Android.App.Activity -> unit

Parameters

activity
Activity

the Activity to disable dispatch to

Attributes

Exceptions

if the Activity has already been paused

Remarks

Disable foreground dispatch to the given activity.

After calling #enableForegroundDispatch, an activity must call this method before its Activity#onPause callback completes.

This method must be called from the main thread.

<p class="note">Requires the android.Manifest.permission#NFC permission.

Java documentation for android.nfc.NfcAdapter.disableForegroundDispatch(android.app.Activity).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to