diff options
author | 2024-12-12 10:36:53 -0800 | |
---|---|---|
committer | 2024-12-12 10:36:53 -0800 | |
commit | 064e6399d45bfac294e3a71d1c12ae12c1c6bf3f (patch) | |
tree | 74bb6f178fbbcafdcc63ca6e45999b7390bee953 | |
parent | c97752ddc72882888fef9f180bc5489170bfa97f (diff) |
A warning added to setDiscoveryTechnology() API
The warning intends to clarify staightforward behavior of the API,
particularly its ignorance of the device state and the majority of
the device technology configurations.
Bug: 372586859
Test: atest
Change-Id: I2a83f3edcb95ac5991d1bd7d37fdfb2bd44246ca
-rw-r--r-- | nfc/java/android/nfc/NfcAdapter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nfc/java/android/nfc/NfcAdapter.java b/nfc/java/android/nfc/NfcAdapter.java index 89ce4239cd4d..63397c21b036 100644 --- a/nfc/java/android/nfc/NfcAdapter.java +++ b/nfc/java/android/nfc/NfcAdapter.java @@ -1789,6 +1789,11 @@ public final class NfcAdapter { * @param listenTechnology Flags indicating listen technologies. * @throws UnsupportedOperationException if FEATURE_NFC, * FEATURE_NFC_HOST_CARD_EMULATION, FEATURE_NFC_HOST_CARD_EMULATION_NFCF are unavailable. + * + * NOTE: This API overrides all technology flags regardless of the current device state, + * it is incompatible with enableReaderMode() API and the others that either update + * or assume any techlology flag set by the OS. + * Please use with care. */ @FlaggedApi(Flags.FLAG_ENABLE_NFC_SET_DISCOVERY_TECH) |