NfcAdapter.EnableForegroundDispatch(Activity, PendingIntent, IntentFilter[], String[][]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.