Example usage for Java android.nfc NfcAdapter fields, constructors, methods, implement or subclass
The text is from its open source code.
String | ACTION_NDEF_DISCOVERED Intent to start an activity when a tag with NDEF payload is discovered. |
String | ACTION_TECH_DISCOVERED Intent to start an activity when a tag is discovered and activities are registered for the specific technologies on the tag. |
String | ACTION_TAG_DISCOVERED Intent to start an activity when a tag is discovered. |
String | EXTRA_TAG Mandatory extra containing the Tag that was discovered for the #ACTION_NDEF_DISCOVERED , #ACTION_TECH_DISCOVERED , and #ACTION_TAG_DISCOVERED intents. |
String | EXTRA_NDEF_MESSAGES Extra containing an array of NdefMessage present on the discovered tag. This extra is mandatory for #ACTION_NDEF_DISCOVERED intents, and optional for #ACTION_TECH_DISCOVERED , and #ACTION_TAG_DISCOVERED intents. When this extra is present there will always be at least one NdefMessage element. |
String | EXTRA_ID Optional extra containing a byte array containing the ID of the discovered tag for the #ACTION_NDEF_DISCOVERED , #ACTION_TECH_DISCOVERED , and #ACTION_TAG_DISCOVERED intents. |
String | ACTION_ADAPTER_STATE_CHANGED Broadcast Action: The state of the local NFC adapter has been changed. |
String | EXTRA_ADAPTER_STATE Used as an int extra field in #ACTION_ADAPTER_STATE_CHANGED intents to request the current power state. |
int | STATE_OFF |
int | STATE_TURNING_ON |
int | STATE_ON |
int | STATE_TURNING_OFF |
int | FLAG_READER_NFC_A Flag for use with #enableReaderMode(Activity,ReaderCallback,int,Bundle) . |
int | FLAG_READER_SKIP_NDEF_CHECK Flag for use with #enableReaderMode(Activity,ReaderCallback,int,Bundle) . |
int | FLAG_READER_NO_PLATFORM_SOUNDS Flag for use with #enableReaderMode(Activity,ReaderCallback,int,Bundle) . |
String | EXTRA_READER_PRESENCE_CHECK_DELAY Int Extra for use with #enableReaderMode(Activity,ReaderCallback,int,Bundle) . |
void | disableForegroundDispatch(Activity activity) Disable foreground dispatch to the given activity. |
void | disableForegroundNdefPush(Activity activity) Disable NDEF message push over P2P. |
void | disableReaderMode(Activity activity) Restore the NFC adapter to normal mode of operation: supporting peer-to-peer (Android Beam), card emulation, and polling for all supported tag technologies. |
void | enableForegroundDispatch(Activity activity, PendingIntent intent, IntentFilter[] filters, String[][] techLists) Enable foreground dispatch to the given Activity. |
void | enableForegroundNdefPush(Activity activity, NdefMessage message) Enable NDEF message push over NFC while this Activity is in the foreground. |
void | enableReaderMode(Activity activity, ReaderCallback callback, int flags, Bundle extras) Limit the NFC controller to reader mode while this Activity is in the foreground. |
NfcAdapter | getDefaultAdapter(Context context) Helper to get the default NFC Adapter. |
boolean | isEnabled() Return true if this NFC Adapter has any features enabled. |
boolean | isNdefPushEnabled() Return true if the NDEF Push (Android Beam) feature is enabled. |
void | setBeamPushUris(Uri[] uris, Activity activity) Set one or more Uri s to send using Android Beam (TM). |
void | setBeamPushUrisCallback(CreateBeamUrisCallback callback, Activity activity) Set a callback that will dynamically generate one or more Uri s to send using Android Beam (TM). |