diff options
| author | 2024-07-30 01:50:23 +0000 | |
|---|---|---|
| committer | 2024-07-30 01:50:23 +0000 | |
| commit | 0add2b3451bdfec1a11e8dba36f128c528472a7e (patch) | |
| tree | a83ae5aa3a963af3751919f1eaef10411101cc27 | |
| parent | bd5e0d9105f2995b7809dc2f3838885b2d1a5ee3 (diff) | |
| parent | 96ce8c627c47822ff5afd5cee917a5db85d06904 (diff) | |
Merge "Fix broken link in NfcAdapter.java and clarify documentation" into main am: 60cfbf93bb am: 96ce8c627c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3198564
Change-Id: Iafd5ef3a23831dcd9821190c9fffba1e53da2d62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | nfc/java/android/nfc/NfcAdapter.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/nfc/java/android/nfc/NfcAdapter.java b/nfc/java/android/nfc/NfcAdapter.java index 395f81d73351..0ffab4ba3eaf 100644 --- a/nfc/java/android/nfc/NfcAdapter.java +++ b/nfc/java/android/nfc/NfcAdapter.java @@ -1166,10 +1166,11 @@ public final class NfcAdapter { /** - * Returns whether the device supports observer mode or not. When observe - * mode is enabled, the NFC hardware will listen for NFC readers, but not - * respond to them. When observe mode is disabled, the NFC hardware will - * resoond to the reader and proceed with the transaction. + * Returns whether the device supports observe mode or not. When observe mode is enabled, the + * NFC hardware will listen to NFC readers, but not respond to them. While enabled, observed + * polling frames will be sent to the APDU service (see {@link #setObserveModeEnabled(boolean)}. + * When observe mode is disabled (or if it's not supported), the NFC hardware will automatically + * respond to the reader and proceed with the transaction. * @return true if the mode is supported, false otherwise. */ @FlaggedApi(Flags.FLAG_NFC_OBSERVE_MODE) @@ -1193,9 +1194,10 @@ public final class NfcAdapter { * and simply observe and notify the APDU service of polling loop frames. See * {@link #isObserveModeSupported()} for a description of observe mode. Only the package of the * currently preferred service (the service set as preferred by the current foreground - * application via {@link CardEmulation#setPreferredService(Activity, ComponentName)} or the - * current Default Wallet Role Holder {@link android.app.role.RoleManager#ROLE_WALLET}), - * otherwise a call to this method will fail and return false. + * application via {@link android.nfc.cardemulation.CardEmulation#setPreferredService(Activity, + * android.content.ComponentName)} or the current Default Wallet Role Holder + * {@link android.app.role.RoleManager#ROLE_WALLET}), otherwise a call to this method will fail + * and return false. * * @param enabled false disables observe mode to allow the transaction to proceed while true * enables observe mode and does not allow transactions to proceed. |