Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c6c7fec authored by Brad Lassey's avatar Brad Lassey Committed by Android (Google) Code Review
Browse files

Merge "Document that only the currently preferred service can enable and...

Merge "Document that only the currently preferred service can enable and disable observe mode" into main
parents c2f24dda 2e20e677
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1250,7 +1250,11 @@ public final class NfcAdapter {
    /**
     * Controls whether the NFC adapter will allow transactions to proceed or be in observe mode
     * and simply observe and notify the APDU service of polling loop frames. See
     * {@link #isObserveModeSupported()} for a description of observe mode.
     * {@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.
     *
     * @param enabled false disables observe mode to allow the transaction to proceed while true
     *                enables observe mode and does not allow transactions to proceed.