showErrorDialog

open fun showErrorDialog(@NonNull context: Context, @StringRes textResId: Int)

Shows an error dialog with the specified message and an OK button to dismiss it.

Parameters

context

The context to use for creating the dialog.

textResId

String resource ID for the error message to display.