show Confirmation Dialog
public final Unit showConfirmationDialog(Activity activity, Integer titleText, Integer messageText, Integer positiveButtonText, Integer negativeButtonText, Function0<Unit> positiveListener, Function0<Unit> negativeListener)
Show a confirmation dialog
Parameters
activity
The activity to show the confirmation dialog in
title Text
The resource ID of the title of the confirmation dialog
message Text
The resource ID of the message of the confirmation dialog
positive Button Text
The resource ID of the text of the positive button
negative Button Text
The resource ID of the text of the negative button
positive Listener
The lambda to run when the positive button is clicked
negative Listener
The lambda to run when the negative button is clicked
Throws
if a confirmation dialog is already showing