NfcUtil
object NfcUtil
Utility class for querying and enabling NFC on the device.
Functions
Link copied to clipboard
Convenience method to return NfcAdapter instance.
Link copied to clipboard
Convenience method to check if NFC is enabled or not on the running device.
Link copied to clipboard
Convenience method to check NFC support on the device.
Link copied to clipboard
fun showAlertAndEnableNfc(context: ContextThemeWrapper, themeResId: Int = 0, title: String, message: String, settingsButtonText: String, cancelButtonText: String, cancelFunction: () -> Unit): AlertDialog
Convenience method to show an AlertDialog to the user before redirecting them to the settings screen.