showAlert
This method to create the dialog and display it on screen.
Since
Added 1.4.0.
Parameters
context
The context to use. Usually your android.app.Applicationor android.app.Activity object.
title
The title displayed in the dialog.
message
The message to display.
open fun showAlert(@NonNull context: Context, @NonNull title: String, @NonNull message: String, @Nullable clickListener: DialogInterface.OnClickListener)
This method to create the dialog and display it on screen.
Since
Added 1.4.0.
Parameters
context
The context to use. Usually your android.app.Applicationor android.app.Activity object.
title
The title displayed in the dialog.
message
The message to display.
clickListener
The clickListener to be invoked when the button of the dialog is pressed.