summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nfc/java/android/nfc/cardemulation/CardEmulation.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/nfc/java/android/nfc/cardemulation/CardEmulation.java b/nfc/java/android/nfc/cardemulation/CardEmulation.java
index 1f41b812164c..53288cc032a8 100644
--- a/nfc/java/android/nfc/cardemulation/CardEmulation.java
+++ b/nfc/java/android/nfc/cardemulation/CardEmulation.java
@@ -359,9 +359,14 @@ public final class CardEmulation {
}
/**
- * Register a polling loop filter for a HostApduService.
- * @param service The HostApduService to register the filter for.
- * @param pollingLoopFilter The filter to register.
+ * Register a polling loop filter (PLF) for a HostApduService. The PLF can be sequence of an
+ * even number of hexadecimal numbers (0-9, A-F or a-f). When non-standard polling loop frame
+ * matches this sequence exactly, it may be delivered to
+ * {@link HostApduService#processPollingFrames(List)} if this service is currently
+ * preferred or there are no other services registered for this filter.
+ * @param service The HostApduService to register the filter for
+ * @param pollingLoopFilter The filter to register
+ * @return true if the filter was registered, false otherwise
*/
@FlaggedApi(Flags.FLAG_NFC_READ_POLLING_LOOP)
public boolean registerPollingLoopFilterForService(@NonNull ComponentName service,