語言

NfcAdapter.DefaultAdapter 屬性

定義

警告

deprecated

舊款 NfcAdapter 獲取器,永遠 #getDefaultAdapter(Context) 用它代替。

[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

屬性值

屬性

備註

舊款 NfcAdapter 獲取器,永遠 #getDefaultAdapter(Context) 用它代替。

此方法在 API 層級 10(Gingerbread MR1)時被棄用,因為許多 NFC API 方法需要上下文。 這些方法在呼叫由此方法建立的 NfcAdapter 物件時會失敗。

此會員已被棄用。 用途 #getDefaultAdapter(Context)

Java 文件 android.nfc.NfcAdapter.getDefaultAdapter()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於