diff options
| author | 2023-02-02 06:42:03 +0000 | |
|---|---|---|
| committer | 2023-02-02 06:42:03 +0000 | |
| commit | 4a89fb33f4f0b0ed03e213a5a653b2bc2203b65a (patch) | |
| tree | ae5fbee326103b37d8823642355681e21622b127 | |
| parent | d20bc58ae9f327dda75f0457ef73eba23f99d7a1 (diff) | |
| parent | 2d2314a038d235d0b5a7aeca7d3c79d1183f6029 (diff) | |
Merge "Add more details in the javadocs for getTagIntentAppPreferenceForUser"
| -rw-r--r-- | core/java/android/nfc/NfcAdapter.java | 14 | 
1 files changed, 12 insertions, 2 deletions
diff --git a/core/java/android/nfc/NfcAdapter.java b/core/java/android/nfc/NfcAdapter.java index a980158a2e5e..7378ac7638de 100644 --- a/core/java/android/nfc/NfcAdapter.java +++ b/core/java/android/nfc/NfcAdapter.java @@ -2510,8 +2510,18 @@ public final class NfcAdapter {       *       * <p>This returns a mapping of package names for this user id to whether we dispatch Tag       * intents to the package. {@link #ACTION_NDEF_DISCOVERED}, {@link #ACTION_TECH_DISCOVERED} or -    *  {@link #ACTION_TAG_DISCOVERED} will not be dispatched to an Activity if its package is -    *  disallowed. +     * {@link #ACTION_TAG_DISCOVERED} will not be dispatched to an Activity if its package is +     * mapped to {@code false}. +     * <p>There are three different possible cases: +     * <p>A package not being in the preference list. +     * It does not contain any Tag intent filters or the user never triggers a Tag detection that +     * matches the intent filter of the package. +     * <p>A package being mapped to {@code true}. +     * When a package has been launched by a tag detection for the first time, the package name is +     * put to the map and by default mapped to {@code true}. The package will receive Tag intents as +     * usual. +     * <p>A package being mapped to {@code false}. +     * The user chooses to disable this package and it will not receive any Tag intents anymore.       *       * @param userId the user to whom this preference list will belong to       * @return a map of the UserId which indicates the mapping from package name to  |