Class NfcConfiguration
java.lang.Object
com.yubico.yubikit.android.transport.nfc.NfcConfiguration
Additional configurations for NFC discovery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisableNfcDiscoverySound
(boolean disableNfcDiscoverySound) Setting this flag allows the caller to prevent the platform from playing sounds when it discovers a tag.int
handleUnavailableNfc
(boolean handleUnavailableNfc) Set it to true to shows view with settings nfc setting if NFC is disabled, otherwise start of NFC session will return error in callback if no permissions/setting and allows user to handle disabled NFC reader (show error or snackbar or refer to settings) Default value is falseboolean
boolean
boolean
skipNdefCheck
(boolean skipNdefCheck) Setting this flag allows the caller to prevent the platform from performing an NDEF check on the tags ittimeout
(int timeout) The timeout to use for wireless communication.
-
Constructor Details
-
NfcConfiguration
public NfcConfiguration()
-
-
Method Details
-
isDisableNfcDiscoverySound
public boolean isDisableNfcDiscoverySound() -
isSkipNdefCheck
public boolean isSkipNdefCheck() -
getTimeout
public int getTimeout() -
disableNfcDiscoverySound
Setting this flag allows the caller to prevent the platform from playing sounds when it discovers a tag.- Parameters:
disableNfcDiscoverySound
- new value of this property- Returns:
- configuration object
-
skipNdefCheck
Setting this flag allows the caller to prevent the platform from performing an NDEF check on the tags it- Parameters:
skipNdefCheck
- new value of this property- Returns:
- configuration object
-
timeout
The timeout to use for wireless communication.- Parameters:
timeout
- the timeout in milliseconds- Returns:
- configuration object
-