public class NfcConfiguration
extends java.lang.Object
Constructor and Description |
---|
NfcConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
isDisableNfcDiscoverySound() |
boolean |
isHandleUnavailableNfc() |
boolean |
isSkipNdefCheck() |
NfcConfiguration |
setDisableNfcDiscoverySound(boolean disableNfcDiscoverySound)
Setting this flag allows the caller to prevent the
platform from playing sounds when it discovers a tag.
|
NfcConfiguration |
setHandleUnavailableNfc(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 false
|
NfcConfiguration |
setSkipNdefCheck(boolean skipNdefCheck)
Setting this flag allows the caller to prevent the
platform from performing an NDEF check on the tags it
|
public boolean isDisableNfcDiscoverySound()
public boolean isSkipNdefCheck()
public boolean isHandleUnavailableNfc()
public NfcConfiguration setDisableNfcDiscoverySound(boolean disableNfcDiscoverySound)
disableNfcDiscoverySound
- new value of this propertypublic NfcConfiguration setSkipNdefCheck(boolean skipNdefCheck)
skipNdefCheck
- new value of this propertypublic NfcConfiguration setHandleUnavailableNfc(boolean handleUnavailableNfc)
handleUnavailableNfc
- new value of this property