NfcAdapter.EnableForegroundNdefPush(Activity, NdefMessage) 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.
Caution
deprecated
Enable NDEF message push over NFC while this Activity is in the foreground.
[Android.Runtime.Register("enableForegroundNdefPush", "(Landroid/app/Activity;Landroid/nfc/NdefMessage;)V", "")]
[System.Obsolete("deprecated")]
public void EnableForegroundNdefPush (Android.App.Activity? activity, Android.Nfc.NdefMessage? message);
[<Android.Runtime.Register("enableForegroundNdefPush", "(Landroid/app/Activity;Landroid/nfc/NdefMessage;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.EnableForegroundNdefPush : Android.App.Activity * Android.Nfc.NdefMessage -> unit
Parameters
- activity
- Activity
foreground activity
- message
- NdefMessage
a NDEF Message to push over NFC
- 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.