Roshan Pius | 354b10b | 2023-11-14 14:30:26 -0800 | [diff] [blame] | 1 | // Signature format: 2.0 |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 2 | package android.nfc { |
| 3 | |
| 4 | public final class AvailableNfcAntenna implements android.os.Parcelable { |
| 5 | ctor public AvailableNfcAntenna(int, int); |
| 6 | method public int describeContents(); |
| 7 | method public int getLocationX(); |
| 8 | method public int getLocationY(); |
| 9 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 10 | field @NonNull public static final android.os.Parcelable.Creator<android.nfc.AvailableNfcAntenna> CREATOR; |
| 11 | } |
| 12 | |
| 13 | public class FormatException extends java.lang.Exception { |
| 14 | ctor public FormatException(); |
| 15 | ctor public FormatException(String); |
| 16 | ctor public FormatException(String, Throwable); |
| 17 | } |
| 18 | |
| 19 | public final class NdefMessage implements android.os.Parcelable { |
| 20 | ctor public NdefMessage(byte[]) throws android.nfc.FormatException; |
| 21 | ctor public NdefMessage(android.nfc.NdefRecord, android.nfc.NdefRecord...); |
| 22 | ctor public NdefMessage(android.nfc.NdefRecord[]); |
| 23 | method public int describeContents(); |
| 24 | method public int getByteArrayLength(); |
| 25 | method public android.nfc.NdefRecord[] getRecords(); |
| 26 | method public byte[] toByteArray(); |
| 27 | method public void writeToParcel(android.os.Parcel, int); |
| 28 | field @NonNull public static final android.os.Parcelable.Creator<android.nfc.NdefMessage> CREATOR; |
| 29 | } |
| 30 | |
| 31 | public final class NdefRecord implements android.os.Parcelable { |
| 32 | ctor public NdefRecord(short, byte[], byte[], byte[]); |
| 33 | ctor @Deprecated public NdefRecord(byte[]) throws android.nfc.FormatException; |
| 34 | method public static android.nfc.NdefRecord createApplicationRecord(String); |
| 35 | method public static android.nfc.NdefRecord createExternal(String, String, byte[]); |
| 36 | method public static android.nfc.NdefRecord createMime(String, byte[]); |
| 37 | method public static android.nfc.NdefRecord createTextRecord(String, String); |
| 38 | method public static android.nfc.NdefRecord createUri(android.net.Uri); |
| 39 | method public static android.nfc.NdefRecord createUri(String); |
| 40 | method public int describeContents(); |
| 41 | method public byte[] getId(); |
| 42 | method public byte[] getPayload(); |
| 43 | method public short getTnf(); |
| 44 | method public byte[] getType(); |
| 45 | method @Deprecated public byte[] toByteArray(); |
| 46 | method public String toMimeType(); |
| 47 | method public android.net.Uri toUri(); |
| 48 | method public void writeToParcel(android.os.Parcel, int); |
| 49 | field @NonNull public static final android.os.Parcelable.Creator<android.nfc.NdefRecord> CREATOR; |
| 50 | field public static final byte[] RTD_ALTERNATIVE_CARRIER; |
| 51 | field public static final byte[] RTD_HANDOVER_CARRIER; |
| 52 | field public static final byte[] RTD_HANDOVER_REQUEST; |
| 53 | field public static final byte[] RTD_HANDOVER_SELECT; |
| 54 | field public static final byte[] RTD_SMART_POSTER; |
| 55 | field public static final byte[] RTD_TEXT; |
| 56 | field public static final byte[] RTD_URI; |
| 57 | field public static final short TNF_ABSOLUTE_URI = 3; // 0x3 |
| 58 | field public static final short TNF_EMPTY = 0; // 0x0 |
| 59 | field public static final short TNF_EXTERNAL_TYPE = 4; // 0x4 |
| 60 | field public static final short TNF_MIME_MEDIA = 2; // 0x2 |
| 61 | field public static final short TNF_UNCHANGED = 6; // 0x6 |
| 62 | field public static final short TNF_UNKNOWN = 5; // 0x5 |
| 63 | field public static final short TNF_WELL_KNOWN = 1; // 0x1 |
| 64 | } |
| 65 | |
| 66 | public final class NfcAdapter { |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 67 | method public void disableForegroundDispatch(android.app.Activity); |
| 68 | method public void disableReaderMode(android.app.Activity); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 69 | method public void enableForegroundDispatch(android.app.Activity, android.app.PendingIntent, android.content.IntentFilter[], String[][]); |
| 70 | method public void enableReaderMode(android.app.Activity, android.nfc.NfcAdapter.ReaderCallback, int, android.os.Bundle); |
| 71 | method public static android.nfc.NfcAdapter getDefaultAdapter(android.content.Context); |
| 72 | method @Nullable public android.nfc.NfcAntennaInfo getNfcAntennaInfo(); |
Jack Yu | dc872e0 | 2024-01-09 09:40:40 +0000 | [diff] [blame] | 73 | method @FlaggedApi("android.nfc.enable_nfc_charging") @Nullable public android.nfc.WlcListenerDeviceInfo getWlcListenerDeviceInfo(); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 74 | method public boolean ignore(android.nfc.Tag, int, android.nfc.NfcAdapter.OnTagRemovedListener, android.os.Handler); |
| 75 | method public boolean isEnabled(); |
Brad Lassey | ee03676a | 2024-01-27 14:29:51 -0500 | [diff] [blame] | 76 | method @FlaggedApi("android.nfc.nfc_observe_mode") public boolean isObserveModeEnabled(); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 77 | method @FlaggedApi("android.nfc.nfc_observe_mode") public boolean isObserveModeSupported(); |
| 78 | method @FlaggedApi("android.nfc.enable_nfc_reader_option") public boolean isReaderOptionEnabled(); |
| 79 | method @FlaggedApi("android.nfc.enable_nfc_reader_option") public boolean isReaderOptionSupported(); |
| 80 | method public boolean isSecureNfcEnabled(); |
| 81 | method public boolean isSecureNfcSupported(); |
| 82 | method @FlaggedApi("android.nfc.enable_nfc_charging") public boolean isWlcEnabled(); |
| 83 | method @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public void resetDiscoveryTechnology(@NonNull android.app.Activity); |
| 84 | method @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public void setDiscoveryTechnology(@NonNull android.app.Activity, int, int); |
Brad Lassey | 82abaf1 | 2024-02-21 00:06:16 -0500 | [diff] [blame] | 85 | method @FlaggedApi("android.nfc.nfc_observe_mode") public boolean setObserveModeEnabled(boolean); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 86 | field public static final String ACTION_ADAPTER_STATE_CHANGED = "android.nfc.action.ADAPTER_STATE_CHANGED"; |
| 87 | field public static final String ACTION_NDEF_DISCOVERED = "android.nfc.action.NDEF_DISCOVERED"; |
| 88 | field @RequiresPermission(android.Manifest.permission.NFC_PREFERRED_PAYMENT_INFO) public static final String ACTION_PREFERRED_PAYMENT_CHANGED = "android.nfc.action.PREFERRED_PAYMENT_CHANGED"; |
| 89 | field public static final String ACTION_TAG_DISCOVERED = "android.nfc.action.TAG_DISCOVERED"; |
| 90 | field public static final String ACTION_TECH_DISCOVERED = "android.nfc.action.TECH_DISCOVERED"; |
| 91 | field @RequiresPermission(android.Manifest.permission.NFC_TRANSACTION_EVENT) public static final String ACTION_TRANSACTION_DETECTED = "android.nfc.action.TRANSACTION_DETECTED"; |
| 92 | field public static final String EXTRA_ADAPTER_STATE = "android.nfc.extra.ADAPTER_STATE"; |
| 93 | field public static final String EXTRA_AID = "android.nfc.extra.AID"; |
| 94 | field public static final String EXTRA_DATA = "android.nfc.extra.DATA"; |
| 95 | field public static final String EXTRA_ID = "android.nfc.extra.ID"; |
| 96 | field public static final String EXTRA_NDEF_MESSAGES = "android.nfc.extra.NDEF_MESSAGES"; |
| 97 | field public static final String EXTRA_PREFERRED_PAYMENT_CHANGED_REASON = "android.nfc.extra.PREFERRED_PAYMENT_CHANGED_REASON"; |
| 98 | field public static final String EXTRA_READER_PRESENCE_CHECK_DELAY = "presence"; |
| 99 | field public static final String EXTRA_SECURE_ELEMENT_NAME = "android.nfc.extra.SECURE_ELEMENT_NAME"; |
| 100 | field public static final String EXTRA_TAG = "android.nfc.extra.TAG"; |
| 101 | field @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public static final int FLAG_LISTEN_DISABLE = 0; // 0x0 |
Alisher Alikhodjaev | c867314 | 2024-01-31 14:18:00 -0800 | [diff] [blame] | 102 | field @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public static final int FLAG_LISTEN_KEEP = -2147483648; // 0x80000000 |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 103 | field @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public static final int FLAG_LISTEN_NFC_PASSIVE_A = 1; // 0x1 |
| 104 | field @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public static final int FLAG_LISTEN_NFC_PASSIVE_B = 2; // 0x2 |
| 105 | field @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public static final int FLAG_LISTEN_NFC_PASSIVE_F = 4; // 0x4 |
| 106 | field @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public static final int FLAG_READER_DISABLE = 0; // 0x0 |
Alisher Alikhodjaev | c867314 | 2024-01-31 14:18:00 -0800 | [diff] [blame] | 107 | field @FlaggedApi("android.nfc.enable_nfc_set_discovery_tech") public static final int FLAG_READER_KEEP = -2147483648; // 0x80000000 |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 108 | field public static final int FLAG_READER_NFC_A = 1; // 0x1 |
| 109 | field public static final int FLAG_READER_NFC_B = 2; // 0x2 |
| 110 | field public static final int FLAG_READER_NFC_BARCODE = 16; // 0x10 |
| 111 | field public static final int FLAG_READER_NFC_F = 4; // 0x4 |
| 112 | field public static final int FLAG_READER_NFC_V = 8; // 0x8 |
| 113 | field public static final int FLAG_READER_NO_PLATFORM_SOUNDS = 256; // 0x100 |
| 114 | field public static final int FLAG_READER_SKIP_NDEF_CHECK = 128; // 0x80 |
| 115 | field public static final int PREFERRED_PAYMENT_CHANGED = 2; // 0x2 |
| 116 | field public static final int PREFERRED_PAYMENT_LOADED = 1; // 0x1 |
| 117 | field public static final int PREFERRED_PAYMENT_UPDATED = 3; // 0x3 |
| 118 | field public static final int STATE_OFF = 1; // 0x1 |
| 119 | field public static final int STATE_ON = 3; // 0x3 |
| 120 | field public static final int STATE_TURNING_OFF = 4; // 0x4 |
| 121 | field public static final int STATE_TURNING_ON = 2; // 0x2 |
| 122 | } |
| 123 | |
| 124 | @Deprecated public static interface NfcAdapter.CreateBeamUrisCallback { |
| 125 | method @Deprecated public android.net.Uri[] createBeamUris(android.nfc.NfcEvent); |
| 126 | } |
| 127 | |
| 128 | @Deprecated public static interface NfcAdapter.CreateNdefMessageCallback { |
| 129 | method @Deprecated public android.nfc.NdefMessage createNdefMessage(android.nfc.NfcEvent); |
| 130 | } |
| 131 | |
| 132 | @Deprecated public static interface NfcAdapter.OnNdefPushCompleteCallback { |
| 133 | method @Deprecated public void onNdefPushComplete(android.nfc.NfcEvent); |
| 134 | } |
| 135 | |
| 136 | public static interface NfcAdapter.OnTagRemovedListener { |
| 137 | method public void onTagRemoved(); |
| 138 | } |
| 139 | |
| 140 | public static interface NfcAdapter.ReaderCallback { |
| 141 | method public void onTagDiscovered(android.nfc.Tag); |
| 142 | } |
| 143 | |
| 144 | public final class NfcAntennaInfo implements android.os.Parcelable { |
| 145 | ctor public NfcAntennaInfo(int, int, boolean, @NonNull java.util.List<android.nfc.AvailableNfcAntenna>); |
| 146 | method public int describeContents(); |
| 147 | method @NonNull public java.util.List<android.nfc.AvailableNfcAntenna> getAvailableNfcAntennas(); |
| 148 | method public int getDeviceHeight(); |
| 149 | method public int getDeviceWidth(); |
| 150 | method public boolean isDeviceFoldable(); |
| 151 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 152 | field @NonNull public static final android.os.Parcelable.Creator<android.nfc.NfcAntennaInfo> CREATOR; |
| 153 | } |
| 154 | |
| 155 | public final class NfcEvent { |
| 156 | field public final android.nfc.NfcAdapter nfcAdapter; |
| 157 | field public final int peerLlcpMajorVersion; |
| 158 | field public final int peerLlcpMinorVersion; |
| 159 | } |
| 160 | |
| 161 | public final class NfcManager { |
| 162 | method public android.nfc.NfcAdapter getDefaultAdapter(); |
| 163 | } |
| 164 | |
| 165 | public final class Tag implements android.os.Parcelable { |
| 166 | method public int describeContents(); |
| 167 | method public byte[] getId(); |
| 168 | method public String[] getTechList(); |
| 169 | method public void writeToParcel(android.os.Parcel, int); |
| 170 | field @NonNull public static final android.os.Parcelable.Creator<android.nfc.Tag> CREATOR; |
| 171 | } |
| 172 | |
| 173 | public class TagLostException extends java.io.IOException { |
| 174 | ctor public TagLostException(); |
| 175 | ctor public TagLostException(String); |
| 176 | } |
| 177 | |
Jack Yu | dc872e0 | 2024-01-09 09:40:40 +0000 | [diff] [blame] | 178 | @FlaggedApi("android.nfc.enable_nfc_charging") public final class WlcListenerDeviceInfo implements android.os.Parcelable { |
| 179 | ctor public WlcListenerDeviceInfo(int, double, double, int); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 180 | method public int describeContents(); |
Jack Yu | dc872e0 | 2024-01-09 09:40:40 +0000 | [diff] [blame] | 181 | method @FloatRange(from=0.0, to=100.0) public double getBatteryLevel(); |
| 182 | method public int getProductId(); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 183 | method public int getState(); |
| 184 | method public double getTemperature(); |
| 185 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
Jack Yu | dc872e0 | 2024-01-09 09:40:40 +0000 | [diff] [blame] | 186 | field @NonNull public static final android.os.Parcelable.Creator<android.nfc.WlcListenerDeviceInfo> CREATOR; |
| 187 | field public static final int STATE_CONNECTED_CHARGING = 2; // 0x2 |
| 188 | field public static final int STATE_CONNECTED_DISCHARGING = 3; // 0x3 |
| 189 | field public static final int STATE_DISCONNECTED = 1; // 0x1 |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 190 | } |
| 191 | |
| 192 | } |
| 193 | |
| 194 | package android.nfc.cardemulation { |
| 195 | |
| 196 | public final class CardEmulation { |
Omer Ozer | 731ee93 | 2024-01-23 20:47:02 +0000 | [diff] [blame] | 197 | method @Deprecated public boolean categoryAllowsForegroundPreference(String); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 198 | method @Nullable @RequiresPermission(android.Manifest.permission.NFC_PREFERRED_PAYMENT_INFO) public java.util.List<java.lang.String> getAidsForPreferredPaymentService(); |
| 199 | method public java.util.List<java.lang.String> getAidsForService(android.content.ComponentName, String); |
Omer Ozer | 731ee93 | 2024-01-23 20:47:02 +0000 | [diff] [blame] | 200 | method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.NFC_PREFERRED_PAYMENT_INFO) public CharSequence getDescriptionForPreferredPaymentService(); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 201 | method public static android.nfc.cardemulation.CardEmulation getInstance(android.nfc.NfcAdapter); |
Omer Ozer | 731ee93 | 2024-01-23 20:47:02 +0000 | [diff] [blame] | 202 | method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.NFC_PREFERRED_PAYMENT_INFO) public String getRouteDestinationForPreferredPaymentService(); |
| 203 | method @Deprecated public int getSelectionModeForCategory(String); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 204 | method public boolean isDefaultServiceForAid(android.content.ComponentName, String); |
| 205 | method public boolean isDefaultServiceForCategory(android.content.ComponentName, String); |
| 206 | method public boolean registerAidsForService(android.content.ComponentName, String, java.util.List<java.lang.String>); |
Brad Lassey | 07054da | 2024-02-22 15:17:09 -0500 | [diff] [blame] | 207 | method @FlaggedApi("android.nfc.nfc_read_polling_loop") public boolean registerPollingLoopFilterForService(@NonNull android.content.ComponentName, @NonNull String, boolean); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 208 | method public boolean removeAidsForService(android.content.ComponentName, String); |
| 209 | method @NonNull @RequiresPermission(android.Manifest.permission.NFC) public boolean setOffHostForService(@NonNull android.content.ComponentName, @NonNull String); |
| 210 | method public boolean setPreferredService(android.app.Activity, android.content.ComponentName); |
Brad Lassey | 776bb06 | 2024-02-26 14:59:47 -0500 | [diff] [blame] | 211 | method @FlaggedApi("android.nfc.nfc_observe_mode") public boolean setShouldDefaultToObserveModeForService(@NonNull android.content.ComponentName, boolean); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 212 | method public boolean supportsAidPrefixRegistration(); |
| 213 | method @NonNull @RequiresPermission(android.Manifest.permission.NFC) public boolean unsetOffHostForService(@NonNull android.content.ComponentName); |
| 214 | method public boolean unsetPreferredService(android.app.Activity); |
| 215 | field @Deprecated public static final String ACTION_CHANGE_DEFAULT = "android.nfc.cardemulation.action.ACTION_CHANGE_DEFAULT"; |
| 216 | field public static final String CATEGORY_OTHER = "other"; |
| 217 | field public static final String CATEGORY_PAYMENT = "payment"; |
| 218 | field public static final String EXTRA_CATEGORY = "category"; |
| 219 | field public static final String EXTRA_SERVICE_COMPONENT = "component"; |
| 220 | field public static final int SELECTION_MODE_ALWAYS_ASK = 1; // 0x1 |
| 221 | field public static final int SELECTION_MODE_ASK_IF_CONFLICT = 2; // 0x2 |
| 222 | field public static final int SELECTION_MODE_PREFER_DEFAULT = 0; // 0x0 |
| 223 | } |
| 224 | |
| 225 | public abstract class HostApduService extends android.app.Service { |
| 226 | ctor public HostApduService(); |
| 227 | method public final void notifyUnhandled(); |
| 228 | method public final android.os.IBinder onBind(android.content.Intent); |
| 229 | method public abstract void onDeactivated(int); |
| 230 | method public abstract byte[] processCommandApdu(byte[], android.os.Bundle); |
Brad Lassey | 5dd2944 | 2024-02-16 00:02:52 -0500 | [diff] [blame] | 231 | method @FlaggedApi("android.nfc.nfc_read_polling_loop") public void processPollingFrames(@NonNull java.util.List<android.nfc.cardemulation.PollingFrame>); |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 232 | method public final void sendResponseApdu(byte[]); |
| 233 | field public static final int DEACTIVATION_DESELECTED = 1; // 0x1 |
| 234 | field public static final int DEACTIVATION_LINK_LOSS = 0; // 0x0 |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 235 | field public static final String SERVICE_INTERFACE = "android.nfc.cardemulation.action.HOST_APDU_SERVICE"; |
| 236 | field public static final String SERVICE_META_DATA = "android.nfc.cardemulation.host_apdu_service"; |
| 237 | } |
| 238 | |
| 239 | public abstract class HostNfcFService extends android.app.Service { |
| 240 | ctor public HostNfcFService(); |
| 241 | method public final android.os.IBinder onBind(android.content.Intent); |
| 242 | method public abstract void onDeactivated(int); |
| 243 | method public abstract byte[] processNfcFPacket(byte[], android.os.Bundle); |
| 244 | method public final void sendResponsePacket(byte[]); |
| 245 | field public static final int DEACTIVATION_LINK_LOSS = 0; // 0x0 |
| 246 | field public static final String SERVICE_INTERFACE = "android.nfc.cardemulation.action.HOST_NFCF_SERVICE"; |
| 247 | field public static final String SERVICE_META_DATA = "android.nfc.cardemulation.host_nfcf_service"; |
| 248 | } |
| 249 | |
| 250 | public final class NfcFCardEmulation { |
| 251 | method public boolean disableService(android.app.Activity) throws java.lang.RuntimeException; |
| 252 | method public boolean enableService(android.app.Activity, android.content.ComponentName) throws java.lang.RuntimeException; |
| 253 | method public static android.nfc.cardemulation.NfcFCardEmulation getInstance(android.nfc.NfcAdapter); |
| 254 | method public String getNfcid2ForService(android.content.ComponentName) throws java.lang.RuntimeException; |
| 255 | method public String getSystemCodeForService(android.content.ComponentName) throws java.lang.RuntimeException; |
| 256 | method public boolean registerSystemCodeForService(android.content.ComponentName, String) throws java.lang.RuntimeException; |
| 257 | method public boolean setNfcid2ForService(android.content.ComponentName, String) throws java.lang.RuntimeException; |
| 258 | method public boolean unregisterSystemCodeForService(android.content.ComponentName) throws java.lang.RuntimeException; |
| 259 | } |
| 260 | |
| 261 | public abstract class OffHostApduService extends android.app.Service { |
| 262 | ctor public OffHostApduService(); |
| 263 | field public static final String SERVICE_INTERFACE = "android.nfc.cardemulation.action.OFF_HOST_APDU_SERVICE"; |
| 264 | field public static final String SERVICE_META_DATA = "android.nfc.cardemulation.off_host_apdu_service"; |
| 265 | } |
| 266 | |
Brad Lassey | 5dd2944 | 2024-02-16 00:02:52 -0500 | [diff] [blame] | 267 | @FlaggedApi("android.nfc.nfc_read_polling_loop") public final class PollingFrame implements android.os.Parcelable { |
Brad Lassey | 19d5070 | 2024-03-04 20:04:03 +0000 | [diff] [blame^] | 268 | ctor public PollingFrame(int, @Nullable byte[], int, int, boolean); |
Brad Lassey | 5dd2944 | 2024-02-16 00:02:52 -0500 | [diff] [blame] | 269 | method public int describeContents(); |
| 270 | method @NonNull public byte[] getData(); |
Brad Lassey | 5dd2944 | 2024-02-16 00:02:52 -0500 | [diff] [blame] | 271 | method public int getTimestamp(); |
Brad Lassey | 19d5070 | 2024-03-04 20:04:03 +0000 | [diff] [blame^] | 272 | method public boolean getTriggeredAutoTransact(); |
Brad Lassey | 6075bd2 | 2024-02-16 10:49:18 -0500 | [diff] [blame] | 273 | method public int getType(); |
Brad Lassey | 60e4a30 | 2024-03-05 01:16:53 +0000 | [diff] [blame] | 274 | method public int getVendorSpecificGain(); |
Brad Lassey | 5dd2944 | 2024-02-16 00:02:52 -0500 | [diff] [blame] | 275 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 276 | field @NonNull public static final android.os.Parcelable.Creator<android.nfc.cardemulation.PollingFrame> CREATOR; |
Brad Lassey | 6075bd2 | 2024-02-16 10:49:18 -0500 | [diff] [blame] | 277 | field @FlaggedApi("android.nfc.nfc_read_polling_loop") public static final int POLLING_LOOP_TYPE_A = 65; // 0x41 |
| 278 | field @FlaggedApi("android.nfc.nfc_read_polling_loop") public static final int POLLING_LOOP_TYPE_B = 66; // 0x42 |
| 279 | field @FlaggedApi("android.nfc.nfc_read_polling_loop") public static final int POLLING_LOOP_TYPE_F = 70; // 0x46 |
| 280 | field @FlaggedApi("android.nfc.nfc_read_polling_loop") public static final int POLLING_LOOP_TYPE_OFF = 88; // 0x58 |
| 281 | field @FlaggedApi("android.nfc.nfc_read_polling_loop") public static final int POLLING_LOOP_TYPE_ON = 79; // 0x4f |
| 282 | field @FlaggedApi("android.nfc.nfc_read_polling_loop") public static final int POLLING_LOOP_TYPE_UNKNOWN = 85; // 0x55 |
Brad Lassey | 5dd2944 | 2024-02-16 00:02:52 -0500 | [diff] [blame] | 283 | } |
| 284 | |
Roshan Pius | b5ff8cf | 2023-11-13 14:29:09 -0800 | [diff] [blame] | 285 | } |
| 286 | |
| 287 | package android.nfc.tech { |
| 288 | |
| 289 | public final class IsoDep implements android.nfc.tech.TagTechnology { |
| 290 | method public void close() throws java.io.IOException; |
| 291 | method public void connect() throws java.io.IOException; |
| 292 | method public static android.nfc.tech.IsoDep get(android.nfc.Tag); |
| 293 | method public byte[] getHiLayerResponse(); |
| 294 | method public byte[] getHistoricalBytes(); |
| 295 | method public int getMaxTransceiveLength(); |
| 296 | method public android.nfc.Tag getTag(); |
| 297 | method public int getTimeout(); |
| 298 | method public boolean isConnected(); |
| 299 | method public boolean isExtendedLengthApduSupported(); |
| 300 | method public void setTimeout(int); |
| 301 | method public byte[] transceive(byte[]) throws java.io.IOException; |
| 302 | } |
| 303 | |
| 304 | public final class MifareClassic implements android.nfc.tech.TagTechnology { |
| 305 | method public boolean authenticateSectorWithKeyA(int, byte[]) throws java.io.IOException; |
| 306 | method public boolean authenticateSectorWithKeyB(int, byte[]) throws java.io.IOException; |
| 307 | method public int blockToSector(int); |
| 308 | method public void close() throws java.io.IOException; |
| 309 | method public void connect() throws java.io.IOException; |
| 310 | method public void decrement(int, int) throws java.io.IOException; |
| 311 | method public static android.nfc.tech.MifareClassic get(android.nfc.Tag); |
| 312 | method public int getBlockCount(); |
| 313 | method public int getBlockCountInSector(int); |
| 314 | method public int getMaxTransceiveLength(); |
| 315 | method public int getSectorCount(); |
| 316 | method public int getSize(); |
| 317 | method public android.nfc.Tag getTag(); |
| 318 | method public int getTimeout(); |
| 319 | method public int getType(); |
| 320 | method public void increment(int, int) throws java.io.IOException; |
| 321 | method public boolean isConnected(); |
| 322 | method public byte[] readBlock(int) throws java.io.IOException; |
| 323 | method public void restore(int) throws java.io.IOException; |
| 324 | method public int sectorToBlock(int); |
| 325 | method public void setTimeout(int); |
| 326 | method public byte[] transceive(byte[]) throws java.io.IOException; |
| 327 | method public void transfer(int) throws java.io.IOException; |
| 328 | method public void writeBlock(int, byte[]) throws java.io.IOException; |
| 329 | field public static final int BLOCK_SIZE = 16; // 0x10 |
| 330 | field public static final byte[] KEY_DEFAULT; |
| 331 | field public static final byte[] KEY_MIFARE_APPLICATION_DIRECTORY; |
| 332 | field public static final byte[] KEY_NFC_FORUM; |
| 333 | field public static final int SIZE_1K = 1024; // 0x400 |
| 334 | field public static final int SIZE_2K = 2048; // 0x800 |
| 335 | field public static final int SIZE_4K = 4096; // 0x1000 |
| 336 | field public static final int SIZE_MINI = 320; // 0x140 |
| 337 | field public static final int TYPE_CLASSIC = 0; // 0x0 |
| 338 | field public static final int TYPE_PLUS = 1; // 0x1 |
| 339 | field public static final int TYPE_PRO = 2; // 0x2 |
| 340 | field public static final int TYPE_UNKNOWN = -1; // 0xffffffff |
| 341 | } |
| 342 | |
| 343 | public final class MifareUltralight implements android.nfc.tech.TagTechnology { |
| 344 | method public void close() throws java.io.IOException; |
| 345 | method public void connect() throws java.io.IOException; |
| 346 | method public static android.nfc.tech.MifareUltralight get(android.nfc.Tag); |
| 347 | method public int getMaxTransceiveLength(); |
| 348 | method public android.nfc.Tag getTag(); |
| 349 | method public int getTimeout(); |
| 350 | method public int getType(); |
| 351 | method public boolean isConnected(); |
| 352 | method public byte[] readPages(int) throws java.io.IOException; |
| 353 | method public void setTimeout(int); |
| 354 | method public byte[] transceive(byte[]) throws java.io.IOException; |
| 355 | method public void writePage(int, byte[]) throws java.io.IOException; |
| 356 | field public static final int PAGE_SIZE = 4; // 0x4 |
| 357 | field public static final int TYPE_ULTRALIGHT = 1; // 0x1 |
| 358 | field public static final int TYPE_ULTRALIGHT_C = 2; // 0x2 |
| 359 | field public static final int TYPE_UNKNOWN = -1; // 0xffffffff |
| 360 | } |
| 361 | |
| 362 | public final class Ndef implements android.nfc.tech.TagTechnology { |
| 363 | method public boolean canMakeReadOnly(); |
| 364 | method public void close() throws java.io.IOException; |
| 365 | method public void connect() throws java.io.IOException; |
| 366 | method public static android.nfc.tech.Ndef get(android.nfc.Tag); |
| 367 | method public android.nfc.NdefMessage getCachedNdefMessage(); |
| 368 | method public int getMaxSize(); |
| 369 | method public android.nfc.NdefMessage getNdefMessage() throws android.nfc.FormatException, java.io.IOException; |
| 370 | method public android.nfc.Tag getTag(); |
| 371 | method public String getType(); |
| 372 | method public boolean isConnected(); |
| 373 | method public boolean isWritable(); |
| 374 | method public boolean makeReadOnly() throws java.io.IOException; |
| 375 | method public void writeNdefMessage(android.nfc.NdefMessage) throws android.nfc.FormatException, java.io.IOException; |
| 376 | field public static final String MIFARE_CLASSIC = "com.nxp.ndef.mifareclassic"; |
| 377 | field public static final String NFC_FORUM_TYPE_1 = "org.nfcforum.ndef.type1"; |
| 378 | field public static final String NFC_FORUM_TYPE_2 = "org.nfcforum.ndef.type2"; |
| 379 | field public static final String NFC_FORUM_TYPE_3 = "org.nfcforum.ndef.type3"; |
| 380 | field public static final String NFC_FORUM_TYPE_4 = "org.nfcforum.ndef.type4"; |
| 381 | } |
| 382 | |
| 383 | public final class NdefFormatable implements android.nfc.tech.TagTechnology { |
| 384 | method public void close() throws java.io.IOException; |
| 385 | method public void connect() throws java.io.IOException; |
| 386 | method public void format(android.nfc.NdefMessage) throws android.nfc.FormatException, java.io.IOException; |
| 387 | method public void formatReadOnly(android.nfc.NdefMessage) throws android.nfc.FormatException, java.io.IOException; |
| 388 | method public static android.nfc.tech.NdefFormatable get(android.nfc.Tag); |
| 389 | method public android.nfc.Tag getTag(); |
| 390 | method public boolean isConnected(); |
| 391 | } |
| 392 | |
| 393 | public final class NfcA implements android.nfc.tech.TagTechnology { |
| 394 | method public void close() throws java.io.IOException; |
| 395 | method public void connect() throws java.io.IOException; |
| 396 | method public static android.nfc.tech.NfcA get(android.nfc.Tag); |
| 397 | method public byte[] getAtqa(); |
| 398 | method public int getMaxTransceiveLength(); |
| 399 | method public short getSak(); |
| 400 | method public android.nfc.Tag getTag(); |
| 401 | method public int getTimeout(); |
| 402 | method public boolean isConnected(); |
| 403 | method public void setTimeout(int); |
| 404 | method public byte[] transceive(byte[]) throws java.io.IOException; |
| 405 | } |
| 406 | |
| 407 | public final class NfcB implements android.nfc.tech.TagTechnology { |
| 408 | method public void close() throws java.io.IOException; |
| 409 | method public void connect() throws java.io.IOException; |
| 410 | method public static android.nfc.tech.NfcB get(android.nfc.Tag); |
| 411 | method public byte[] getApplicationData(); |
| 412 | method public int getMaxTransceiveLength(); |
| 413 | method public byte[] getProtocolInfo(); |
| 414 | method public android.nfc.Tag getTag(); |
| 415 | method public boolean isConnected(); |
| 416 | method public byte[] transceive(byte[]) throws java.io.IOException; |
| 417 | } |
| 418 | |
| 419 | public final class NfcBarcode implements android.nfc.tech.TagTechnology { |
| 420 | method public void close() throws java.io.IOException; |
| 421 | method public void connect() throws java.io.IOException; |
| 422 | method public static android.nfc.tech.NfcBarcode get(android.nfc.Tag); |
| 423 | method public byte[] getBarcode(); |
| 424 | method public android.nfc.Tag getTag(); |
| 425 | method public int getType(); |
| 426 | method public boolean isConnected(); |
| 427 | field public static final int TYPE_KOVIO = 1; // 0x1 |
| 428 | field public static final int TYPE_UNKNOWN = -1; // 0xffffffff |
| 429 | } |
| 430 | |
| 431 | public final class NfcF implements android.nfc.tech.TagTechnology { |
| 432 | method public void close() throws java.io.IOException; |
| 433 | method public void connect() throws java.io.IOException; |
| 434 | method public static android.nfc.tech.NfcF get(android.nfc.Tag); |
| 435 | method public byte[] getManufacturer(); |
| 436 | method public int getMaxTransceiveLength(); |
| 437 | method public byte[] getSystemCode(); |
| 438 | method public android.nfc.Tag getTag(); |
| 439 | method public int getTimeout(); |
| 440 | method public boolean isConnected(); |
| 441 | method public void setTimeout(int); |
| 442 | method public byte[] transceive(byte[]) throws java.io.IOException; |
| 443 | } |
| 444 | |
| 445 | public final class NfcV implements android.nfc.tech.TagTechnology { |
| 446 | method public void close() throws java.io.IOException; |
| 447 | method public void connect() throws java.io.IOException; |
| 448 | method public static android.nfc.tech.NfcV get(android.nfc.Tag); |
| 449 | method public byte getDsfId(); |
| 450 | method public int getMaxTransceiveLength(); |
| 451 | method public byte getResponseFlags(); |
| 452 | method public android.nfc.Tag getTag(); |
| 453 | method public boolean isConnected(); |
| 454 | method public byte[] transceive(byte[]) throws java.io.IOException; |
| 455 | } |
| 456 | |
| 457 | public interface TagTechnology extends java.io.Closeable { |
| 458 | method public void connect() throws java.io.IOException; |
| 459 | method public android.nfc.Tag getTag(); |
| 460 | method public boolean isConnected(); |
| 461 | } |
| 462 | |
| 463 | } |
| 464 | |