showAlertAndEnableNfc

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.

Parameters

cancelFunction
  • invoked when cancel button is pressed by the user.