Loading core/java/android/nfc/NfcAdapter.java +1 −0 Original line number Diff line number Diff line Loading @@ -393,6 +393,7 @@ public final class NfcAdapter { /** * A callback that is invoked when a tag is removed from the field. * @see NfcAdapter#ignore */ public interface OnTagRemovedListener { void onTagRemoved(); Loading core/java/android/nfc/cardemulation/HostNfcFService.java +7 −2 Original line number Diff line number Diff line Loading @@ -42,8 +42,13 @@ import android.util.Log; * exactly one System Code and one NFCID2. For details about the use of * System Code and NFCID2, see the NFC Forum Digital specification.</p> * <p>To statically register a System Code and NFCID2 with the service, a {@link #SERVICE_META_DATA} * entry must be included in the declaration of the service. An example of a HostNfcFService * manifest declaration is shown below: * entry must be included in the declaration of the service. * * <p>All {@link HostNfcFService HostNfcFService} declarations in the manifest must require the * {@link android.Manifest.permission#BIND_NFC_SERVICE} permission * in their <service> tag, to ensure that only the platform can bind to your service.</p> * * <p>An example of a HostNfcFService manifest declaration is shown below: * * <pre> <service android:name=".MyHostNfcFService" android:exported="true" android:permission="android.permission.BIND_NFC_SERVICE"> * <intent-filter> Loading Loading
core/java/android/nfc/NfcAdapter.java +1 −0 Original line number Diff line number Diff line Loading @@ -393,6 +393,7 @@ public final class NfcAdapter { /** * A callback that is invoked when a tag is removed from the field. * @see NfcAdapter#ignore */ public interface OnTagRemovedListener { void onTagRemoved(); Loading
core/java/android/nfc/cardemulation/HostNfcFService.java +7 −2 Original line number Diff line number Diff line Loading @@ -42,8 +42,13 @@ import android.util.Log; * exactly one System Code and one NFCID2. For details about the use of * System Code and NFCID2, see the NFC Forum Digital specification.</p> * <p>To statically register a System Code and NFCID2 with the service, a {@link #SERVICE_META_DATA} * entry must be included in the declaration of the service. An example of a HostNfcFService * manifest declaration is shown below: * entry must be included in the declaration of the service. * * <p>All {@link HostNfcFService HostNfcFService} declarations in the manifest must require the * {@link android.Manifest.permission#BIND_NFC_SERVICE} permission * in their <service> tag, to ensure that only the platform can bind to your service.</p> * * <p>An example of a HostNfcFService manifest declaration is shown below: * * <pre> <service android:name=".MyHostNfcFService" android:exported="true" android:permission="android.permission.BIND_NFC_SERVICE"> * <intent-filter> Loading