showSmartInterstitial static method
Show interstitial ad with smart frequency management
Implementation
static bool showSmartInterstitial({
BuildContext? context,
int loaderDuration = 1,
}) {
if (!canShowInterstitial()) {
return false;
}
final shown = AivoryAdControl.instance.showAd(
AdUnitType.interstitial,
context: context,
loaderDuration: loaderDuration,
);
if (shown) {
_lastInterstitialShown = DateTime.now();
_sessionAdCount++;
}
return shown;
}