setDismissHandler

fun setDismissHandler(dismissHandler: () -> Unit?)

Sets a dismiss handler which will be called:

  • When the user successfully purchases

  • If there is an error loading the offerings and the user clicks through the error dialog

  • If the user taps on the close button

  • If the user calls the back button with the paywall present.