Freigeben über


NfcAdapter.DefaultAdapter Property

Definition

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.

Applies to