showConfirmationDialog

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

titleText

The resource ID of the title of the confirmation dialog

messageText

The resource ID of the message of the confirmation dialog

positiveButtonText

The resource ID of the text of the positive button

negativeButtonText

The resource ID of the text of the negative button

positiveListener

The lambda to run when the positive button is clicked

negativeListener

The lambda to run when the negative button is clicked

Throws

if a confirmation dialog is already showing