NfcAdapter.IsEnabled 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.
Return true if this NFC Adapter has any features enabled.
public bool IsEnabled { [Android.Runtime.Register("isEnabled", "()Z", "")] get; }
[<get: Android.Runtime.Register("isEnabled", "()Z", "")>]
member this.IsEnabled : bool
Property Value
true if this NFC Adapter has any features enabled
- Attributes
Remarks
Return true if this NFC Adapter has any features enabled.
If this method returns false, the NFC hardware is guaranteed not to generate or respond to any NFC communication over its NFC radio.
Applications can use this to check if NFC is enabled. Applications can request Settings UI allowing the user to toggle NFC using:
startActivity(new Intent(Settings.ACTION_NFC_SETTINGS))
Java documentation for android.nfc.NfcAdapter.isEnabled()
.
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.