diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-07-31 06:39:29 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-08-10 08:37:09 +0200 |
commit | bc1b02ac04ad01e9c9762cfc04023bbd925ebc2d (patch) | |
tree | 9053e049512136c0c88a04d5d0b1b1eb13bfcb3c /src/nfc/qnearfieldmanager.h | |
parent | df19c50f1caa8024fb6563d5c1c01a3ebe43d0e4 (diff) |
Only scan for NFC tags with the given access method
On iOS it is only possible to search for one type of tags at the time.
See https://developer.apple.com/documentation/corenfc/nfcreadersession
On Android the access mode is controlled by the Intent filter the user
needs to set. So we check the target before targetDetected is emitted.
In the future we will add the readerMode, so we can also avoid the
scanning for wrong tags.
https://developer.android.com/reference/android/nfc/NfcAdapter#enableReaderMode
Task-number: QTBUG-81824
Change-Id: I5aa2580ada619363560cdad354a3a0be4998ea96
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/nfc/qnearfieldmanager.h')
-rw-r--r-- | src/nfc/qnearfieldmanager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nfc/qnearfieldmanager.h b/src/nfc/qnearfieldmanager.h index 360b656b..e7cb6176 100644 --- a/src/nfc/qnearfieldmanager.h +++ b/src/nfc/qnearfieldmanager.h @@ -71,7 +71,7 @@ public: bool isEnabled() const; bool isSupported() const; - bool startTargetDetection(); + bool startTargetDetection(QNearFieldTarget::AccessMethod accessMethod); void stopTargetDetection(); Q_SIGNALS: |