diff options
Diffstat (limited to 'core/java/android/nfc/NfcAdapter.java')
-rw-r--r-- | core/java/android/nfc/NfcAdapter.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/nfc/NfcAdapter.java b/core/java/android/nfc/NfcAdapter.java index 2ea5105..dfea4d0 100644 --- a/core/java/android/nfc/NfcAdapter.java +++ b/core/java/android/nfc/NfcAdapter.java @@ -22,6 +22,7 @@ import android.app.ActivityThread; import android.content.Context; import android.content.pm.IPackageManager; import android.content.pm.PackageManager; +import android.nfc.technology.TagTechnology; import android.os.IBinder; import android.os.RemoteException; import android.os.ServiceManager; @@ -371,6 +372,16 @@ public final class NfcAdapter { } /** + * Retrieve a TagTechnology object used to interact with a Tag that is + * in field. + * <p> + * @return TagTechnology object, or null if not present + */ + public TagTechnology getTechnology(Tag tag, int tech) { + return tag.getTechnology(NfcAdapter.this, tech); + } + + /** * Set the NDEF Message that this NFC adapter should appear as to Tag * readers. * <p> |