NfcAdapter.DefaultAdapter Property
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
Legacy NfcAdapter getter, always use #getDefaultAdapter(Context)
instead.
[System.Obsolete("deprecated")]
public static Android.Nfc.NfcAdapter? DefaultAdapter { [Android.Runtime.Register("getDefaultAdapter", "()Landroid/nfc/NfcAdapter;", "")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getDefaultAdapter", "()Landroid/nfc/NfcAdapter;", "")>]
static member DefaultAdapter : Android.Nfc.NfcAdapter
Property Value
- Attributes
Remarks
Legacy NfcAdapter getter, always use #getDefaultAdapter(Context)
instead.
This method was deprecated at API level 10 (Gingerbread MR1) because a context is required for many NFC API methods. Those methods will fail when called on an NfcAdapter object created from this method.
This member is deprecated. use #getDefaultAdapter(Context)
Java documentation for android.nfc.NfcAdapter.getDefaultAdapter()
.
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.