showDialog

suspend fun showDialog(title: String, content: String, primaryActionTitle: String, secondaryActionTitle: String? = null): AdaptyResult<AdaptyUIDialogActionType>

Presents a dialog on top of the paywall view.

Return

AdaptyResult with AdaptyUIDialogActionType indicating which action the user selected.

Parameters

title

The dialog's title.

content

The content/message of the dialog.

primaryActionTitle

The title of the primary action button.

secondaryActionTitle

Optional title of the secondary action button.