NfcAdapter.EnableForegroundDispatch(Activity, PendingIntent, IntentFilter[], String[][]) Method

Definition

Enable foreground dispatch to the given Activity.

[Android.Runtime.Register("enableForegroundDispatch", "(Landroid/app/Activity;Landroid/app/PendingIntent;[Landroid/content/IntentFilter;[[Ljava/lang/String;)V", "")]
public void EnableForegroundDispatch (Android.App.Activity? activity, Android.App.PendingIntent? intent, Android.Content.IntentFilter[]? filters, string[][]? techLists);
[<Android.Runtime.Register("enableForegroundDispatch", "(Landroid/app/Activity;Landroid/app/PendingIntent;[Landroid/content/IntentFilter;[[Ljava/lang/String;)V", "")>]
member this.EnableForegroundDispatch : Android.App.Activity * Android.App.PendingIntent * Android.Content.IntentFilter[] * string[][] -> unit

Parameters

activity
Activity

the Activity to dispatch to

intent
PendingIntent

the PendingIntent to start for the dispatch

filters
IntentFilter[]

the IntentFilters to override dispatching for, or null to always dispatch

techLists
String[][]

the tech lists used to perform matching for dispatching of the NfcAdapter#ACTION_TECH_DISCOVERED intent

Attributes

Exceptions

if the Activity is not currently in the foreground

Remarks

Java documentation for android.nfc.NfcAdapter.enableForegroundDispatch(android.app.Activity, android.app.PendingIntent, android.content.IntentFilter[], java.lang.String[][]).

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