-
public class NfcConfigurationAdditional configurations for NFC discovery
-
-
Field Summary
Fields Modifier and Type Field Description private inttimeout
-
Method Summary
Modifier and Type Method Description intgetTimeout()booleanisDisableNfcDiscoverySound()booleanisSkipNdefCheck()booleanisHandleUnavailableNfc()NfcConfigurationdisableNfcDiscoverySound(boolean disableNfcDiscoverySound)Setting this flag allows the caller to prevent the platform from playing sounds when itdiscovers a tag. NfcConfigurationskipNdefCheck(boolean skipNdefCheck)Setting this flag allows the caller to prevent the platform from performing an NDEF check onthe tags it NfcConfigurationhandleUnavailableNfc(boolean handleUnavailableNfc)Set it to true to shows view with settings nfc setting if NFC is disabled, otherwise start ofNFC session will return error in callback if no permissions/setting and allows user to handledisabled NFC reader (show error or snackbar or refer to settings) Default value is false NfcConfigurationtimeout(int timeout)The timeout to use for wireless communication. -
-
Method Detail
-
getTimeout
int getTimeout()
-
isDisableNfcDiscoverySound
boolean isDisableNfcDiscoverySound()
-
isSkipNdefCheck
boolean isSkipNdefCheck()
-
isHandleUnavailableNfc
boolean isHandleUnavailableNfc()
-
disableNfcDiscoverySound
NfcConfiguration disableNfcDiscoverySound(boolean disableNfcDiscoverySound)
Setting this flag allows the caller to prevent the platform from playing sounds when itdiscovers a tag.
- Parameters:
disableNfcDiscoverySound- new value of this property
-
skipNdefCheck
NfcConfiguration skipNdefCheck(boolean skipNdefCheck)
Setting this flag allows the caller to prevent the platform from performing an NDEF check onthe tags it
- Parameters:
skipNdefCheck- new value of this property
-
handleUnavailableNfc
NfcConfiguration handleUnavailableNfc(boolean handleUnavailableNfc)
Set it to true to shows view with settings nfc setting if NFC is disabled, otherwise start ofNFC session will return error in callback if no permissions/setting and allows user to handledisabled NFC reader (show error or snackbar or refer to settings) Default value is false
- Parameters:
handleUnavailableNfc- new value of this property
-
timeout
NfcConfiguration timeout(int timeout)
The timeout to use for wireless communication.
- Parameters:
timeout- the timeout in milliseconds
-
-
-
-