loadAndShowInter static method

dynamic loadAndShowInter(
  1. BuildContext context,
  2. InterHolder interHolder,
  3. dynamic onAdClosed()
)

Implementation

static loadAndShowInter(
    BuildContext context, InterHolder interHolder, Function() onAdClosed) {
  if (isTestDevice) {
    onAdClosed();
    return;
  }

  AdmobUtils.loadAndShowInter(interHolder, onAdClosed: () {
    onAdClosed();
  }, onAdFail: () {
    onAdClosed();
  }, enableLoadingDialog: true);
}